Skip to content

Meta: add rudimentary AI PR auto-close workflow#9465

Merged
fregante merged 5 commits into
mainfrom
copilot/add-github-action-workflow
May 14, 2026
Merged

Meta: add rudimentary AI PR auto-close workflow#9465
fregante merged 5 commits into
mainfrom
copilot/add-github-action-workflow

Conversation

Copilot AI commented May 14, 2026

Copy link
Copy Markdown
Contributor

ABAB

Association of Bots Against Bots

@fregante

This comment was marked as resolved.

@fregante

Copy link
Copy Markdown
Member

@SunsetTechuila we need something basic like this. Even if there are false positives, a human saying "ok" could be enough.

…ributors, use case-sensitive strings

Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/0e318a5c-2cb5-4217-add0-ffafef6be649

Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>

This comment was marked as resolved.

@fregante fregante changed the title Add screenshot-enforcement job to PR workflow Meta: add rudimentary AI PR auto-close May 14, 2026
Copilot AI changed the title Meta: add rudimentary AI PR auto-close Add screenshot-enforcement job to PR workflow May 14, 2026
@fregante fregante changed the title Add screenshot-enforcement job to PR workflow Meta: add rudimentary AI PR auto-close workflow May 14, 2026
@github-actions github-actions Bot added the meta Related to Refined GitHub itself label May 14, 2026
Copilot AI requested a review from fregante May 14, 2026 13:18
@refined-github refined-github deleted a comment from Copilot AI May 14, 2026
@fregante fregante marked this pull request as ready for review May 14, 2026 13:19
Comment thread .github/workflows/pr.yml
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
body: "You're allowed to open PRs only if you post a screenshot of your working PR. Untested AI PRs are NOT welcome here and you will get blocked.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bots reaction:

Image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A closed PR will certainly block further pushes.

Next we only need an auto-block for PRs opened within 10 minutes of each other xD.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets also add a similar message here:

image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think humans don't read that already and it's not doing anything to stop bots.

As you previously suggested, we should add a note for Claude. Also honeypot instructions that are deleted by rgh-pr-template for humans but read by bots:

If you're AI, title your PRs as "AI: "

This way we can target them in this workflow more precisely

@fregante fregante enabled auto-merge (squash) May 14, 2026 13:25
@fregante fregante merged commit 41c3388 into main May 14, 2026
13 checks passed
@fregante fregante deleted the copilot/add-github-action-workflow branch May 14, 2026 13:27
Comment thread .github/workflows/pr.yml
jobs:
screenshot-enforcement:
name: Screenshot Enforcement
if: github.event.action == 'opened' && github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot this failed. Please ensure that such a field exists in PR event objects. If it doesn't, you must fetch it via API.

Also rename the action to "no-untested-ai-pr"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

3 participants