diff --git a/.github/labeler.yml b/.github/labeler.yml index 1c78b61..80e4385 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,34 +1,34 @@ -"pr:docs": +"pr::docs": - changed-files: - any-glob-to-any-file: '**.md' -"pr:code": +"pr::code": - changed-files: - any-glob-to-any-file: 'lib/**.js' -"pr:types": +"pr::types": - changed-files: - any-glob-to-any-file: ['index.d.ts', 'index.d.cts'] -"pr:tests": +"pr::tests": - changed-files: - any-glob-to-any-file: 'test/**.js' -"pr:github-actions": +"pr::github-actions": - changed-files: - any-glob-to-any-file: '**.d.ts' -"pr:examples": +"pr::examples": - changed-files: - any-glob-to-any-file: 'examples/**.js' -"pr:ci": +"pr::ci": - changed-files: - any-glob-to-any-file: ['bin/**', 'rollup.config.js'] -"pr:feature": +"pr::feature": - head-branch: ['feature', 'feat'] -"pr:fix": +"pr::fix": - head-branch: ['fix', 'bug'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index aae2a4b..1779616 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -14,6 +14,12 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + - name: Set PR number + id: set-pr + run: | + echo "Using PR number: ${{ github.event.inputs.prs || github.event.pull_request.number }}" + echo "pr=${{ github.event.inputs.prs || github.event.pull_request.number }}" >> $GITHUB_OUTPUT + - uses: actions/labeler@v5 with: - pr-number: github.event.inputs.prs + pr-number: ${{ steps.set-pr.outputs.pr }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8cf8861..3dba7d3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -70,7 +70,7 @@ jobs: ${{ steps.extract-release-notes.outputs.release_notes }} labels: | release - automated pr + bot signoff: false #team-reviewers: | # owners diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index f62990d..b1d0e3c 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -55,8 +55,8 @@ jobs: **New sponsor block update:** ${{ env.CONTENT }} labels: | - readme - automated pr + pr::docs + bot automerge signoff: false #team-reviewers: |