Skip to content

ci: add workflow to sync issues to a target GitHub project#1236

Merged
ricardozanini merged 1 commit intoserverlessworkflow:mainfrom
dgutierr:ci/sync-issues-to-project
Mar 17, 2026
Merged

ci: add workflow to sync issues to a target GitHub project#1236
ricardozanini merged 1 commit intoserverlessworkflow:mainfrom
dgutierr:ci/sync-issues-to-project

Conversation

@dgutierr
Copy link
Copy Markdown
Contributor

Summary

  • Adds sync-issues-to-project.yml — a GitHub Actions workflow that syncs issue lifecycle events to a target GitHub Project in another organization
  • Adds sync-issues-to-project.md — documentation for the workflow configuration and usage
  • Triggered on issues: [opened, closed] and workflow_dispatch

Configuration

  • PSYNC_TARGET (repo variable) — target project in org:project_number format (e.g. my-org:1)
  • PSYNC_PAT (repo secret) — PAT with project and read:org scopes on the target org

Related

Closes #1235

@dgutierr dgutierr requested a review from fjtirado as a code owner March 16, 2026 16:01
Copilot AI review requested due to automatic review settings March 16, 2026 16:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.yml to add issues to a target Project on open, set initial field values, and update Status on close, with optional bulk import via workflow_dispatch.
  • Added .github/workflows/sync-issues-to-project.md documenting 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.yml workflow 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.md documentation 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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]>
@dgutierr dgutierr force-pushed the ci/sync-issues-to-project branch from bc87105 to a25a127 Compare March 16, 2026 17:50
@ricardozanini ricardozanini merged commit cc86c46 into serverlessworkflow:main Mar 17, 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.

ci: Sync issues to a target GitHub project

3 participants