Remove PR auto-labels when not relevant anymore

This commit is contained in:
Wolfsblvt
2025-03-13 22:37:58 +01:00
parent 25792b53f2
commit 166b404ea7

View File

@@ -46,6 +46,7 @@ jobs:
uses: actions/labeler@v5 uses: actions/labeler@v5
with: with:
configuration-path: .github/pr-auto-labels-by-branch.yml configuration-path: .github/pr-auto-labels-by-branch.yml
sync-labels: true # Remove labels when they are not relevant anymore
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
label-by-files: label-by-files:
@@ -59,6 +60,7 @@ jobs:
uses: actions/labeler@v5 uses: actions/labeler@v5
with: with:
configuration-path: .github/pr-auto-labels-by-files.yml configuration-path: .github/pr-auto-labels-by-files.yml
sync-labels: true # Remove labels when they are not relevant anymore
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
remove-stale-label: remove-stale-label: