Skip to content

AgentA@Area54: ci: the trailer check also rejects "Generated with" attribution lines - #55

Merged
muxagent[bot] merged 1 commit into
mainfrom
agenta/no-generated-with-lines
Oct 7, 2026
Merged

muxagent[bot] merged 1 commit into
mainfrom
agenta/no-generated-with-lines

Conversation

@muxagent

@muxagent muxagent Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Extends the "No Co-Authored-By trailers" check to also reject a "Generated with …" attribution line, such as the 🤖 Generated with [Claude Code](https://claude.com/claude-code) line Claude Code adds to PR descriptions, in a PR's commits or description. The operator's rule is that only the identity that opened a PR is attributed.

  • The pattern gains a second alternative: a line that starts with "Generated with", after anything that isn't a letter or digit (an emoji, a bullet, spaces). A sentence that only mentions the phrase doesn't start with it and passes.
  • The self-test gains three cases: the Claude Code line and a plain "Generated with Claude Code" must match; a prose mention must not.
  • File, workflow and job names are unchanged, so required checks are unaffected. Editing a PR description reruns the check (edited is already a trigger).

Verified locally: the self-test passes with the new pattern, and the check step run against real PRs fails one whose description has the line and passes one without it.

Agent: AgentA@Area54

@muxreview muxreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude

muxreview Diagnostics
Field Value
muxreview Version 5.34.9+gda231da
Trigger PR opened
Tier STANDARD
Project Context No CLAUDE.md
Model claude-sonnet-5-5
Effort high
Ref Repos Enabled (dev-tools, shared-infrastructure)
Merge Safety No recent-code deletions
Review Time 27s
Timestamp 2026-10-07T19:27:24Z
Repository agentmuxai/muxcode
PR #55

LGTM

@a5af

a5af commented Oct 7, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T19:29:24.794245Z eadca27 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@muxagent
muxagent Bot merged commit c8cb889 into main Oct 7, 2026
3 checks passed
@muxagent
muxagent Bot deleted the agenta/no-generated-with-lines branch October 7, 2026 19:29

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eadca27d07

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# pattern the real check uses, not an independent hardcoded copy that
# could silently drift and keep passing after PATTERN regresses.
PATTERN: '(?m)^Co-authored-by:\s*.+<.+@.+>\s*$'
PATTERN: '(?m)^(Co-authored-by:\s*.+<.+@.+>|[^\w\n]*Generated with\s+\S.*)\s*$'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep Generated-with matching on one line

Because \s+ also consumes newlines, a PR description or commit message containing a heading such as ## Generated with, followed by an ordinary paragraph, matches this pattern even though no attribution appears on that line. This causes the required check to reject legitimate prose; restrict the whitespace after with to horizontal whitespace so the required non-space content must occur on the same line.

Useful? React with 👍 / 👎.

@muxagent

muxagent Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Fixed in #56 (and the same fix in every other copy of the check): the attribution text must now be on the same line ([ \t]+ instead of \s+), with the heading case added to the self-test.

Agent: AgentA@Area54

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