Merge branch 'release' into staging

a5aff87b1d4dd1f0628ceeeb274ba572119d6249

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +33 -4Ignore whitespace
.github/workflows/pr-auto-manager.yml+33 -4
@@ -91,7 +91,7 @@ jobs:
9191 label-by-size:
9292 name: 🏷️ Label PR by Size
9393 # This job should run after all others, to prevent possible concurrency issues
9494 needs: [label-by-branches, label-by-files, label-copilot-prs, remove-stale-label, check-merge-blocking-labels, write-auto-comments]
9595 runs-on: ubuntu-latest
9696 # Only needs to run when code is changed
9797 if: always() && (github.event.action == 'opened' || github.event.action == 'synchronize')
@@ -196,9 +196,38 @@ jobs:
196196 configuration-path: .github/pr-auto-labels-by-files.yml
197197 repo-token: ${{ steps.app.outputs.token }}
198198
199+ label-copilot-prs:
200+ name: 🏷️ Label Copilot PRs as Vibe Coded
201+ runs-on: ubuntu-latest
202+ # Only label once when PR is created by Copilot
203+ if: >
204+ github.event.action == 'opened' &&
205+ github.event.pull_request.user.login == 'Copilot'
206+
207+ steps:
208+ - name: Mint App Token
209+ id: app
210+ # Create a GitHub App token
211+ # https://github.com/marketplace/actions/create-github-app-token
212+ uses: actions/create-github-app-token@v2
213+ with:
214+ app-id: ${{ vars.ST_BOT_APP_ID }}
215+ private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
216+ owner: ${{ github.repository_owner }}
217+
218+ - name: Add Vibe Coded Label
219+ # 🤖 Issues Helper
220+ # https://github.com/marketplace/actions/issues-helper
221+ uses: actions-cool/issues-helper@v3.6.0
222+ with:
223+ actions: 'add-labels'
224+ token: ${{ steps.app.outputs.token }}
225+ issue-number: ${{ github.event.pull_request.number }}
226+ labels: '✨ Vibe Coded'
227+
199228 remove-stale-label:
200229 name: 🗑️ Remove Stale Label on Comment
201230 needs: [label-by-branches, label-by-files, label-copilot-prs]
202231 runs-on: ubuntu-latest
203232 # Only runs on comments not done by the github actions bot
204233 if: always() && (github.event_name == 'pull_request_review_comment' && github.event.sender.type != 'Bot')
@@ -236,7 +265,7 @@ jobs:
236265
237266 check-merge-blocking-labels:
238267 name: 🚫 Check Merge Blocking Labels
239268 needs: [label-by-branches, label-by-files, label-copilot-prs, remove-stale-label]
240269 runs-on: ubuntu-latest
241270 # Run, even if the previous jobs were skipped/failed
242271 if: always()
@@ -286,7 +315,7 @@ jobs:
286315
287316 write-auto-comments:
288317 name: 💬 Post PR Comments Based on Labels
289318 needs: [label-by-branches, label-by-files, label-copilot-prs, remove-stale-label, check-merge-blocking-labels]
290319 runs-on: ubuntu-latest
291320 # Run, even if the previous jobs were skipped/failed
292321 if: always() && (github.event_name == 'pull_request_target')