Skip to content

ci(project-sync): set Status to Done on PR merge & issue close - #464

Merged
ajianaz merged 1 commit into
developfrom
ci/project-sync-status-done
Jun 23, 2026
Merged

ajianaz merged 1 commit into
developfrom
ci/project-sync-status-done

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

What

Update project-sync.yml so the CodeCoraDev Roadmap board reflects completion automatically.

Trigger Action
issues: [closed] Set Status = Done
pull_request: [closed] + merged Resolve closingIssuesReferences → set each linked item to Done
pull_request: [closed] not merged No change
issues: [opened/reopened] Add to board (unchanged)

Why

Previously the closed branch only echoed a log line and PR merges were not handled at all, so items stuck in their current status forever.

How

  • Reuse existing PROJECT_NODE_ID secret; hardcode resolved IDs for the Status field and Done option:
    • Status field: PVTSSF_lADOEUV_vs4BahYpzhVYcGc
    • Done option: 98236657
  • Helpers: add_to_project, get_item_id (lookup by content node), set_done (GraphQL updateProjectV2ItemFieldValue).
  • For PRs, query closingIssuesReferences to handle "Fixes #N" semantics.

Scope

Only .github/workflows/project-sync.yml. No runtime code changes.

Test plan

  • CI green on this PR
  • On merge: linked issue(s) flip to Done
  • Manual: close an issue that's on the board → item becomes Done

Issue closed: mark project item Status = Done
PR merged: resolve closingIssuesReferences, set each linked item to Done
PR closed (no merge): no change

Target board: CodeCoraDev Roadmap (org codecoradev, project 1)
Status field: PVTSSF_lADOEUV_vs4BahYpzhVYcGc / Done option: 98236657
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review recommended — warnings found.

🟡 Warning (1)

  • unknown:? — Cora AI review could not complete: LLM API returned status 401: {"error":"Internal server error"}
    . Review was skipped; no code quality issues were found by the automated check.

Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit 6185869 into develop Jun 23, 2026
8 of 9 checks passed
@ajianaz
ajianaz deleted the ci/project-sync-status-done branch June 23, 2026 03:42
ajianaz added a commit that referenced this pull request Aug 13, 2026
Issue closed: mark project item Status = Done
PR merged: resolve closingIssuesReferences, set each linked item to Done
PR closed (no merge): no change

Target board: CodeCoraDev Roadmap (org codecoradev, project 1)
Status field: PVTSSF_lADOEUV_vs4BahYpzhVYcGc / Done option: 98236657
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