[PR #6810] Add workflow to remove 'suspect ai generated' label when 'AI Generated' is added #6751

Closed
opened 2026-02-28 21:32:14 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6810

State: closed
Merged: Yes


Summary

This PR adds a new GitHub Actions workflow that automatically removes the suspect ai generated label from pull requests when both the AI generated and suspect ai generated labels are present.

What

  • Added new workflow file .github/workflows/pr-ai-label-cleanup.yml
  • Triggers on pull_request_target labeled events
  • Uses the new ubuntu-slim runner (1 vCPU, optimized for lightweight automation tasks)
  • Uses actions/github-script@v8 to call the GitHub API directly

Why

An AI bot automatically adds the suspect ai generated label to PRs it suspects may be AI-generated. When a maintainer reviews the PR and confirms it is AI-generated, they add the AI generated label. At that point, the suspicion label is no longer needed since the PR has been explicitly marked as AI-generated by a maintainer.

How

The workflow triggers on any label addition to a PR. After the label is added, it checks if both labels are present:

  • AI generated (added by maintainers)
  • suspect ai generated (added by AI bot)

If both exist, the suspect ai generated label is removed. This covers two scenarios:

  1. Maintainer adds AI generated to a PR that already has suspect ai generated
  2. AI bot adds suspect ai generated to a PR that a maintainer has already marked as AI generated

Note: This workflow only affects these two specific labels. All other label operations on the PR remain unaffected.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6810 **State:** closed **Merged:** Yes --- ## Summary This PR adds a new GitHub Actions workflow that automatically removes the `suspect ai generated` label from pull requests when both the `AI generated` and `suspect ai generated` labels are present. ## What - Added new workflow file `.github/workflows/pr-ai-label-cleanup.yml` - Triggers on `pull_request_target` labeled events - Uses the new [`ubuntu-slim` runner](https://github.blog/changelog/2026-01-22-1-vcpu-linux-runner-now-generally-available-in-github-actions/) (1 vCPU, optimized for lightweight automation tasks) - Uses `actions/github-script@v8` to call the GitHub API directly ## Why An AI bot automatically adds the `suspect ai generated` label to PRs it suspects may be AI-generated. When a maintainer reviews the PR and confirms it is AI-generated, they add the `AI generated` label. At that point, the suspicion label is no longer needed since the PR has been explicitly marked as AI-generated by a maintainer. ## How The workflow triggers on any label addition to a PR. After the label is added, it checks if **both** labels are present: - `AI generated` (added by maintainers) - `suspect ai generated` (added by AI bot) If both exist, the `suspect ai generated` label is removed. This covers two scenarios: 1. Maintainer adds `AI generated` to a PR that already has `suspect ai generated` 2. AI bot adds `suspect ai generated` to a PR that a maintainer has already marked as `AI generated` **Note:** This workflow only affects these two specific labels. All other label operations on the PR remain unaffected.
GiteaMirror added the pull-request label 2026-02-28 21:32:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6751