Skip to content

chore: add sync-prs-to-linear action#961

Merged
dielduarte merged 1 commit into
canaryfrom
feature/eng-4902-sync-prs-to-linear
May 15, 2026
Merged

chore: add sync-prs-to-linear action#961
dielduarte merged 1 commit into
canaryfrom
feature/eng-4902-sync-prs-to-linear

Conversation

@dielduarte
Copy link
Copy Markdown
Contributor

@dielduarte dielduarte commented May 14, 2026

Adds the sync-prs-to-linear workflow to automatically sync open external contributor PRs to Linear daily.


Summary by cubic

Adds a scheduled GitHub Actions workflow to sync open external-contributor PRs to Linear every day. Keeps Linear in sync with GitHub and addresses ENG-4902.

  • New Features
    • New workflow .github/workflows/sync-prs-to-linear.yml runs daily at 10:00 UTC and supports manual runs.
    • Uses resend/public-shared-workflows/.github/actions/sync_prs_to_linear to create/update Linear issues from open PRs.
    • Requires secrets LINEAR_API_KEY and LINEAR_TEAM_ID; uses github.token.
    • Scoped permissions: pull-requests: write, issues: write; default contents: none.

Written for commit a35c25d. Summary will update on new commits.

@dielduarte dielduarte requested a review from a team as a code owner May 14, 2026 21:33
@dielduarte dielduarte requested a review from cassiozen May 14, 2026 21:33
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file

Confidence score: 4/5

  • This PR looks safe to merge with minimal risk; the noted concern is a permission/configuration check rather than a confirmed functional defect.
  • In .github/workflows/sync-prs-to-linear.yml, the new Linear sync path depends on LINEAR_API_KEY scopes through a shared action, so insufficient permissions could cause workflow failures at runtime.
  • Given the medium severity (5/10) and good confidence (7/10), this is a practical validation item before or right after merge, not an obvious merge blocker.
  • Pay close attention to .github/workflows/sync-prs-to-linear.yml - verify LINEAR_API_KEY has the required API permissions for all SDK operations used by the sync action.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/sync-prs-to-linear.yml">

<violation number="1" location=".github/workflows/sync-prs-to-linear.yml:22">
P2: Custom agent: **API Key Permission Check SDK Methods**

New sync workflow introduces Linear API usage via a shared action — confirm existing `LINEAR_API_KEY` has required permissions for the operations performed by `sync_prs_to_linear`</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread .github/workflows/sync-prs-to-linear.yml
@dielduarte dielduarte requested review from felipefreitag and gabrielmfern and removed request for cassiozen May 14, 2026 21:39
@dielduarte dielduarte merged commit ac0c09f into canary May 15, 2026
10 of 11 checks passed
@dielduarte dielduarte deleted the feature/eng-4902-sync-prs-to-linear branch May 15, 2026 14:27
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