From 62f2064cc791ee621ed872afa8f0ec3e392f04a8 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Thu, 15 Sep 2022 20:58:51 -0700 Subject: [PATCH] Add labeler to release-2.3 --- .github/labeler.yml | 22 ++++++++++++++++ .github/release-drafter.yml | 33 ------------------------ .github/release.yml | 3 +++ .github/workflows/labeler.yml | 14 ++++++++++ .github/workflows/release-drafter-pr.yml | 15 ----------- 5 files changed, 39 insertions(+), 48 deletions(-) create mode 100644 .github/labeler.yml delete mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/release-drafter-pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..c03285e9bc --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,22 @@ +enhancement: +- branch: ['feature/**', 'feat/**', 'enhancement/**', 'enh/**'] + +bug: +- branch: ['fix/**', 'bug/**'] + +chore: +- branch: ['chore/**'] + +tests: +- branch: ['tests/**', 'test/**'] +- tests/**/* +- perf-tests/**/* + +documentation: +- branch: ['docs/**', 'doc/**'] +- '**/*.md' + +dependencies: +- branch: ['deps/**', 'dep/**', 'dependabot/**'] +- go.mod +- go.sum diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index ff1dcb1313..0000000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,33 +0,0 @@ -autolabeler: - - label: 'documentation' - files: - - '*.md' - branch: - - '/docs{0,1}\/.+/' - - label: 'tests' - branch: - - '/tests\/.+/' - - label: 'chore' - branch: - - '/chore\/.+/' - - label: 'bug' - branch: - - '/fix\/.+/' - title: - - '/fix/i' - - label: 'enhancement' - branch: - - '/enh\/.+/' - - '/enhancement\/.+/' - - '/feat\/.+/' - - '/feature\/.+/' - title: - - '/feat/i' - - label: 'dependencies' - files: - - 'go.mod' - - 'go.sum' - - 'vendor*' - branch: - - '/deps\/.+/' -template: "not used, but required" diff --git a/.github/release.yml b/.github/release.yml index 191ccd628f..5ff5cedd02 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -24,3 +24,6 @@ changelog: - title: ⬆️ Dependencies labels: - dependencies + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..0fe603bd50 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: joshdales/labeler@0861fa5accbc36878f85f40b98a9f40b15fe0429 # if https://github.com/actions/labeler/pull/203 is merged, use the official action actions/labeler + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/release-drafter-pr.yml b/.github/workflows/release-drafter-pr.yml deleted file mode 100644 index 75c8abc517..0000000000 --- a/.github/workflows/release-drafter-pr.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Release Drafter (labels) - -on: - pull_request: - types: [opened, reopened, synchronize] - -jobs: - update_release_draft: - runs-on: ubuntu-20.04 - steps: - - uses: release-drafter/release-drafter@v5 - with: - disable-releaser: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}