workflows/labels: skip for staging-next / haskell-updates / python-updates
Labelling those PRs is more annoying then useful.
This commit is contained in:
12
.github/labeler-protected-branches.yml
vendored
Normal file
12
.github/labeler-protected-branches.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# This file is used by .github/workflows/labels.yml
|
||||||
|
# This version is only run for Pull Requests from protected branches like staging-next, haskell-updates or python-updates.
|
||||||
|
|
||||||
|
"6.topic: haskell":
|
||||||
|
- any:
|
||||||
|
- head-branch:
|
||||||
|
- '^haskell-updates$'
|
||||||
|
|
||||||
|
"6.topic: python":
|
||||||
|
- any:
|
||||||
|
- head-branch:
|
||||||
|
- '^python-updates$'
|
||||||
11
.github/workflows/labels.yml
vendored
11
.github/workflows/labels.yml
vendored
@@ -20,12 +20,23 @@ jobs:
|
|||||||
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
|
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||||
|
if: "!(github.pull_request.head.repo == 'NixOS' && github.ref_protected)"
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
configuration-path: .github/labeler.yml # default
|
configuration-path: .github/labeler.yml # default
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||||
|
if: "!(github.pull_request.head.repo == 'NixOS' && github.ref_protected)"
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
configuration-path: .github/labeler-no-sync.yml
|
configuration-path: .github/labeler-no-sync.yml
|
||||||
sync-labels: false
|
sync-labels: false
|
||||||
|
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
|
||||||
|
# Protected branches like staging-next, haskell-updates and python-updates get special labels.
|
||||||
|
# This is to avoid the mass of labels there, which is mostly useless - and really annoying for
|
||||||
|
# the backport labels.
|
||||||
|
if: "github.pull_request.head.repo == 'NixOS' && github.ref_protected"
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
configuration-path: .github/labeler-protected-branches.yml
|
||||||
|
sync-labels: true
|
||||||
|
|||||||
Reference in New Issue
Block a user