diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..8a4a9c4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,20 @@ +dependencies: +- head-branch: '^update/' +- changed-files: + - all-globs-to-any-file: ['**/build.sbt'] + +docs: +- changed-files: + - any-glob-to-any-file: ['docs/*', 'website/*', '**/*.md'] + +sbt-scalac-profiling: +- changed-files: + - any-glob-to-any-file: 'sbt-plugin/*' + +scalac-profiling: + - changed-files: + - any-glob-to-any-file: ['external/*', 'integrations/*', 'profiledb/*', 'plugin/*'] + +behind-the-scenes: + - changed-files: + - all-globs-to-all-files: ['!**/build.sbt', '!docs/*', '!website/*', '!**/*.md', '!sbt-plugin/*', '!external/*', '!integrations/*', '!profiledb/*', '!plugin/*'] diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 0000000..16752e4 --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -0,0 +1,12 @@ +name: "Label PRs" +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5