Skip to content

Update AI workflows to match upstream patterns#338

Open
strawgate wants to merge 1 commit intomainfrom
update-ai-workflows-upstream-patterns
Open

Update AI workflows to match upstream patterns#338
strawgate wants to merge 1 commit intomainfrom
update-ai-workflows-upstream-patterns

Conversation

@strawgate
Copy link
Copy Markdown
Owner

@strawgate strawgate commented Mar 26, 2026

Summary

  • Align AI GitHub Actions workflows with patterns from ai-github-actions-playground
  • Add new valuable workflows for library maintenance
  • Remove deprecated workflows not present in upstream

Changes

Updated workflows:

  • PR Review: use pull_request_target for security, add author association check, use intensity/minimum_severity params
  • Mention in PR/Issue: use -no-sandbox variants, remove setup-commands/messages-footer
  • Minimize Resolved Reviews: simplify triggers to just pull_request_review, add concurrency group
  • Bug Hunter, Issue Triage, Stale Issues: fix permissions, use title-prefix
  • Docs Drift → Docs Patrol: rename file, update permissions
  • PR Actions Fixer → PR Actions Detective: add gate job with label check

New workflows:

Workflow Purpose
Breaking Change Detector Detect API breaking changes (valuable for library)
Duplicate Issue Detector Identify duplicate issues on open
Address PR Review Feedback Auto-fix minor bot review feedback
Refactor Opportunist Identify refactoring opportunities
Code Duplication Detector Find duplicate Python code

Removed workflows (not in upstream):

  • Small Problem Fixer
  • Code Simplifier
  • Test Improvement

Test plan

  • Verify workflows pass YAML validation
  • Test PR Review workflow on a test PR
  • Test Mention workflows with /ai command

Made with Cursor

Note

Update AI GitHub Actions workflows to match upstream patterns

  • Adds several new AI workflows: address PR review feedback, breaking change detection, code duplication detection (Python), docs patrol, duplicate issue detection, and a refactor opportunist (weekly).
  • Adds a PR Actions Detective workflow that triggers on test failures and comments on the failing PR unless the no-pr-actions-detective label is set.
  • Updates the PR review workflow to use pull_request_target, switch the opt-out label to no-pr-review, and apply aggressive intensity with nitpick minimum severity.
  • Switches mention-in-issue and mention-in-pr to the no-sandbox reusable workflow variants and removes setup-commands/messages-footer inputs across multiple workflows.
  • Removes four workflows: Code Simplifier, Docs Drift, PR Actions Fixer, Small Problem Fixer, and Test Improvement.
  • Updates minimize-resolved-reviews to trigger only on PR review submission with concurrency control, dropping the /tidy comment gate.
  • Reduces permissions in trigger-bug-hunter from write to read and replaces its inputs with a title-prefix.

Macroscope summarized 63434db.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 26, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: ecf43556-5d92-4ac7-9074-1191a6e834d6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-ai-workflows-upstream-patterns

Comment @coderabbitai help to get the list of available commands and usage tips.

@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Mar 26, 2026

Approvability

Verdict: Needs human review

Unable to check for correctness in 7641e1e.

No code changes detected at 63434db. Prior analysis still applies.

You can customize Macroscope's approvability policy. Learn more.

@strawgate strawgate force-pushed the update-ai-workflows-upstream-patterns branch from 7641e1e to 61c41cf Compare March 26, 2026 15:51
Align AI GitHub Actions workflows with patterns from ai-github-actions-playground:

**Updated workflows:**
- PR Review: use pull_request_target, add author association check, use intensity/minimum_severity
- Mention in PR/Issue: use -no-sandbox variants, remove setup-commands/messages-footer
- Minimize Resolved Reviews: simplify triggers, add concurrency group
- Bug Hunter, Issue Triage, Stale Issues: fix permissions, use title-prefix
- Docs Drift → Docs Patrol: rename, update permissions
- PR Actions Fixer → PR Actions Detective: add gate job with label check

**New workflows:**
- Breaking Change Detector: detect API breaking changes (valuable for library)
- Duplicate Issue Detector: identify duplicate issues on open
- Address PR Review Feedback: auto-fix minor bot review feedback
- Refactor Opportunist: identify refactoring opportunities
- Code Duplication Detector: find duplicate Python code

**Removed workflows** (not in upstream):
- Small Problem Fixer
- Code Simplifier
- Test Improvement

Made-with: Cursor
@strawgate strawgate force-pushed the update-ai-workflows-upstream-patterns branch from 61c41cf to 63434db Compare March 26, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant