diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml deleted file mode 100644 index a14c555..0000000 --- a/.github/pr-labeler.yml +++ /dev/null @@ -1,5 +0,0 @@ -feature: ['feature/*', 'feat/*'] -enhancement: enhancement/* -bug: fix/* -breaking: breaking/* -documentation: doc/* diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 1573d9e..6299b15 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -16,6 +16,24 @@ categories: - title: '📦 Dependencies' label: 'dependencies' +autolabeler: + - label: 'feature' + branch: + - '/^feature\//' + - '/^feat\//' + - label: 'enhancement' + branch: + - '/^enhancement\//' + - label: 'bug' + branch: + - '/^fix\//' + - label: 'breaking' + branch: + - '/^breaking\//' + - label: 'documentation' + branch: + - '/^doc\//' + template: | ## What's changed $CHANGES diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 9d71729..6c53395 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,15 +1,17 @@ name: PR Labeler + +on: + pull_request_target: + types: [opened] + permissions: contents: read pull-requests: write -on: - pull_request: - types: [opened] jobs: pr-labeler: runs-on: ubuntu-latest steps: - - uses: TimonVS/pr-labeler-action@v5 + - uses: release-drafter/release-drafter/autolabeler@eada3c96a64734dd381cfbda23511034e328ddb0 # v7.6.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}