mirror of
https://github.com/actualbudget/actual.git
synced 2026-07-11 11:59:55 -05:00
* [AI] Migrate CI workflows to Depot-managed runners Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Rename release notes to match PR number Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Empty commit to trigger CI Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Keep VRT jobs on GitHub-hosted runners Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Use 4-vCPU Depot Windows runners for Electron builds Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Use 4-vCPU Depot Ubuntu runners for Electron builds Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Use 4-vCPU Depot runners for functional e2e tests Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Scale Electron build runners to 8 vCPUs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Scale Ubuntu Electron builds to 4 vCPUs and move Windows builds back to GitHub runners Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Move Microsoft Store publish back to GitHub Windows runner Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * [AI] Add actionlint config for Depot runner labels Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Matiss Janis Aboltins <MatissJanis@users.noreply.github.com>
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
name: Add 'AI generated' label to '[AI]' PRs
|
|
|
|
##########################################################################################
|
|
# This workflow uses the 'pull_request_target' event so it has a token that can add a #
|
|
# label to PRs from forks. It does NOT check out or execute any code from the PR, so it #
|
|
# is not vulnerable to the usual 'pull_request_target' code-injection concerns. Keep it #
|
|
# that way - do not add a checkout step or run any PR-provided scripts here. #
|
|
##########################################################################################
|
|
|
|
on:
|
|
# This workflow never checks out or runs PR code; it only reads the PR title and adds a label.
|
|
pull_request_target: # zizmor: ignore[dangerous-triggers]
|
|
types: [opened, reopened, edited]
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
add-ai-generated-label:
|
|
name: Add 'AI generated' label
|
|
runs-on: depot-ubuntu-latest
|
|
if: startsWith(github.event.pull_request.title, '[AI]')
|
|
steps:
|
|
- name: Add 'AI generated' label
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GH_REPO: ${{ github.repository }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
run: gh pr edit "$PR_NUMBER" --add-label "AI generated"
|