Skip to content

ci: auto-add issues and PRs to org project #2#178

Open
tylere wants to merge 3 commits into
mainfrom
ci/auto-add-to-project
Open

ci: auto-add issues and PRs to org project #2#178
tylere wants to merge 3 commits into
mainfrom
ci/auto-add-to-project

Conversation

@tylere

@tylere tylere commented Jul 1, 2026

Copy link
Copy Markdown

What

Adds .github/workflows/add-to-project.yml:

  • Go-forward: newly opened / reopened / transferred issues and opened / reopened / ready-for-review PRs are automatically added to org Project #2 via actions/add-to-project.
  • Backfill: a workflow_dispatch job adds all currently-open issues and PRs to the project (idempotent — safe to re-run).

Credential

Uses a new dedicated least-privilege GitHub App Source Project Bot (org var SC_PROJECT_BOT_ID + secret SC_PROJECT_BOT_PRIVATE_KEY), because the default GITHUB_TOKEN cannot write to an org-level Project v2. The App is created/installed and secrets set as a one-time org-owner step.

Notes

  • Actions are pinned to commit SHAs, matching this repo's convention.
  • pull_request_target is used so the App token is available for fork PRs; the workflow never checks out or runs PR code.

🤖 Generated with Claude Code

Add a workflow that adds newly opened/reopened issues and PRs to org Project #2, plus a workflow_dispatch job to backfill existing open items. Uses the dedicated Source Project Bot GitHub App token.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

🚀 Latest commit deployed to https://source-data-proxy-pr-178.source-coop.workers.dev

  • Date: 2026-07-01T23:11:04Z
  • Commit: a760ab3

@tylere tylere enabled auto-merge (squash) July 1, 2026 23:02
@tylere tylere disabled auto-merge July 1, 2026 23:02
@tylere tylere requested a review from alukach July 1, 2026 23:02
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant