Skip to content

Enable signed Cycle 29 showcase reviews in Linear - #26

Merged
curiousgeorgios merged 1 commit into
mainfrom
george/cycle-29-showcase-review
Sep 24, 2026
Merged

curiousgeorgios merged 1 commit into
mainfrom
george/cycle-29-showcase-review

Conversation

@curiousgeorgios

Copy link
Copy Markdown
Owner

Adds Cycle metadata to the public issue feed and a signed, narrowly scoped review endpoint for George-owned Cycle 29 issues in review. Decisions post an attributed Linear comment and move the issue to Done, In Progress, or Canceled. Rejects unsigned requests, other cycles, assignees, teams, and non-review states. Local full test, typecheck, lint and Worker build passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 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-09-24T07:16:41.736081Z c5bfff5 PR opened
🔒 Security Review ✅ Completed 2026-09-24T07:19:44.813003Z c5bfff5 PR opened
ℹ️ 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.

@curiousgeorgios
curiousgeorgios merged commit e23d5b7 into main Sep 24, 2026
2 checks passed
@curiousgeorgios
curiousgeorgios deleted the george/cycle-29-showcase-review branch September 24, 2026 07:16

@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: c5bfff5bb5

ℹ️ 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".

Comment on lines +43 to +44
const raw = await request.text();
if (raw.length > 7000) return NextResponse.json({ error: 'Review is too long.' }, { status: 413 });

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 Reject oversized bodies before buffering them

An unauthenticated request is fully materialized by request.text() before the 7,000-character check, so a caller can repeatedly send very large unsigned bodies and force the Worker to allocate and hash them before receiving a 413/401 response. This route should reject an oversized Content-Length before reading and enforce a byte limit while consuming the stream, as the existing feedback webhook does.

Useful? React with 👍 / 👎.

Comment on lines +89 to +93
const commentResult = await linearRequest<{ commentCreate: { success: boolean } }>(token,
`mutation ShowcaseReviewComment($input: CommentCreateInput!) { commentCreate(input: $input) { success } }`,
{ input: { issueId: issue.id, body } });
if (!commentResult.commentCreate.success) throw new Error('Linear did not save the review comment');
const updateResult = await linearRequest<{ issueUpdate: { success: boolean; issue: { state: { name: string } } | null } }>(token,

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 Serialize concurrent decisions for each issue

When two signed reviews for the same issue arrive concurrently, both requests can observe In Review before either reaches these mutations, then both create comments and independently update the status; conflicting decisions can therefore both return success, with the last update silently winning. The initial state check does not provide replay or concurrency protection, so decisions need a per-issue idempotency/serialization mechanism before writing to Linear.

Useful? React with 👍 / 👎.

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