Workflows use checkout step for label apply - Checkout might be needed/useful, otherwise config files are not present - Do not remove labels from PR updates anymore. Has to be done manually. Otherwise manual labelling really isn't possible.

eaa7b91f1d7719e53e3e83194f887e63eb8b5544

Wolfsblvt <wolfsblvt@gmail.com>

2 files changed, +15 -2Showing whitespace changes
.github/workflows/issues-auto-manager.yml+5 -0
@@ -13,6 +13,11 @@ jobs:
13 runs-on: ubuntu-latest13 runs-on: ubuntu-latest
1414
15 steps:15 steps:
16 - name: Checkout Repository
17 # Checkout
18 # https://github.com/marketplace/actions/checkout
19 uses: actions/checkout@v4
20
16 - name: Auto-Label Issues (Based on Issue Content)21 - name: Auto-Label Issues (Based on Issue Content)
17 # only auto label based on issue content once, on open (to prevent re-labeling removed labels)22 # only auto label based on issue content once, on open (to prevent re-labeling removed labels)
18 if: github.event.action == 'opened'23 if: github.event.action == 'opened'
.github/workflows/pr-auto-manager.yml+10 -2
@@ -40,13 +40,17 @@ jobs:
40 if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))40 if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
4141
42 steps:42 steps:
43 - name: Checkout Repository
44 # Checkout
45 # https://github.com/marketplace/actions/checkout
46 uses: actions/checkout@v4
47
43 - name: Apply Labels Based on Branch Name and Target Branch48 - name: Apply Labels Based on Branch Name and Target Branch
44 # Pull Request Labeler49 # Pull Request Labeler
45 # https://github.com/marketplace/actions/labeler50 # https://github.com/marketplace/actions/labeler
46 uses: actions/labeler@v551 uses: actions/labeler@v5
47 with:52 with:
48 configuration-path: .github/pr-auto-labels-by-branch.yml53 configuration-path: .github/pr-auto-labels-by-branch.yml
49 sync-labels: true # Remove labels when they are not relevant anymore
50 repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}54 repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
5155
52 label-by-files:56 label-by-files:
@@ -54,13 +58,17 @@ jobs:
54 runs-on: ubuntu-latest58 runs-on: ubuntu-latest
5559
56 steps:60 steps:
61 - name: Checkout Repository
62 # Checkout
63 # https://github.com/marketplace/actions/checkout
64 uses: actions/checkout@v4
65
57 - name: Apply Labels Based on Changed Files66 - name: Apply Labels Based on Changed Files
58 # Pull Request Labeler67 # Pull Request Labeler
59 # https://github.com/marketplace/actions/labeler68 # https://github.com/marketplace/actions/labeler
60 uses: actions/labeler@v569 uses: actions/labeler@v5
61 with:70 with:
62 configuration-path: .github/pr-auto-labels-by-files.yml71 configuration-path: .github/pr-auto-labels-by-files.yml
63 sync-labels: true # Remove labels when they are not relevant anymore
64 repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}72 repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
6573
66 remove-stale-label:74 remove-stale-label: