Skip to content

Require Closes #N in agent PR bodies for auto-close on merge - #39

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/pr-closes-issues-c293
Jul 19, 2026
Merged

cursor[bot] merged 3 commits into
mainfrom
cursor/pr-closes-issues-c293

Conversation

@wschenk

@wschenk wschenk commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Cloud Agent tokens often lack issues:write, so agents cannot close tickets after merge. GitHub will close them automatically when the PR body includes a closing keyword.

Changes

  • agent-ticket-claim.yml requires Closes #N / Fixes #N / Resolves #N in the PR body for cursor/* PRs
  • Documents the rule in docs/agents/issue-workflow.md and AGENTS.md
  • Adds a PR template with a Closes # line
  • Infra/docs PRs may set No-ticket: true to skip claim/close checks

No-ticket: true

Why this works

Merging a PR into main with Closes #13 in the body closes issue #13 via GitHub’s native linking — no agent issue permissions required.

Open in Web Open in Cursor 

cursoragent and others added 3 commits July 19, 2026 01:06
Cloud Agent tokens often lack issues:write; GitHub closing keywords close the
ticket on merge. Enforce that for cursor/* PRs in the claim workflow.

Co-authored-by: Will Schenk <wschenk@gmail.com>
Process-only changes have no product issue to close; skip claim when the
PR body declares No-ticket: true.

Co-authored-by: Will Schenk <wschenk@gmail.com>
Co-authored-by: Will Schenk <wschenk@gmail.com>
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
walking-thoughts Ready Ready Preview, Comment Jul 19, 2026 1:07am

Request Review

@cursor
cursor Bot marked this pull request as ready for review July 19, 2026 01:19
@cursor
cursor Bot merged commit d68496d into main Jul 19, 2026
3 checks passed
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.

2 participants