ci: add workflow to sync issues to a target GitHub project#1236
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an opt-in GitHub Actions workflow to sync issue lifecycle events (opened/closed) into a GitHub Projects v2 board in another organization, plus documentation for setup and configuration.
Changes:
- Added
.github/workflows/sync-issues-to-project.ymlto add issues to a target Project on open, set initial field values, and update Status on close, with optional bulk import viaworkflow_dispatch. - Added
.github/workflows/sync-issues-to-project.mddocumenting required secrets/variables, initial values format, and troubleshooting.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
| .github/workflows/sync-issues-to-project.yml | New workflow implementing cross-org Projects v2 sync for issues, including optional bulk import and field initialization. |
| .github/workflows/sync-issues-to-project.md | New documentation explaining configuration, limitations, and troubleshooting for the workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1d1c2c0 to
ed8d05f
Compare
ed8d05f to
e8d29dc
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to sync issue lifecycle events (opened/closed) into a GitHub Projects v2 board in another org, plus documentation describing configuration and usage. This supports the repository’s CI/automation tooling by keeping issue tracking in sync with an external project board.
Changes:
- Add
sync-issues-to-project.ymlworkflow to add opened issues to a target project and set project item Status on close (plus optional manual import). - Add reusable bash helper for applying initial project field values (and optional assignee updates).
- Add
sync-issues-to-project.mddocumentation covering setup, variables, limitations, and troubleshooting.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/sync-issues-to-project.yml | Implements issue→project sync (opened/closed) and optional manual import, using GitHub CLI + GraphQL. |
| .github/workflows/sync-issues-to-project.md | Documents required token scopes, repo variables/secrets, and expected project field setup. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e8d29dc to
bc87105
Compare
There was a problem hiding this comment.
Pull request overview
This PR introduces automation to sync issue lifecycle events from this repository into a GitHub Projects v2 board in another organization, with optional initial field-setting and bulk import support.
Changes:
- Adds a new GitHub Actions workflow to add newly opened issues to a target Project v2 and mark them “Done” (or configured status) when closed.
- Adds optional features: author allowlist filtering, initial field value application, and manual bulk import of existing open issues.
- Adds documentation describing required configuration (repo variables/secrets) and usage/troubleshooting.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/sync-issues-to-project.yml | Implements issue open/close + manual dispatch automation using gh api (GraphQL + REST) to sync issues to a target Project v2 and apply initial field values. |
| .github/workflows/sync-issues-to-project.md | Documents setup, configuration variables, supported field behavior, limitations, and troubleshooting for the workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds the sync-issues-to-project.yml workflow triggered on issue open/close and workflow_dispatch. Uses PSYNC_TARGET (repo variable) and PSYNC_PAT (repo secret) for configuration. Closes serverlessworkflow#1235 Signed-off-by: David Gutierrez <[email protected]>
bc87105 to
a25a127
Compare
Summary
sync-issues-to-project.yml— a GitHub Actions workflow that syncs issue lifecycle events to a target GitHub Project in another organizationsync-issues-to-project.md— documentation for the workflow configuration and usageissues: [opened, closed]andworkflow_dispatchConfiguration
PSYNC_TARGET(repo variable) — target project inorg:project_numberformat (e.g.my-org:1)PSYNC_PAT(repo secret) — PAT withprojectandread:orgscopes on the target orgRelated
Closes #1235