diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000000..3e93484521a0 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +# Github Action +"github_actions": + - changed-files: + - any-glob-to-any-file: + - .github/* + +# Documentation +"documentation": + - changed-files: + - any-glob-to-any-file: + - user_guide_src/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000000..b657eefab0fb --- /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@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"