From 8dbbd57a7d42051fdae3efea5776d74f64e27ece Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Tue, 22 Mar 2022 14:42:05 -0700 Subject: [PATCH 1/2] Add auto labeler workflow Signed-off-by: Tyler Ohlsen --- .github/labeler.yml | 23 +++++++++++++++++++++++ .github/workflows/labeler.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 49 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..99a822cf5 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +backport 1.x: + - "*" + - "*/*" + - "*/**/*" + - "*/**/**/*" + - "*/**/**/**/*" + - "*/**/**/**/**/*" + - "*/**/**/**/**/**/*" + - "*/**/**/**/**/**/**/*" + - "*/**/**/**/**/**/**/**/*" + - "*/**/**/**/**/**/**/**/**/*" + - ".github/**/*" + +github actions: + - ".github/**/*" + +documentation: + - "*.md" + - "release-notes/*" + - "docs/*" + +infra: + - "build.gradle" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..2f51301a1 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,26 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + branches: + - main + types: + - opened + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: GitHub App token + id: github_app_token + uses: tibdex/github-app-token@v1.5.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + installation_id: 22958780 + - name: Label + uses: actions/labeler@v4 + with: + repo-token: ${{ steps.github_app_token.outputs.token }} From 4e0ce876e054936471521991c1e9123b559d24bf Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Tue, 22 Mar 2022 14:47:16 -0700 Subject: [PATCH 2/2] Combine files into infra label Signed-off-by: Tyler Ohlsen --- .github/labeler.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 99a822cf5..53dc0443c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -11,13 +11,11 @@ backport 1.x: - "*/**/**/**/**/**/**/**/**/*" - ".github/**/*" -github actions: +infra: - ".github/**/*" + - "build.gradle" documentation: - "*.md" - "release-notes/*" - "docs/*" - -infra: - - "build.gradle"