From d070e6c7049854db6b1265227ecde3f0c8f81074 Mon Sep 17 00:00:00 2001 From: John McBride Date: Fri, 5 Feb 2021 17:59:46 +0000 Subject: [PATCH 1/3] Add PR labeler with pull_request_target --- .github/labeler.yml | 13 +++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..64e9b2262 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,13 @@ +# changes to documentation +"area/documentation": doc/**/* + +# changes to the core lib package +"area/lib": ./*.go + +# changes to the zsh completion +"area/*sh completion": + - ./zsh_* + - ./shell_* + - ./powershell_* + - ./bash_* + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..232807c81 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + From b75c5557bd1d597d198bdb8e55a99fee28dd814e Mon Sep 17 00:00:00 2001 From: John McBride Date: Tue, 9 Feb 2021 16:03:29 +0000 Subject: [PATCH 2/3] Glob for all completions --- .github/labeler.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 64e9b2262..7862af620 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,10 +4,7 @@ # changes to the core lib package "area/lib": ./*.go -# changes to the zsh completion +# changes to the shell completion "area/*sh completion": - - ./zsh_* - - ./shell_* - - ./powershell_* - - ./bash_* + - ./*completions* From 42cba48d7aef746294351e7309c7827b576826e4 Mon Sep 17 00:00:00 2001 From: John McBride Date: Sun, 14 Feb 2021 10:13:45 -0700 Subject: [PATCH 3/3] Add cli, github areas. Requested updates --- .github/labeler.yml | 14 ++++++++++---- .github/workflows/labeler.yml | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7862af620..bd2b3bf52 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,10 +1,16 @@ -# changes to documentation -"area/documentation": doc/**/* +# changes to documentation generation +"area/doc-gen": doc/**/* -# changes to the core lib package +# changes to the core Go cobra lib package "area/lib": ./*.go -# changes to the shell completion +# changes to the Cobra CLI +"area/cli": cobra/**/* + +# changes to Github workflows +"area/github": .github/**/* + +# changes to shell completions "area/*sh completion": - ./*completions* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 232807c81..ce4fc1fd2 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -6,7 +6,7 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@main + - uses: actions/labeler@v3 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + repo-token: "${{ github.token }}"