Skip to content

Instantly share code, notes, and snippets.

@jamesbursa
Created May 2, 2023 19:04
Show Gist options
  • Save jamesbursa/707d695608a1be8b6df005a8599abea3 to your computer and use it in GitHub Desktop.
Save jamesbursa/707d695608a1be8b6df005a8599abea3 to your computer and use it in GitHub Desktop.
GitHub pull request labeler configuration
#
# 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
#
# 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