diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..634bc01 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +schema-update: + - all: + - base-branch: 'main' + - changed-files: + - any-glob-to-any-file: 'internal/genpyxis/{schema.graphql,generated.go}' diff --git a/.github/workflows/label-pull-request.yaml b/.github/workflows/label-pull-request.yaml new file mode 100644 index 0000000..9696da1 --- /dev/null +++ b/.github/workflows/label-pull-request.yaml @@ -0,0 +1,18 @@ +name: Label pull request + +on: + pull_request_target: + branches: + - main + +jobs: + labeler: + name: Apply labels + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + sync-labels: true