mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +00:00
26 lines
827 B
YAML
26 lines
827 B
YAML
name: Auto-label PRs
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize, edited]
|
|
|
|
jobs:
|
|
label-changelog-ignore:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Label PRs
|
|
uses: actions/github-script@v7
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
script: |
|
|
const base = context.payload.pull_request.base.ref;
|
|
const head = context.payload.pull_request.head.ref;
|
|
|
|
if ((base === 'sportsmanager2-prod' && head === 'sportsmanager2-stage') || (base === 'sportsmanager2-stage' && head === 'sportsmanager2-dev')) {
|
|
await github.rest.issues.addLabels({
|
|
...context.repo,
|
|
issue_number: context.payload.pull_request.number,
|
|
labels: ['changelog-ignore']
|
|
});
|
|
}
|