-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 953 Bytes
/
labeler.yaml
File metadata and controls
29 lines (28 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Labeler"
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
schedule:
# run every full hour (to still label PRs from forks)
- cron: '0 * * * *'
jobs:
labeler:
permissions:
contents: read
pull-requests: write
issues: write
# don't run on PRs from forks (token has no write permissions)
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
name: "Labeler"
runs-on: ubuntu-latest
steps:
# Re-uses the labeler config from the Go SDK, so we only need to maintain one single config file
- name: Fetch labeler config from STACKIT Go SDK
run: |
curl -sSL -o remote-labeler.yml https://raw.githubusercontent.com/stackitcloud/stackit-sdk-go/main/.github/labeler.yml
- name: Labeler action
uses: actions/labeler@v6
with:
configuration-path: "remote-labeler.yml"
sync-labels: false