Created
May 2, 2023 19:04
-
-
Save jamesbursa/707d695608a1be8b6df005a8599abea3 to your computer and use it in GitHub Desktop.
GitHub pull request labeler configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Pull request label rules. | |
# | |
# Runs in action pull-request-labeler.yml. | |
# | |
# See https://github.com/marketplace/actions/labeler | |
# | |
# Labels for programming languages. | |
javascript: "**/*.js" | |
python: "**/*.py" | |
terraform: "**/*.tf" | |
typescript: "**/*.ts" | |
# Labels for components or parts of the code. | |
admin portal: admin/**/* | |
api: api/**/* | |
ci/cd: .github/workflows/**/* | |
docs: docs/**/* | |
e2e: e2e/**/* | |
infra: infra/**/* | |
portal: portal/**/* | |
database: api/db/**/* | |
openapi: api/openapi.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GitHub action to add labels to pull requests. | |
# | |
# Label rules are configured in .github/labeler.xml. | |
# | |
# See https://github.com/marketplace/actions/labeler | |
# | |
name: Pull Request Labeler | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize] | |
jobs: | |
label: | |
name: Labeler | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/labeler@v4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment