diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000000..2d3982b4a833 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +# Github Action +"github_actions": + - changed-files: + - any-glob-to-any-file: + - .github/* + +# Match PRs into or from branch 4.7 +"4.7": + - base-branch: '4.7' + - head-branch: '4.7' + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000000..3713dc2c5b72 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +permissions: + contents: read + +jobs: + triage: + if: github.repository == 'codeigniter4/CodeIgniter4' + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v6 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"