Skip to content

fix(github-project): fetch linked PR and sub-issues progress field values - #12821

Closed
innocarpe wants to merge 1 commit into
stablyai:mainfrom
innocarpe:fix/project-linked-pr-subissues-columns
Closed

innocarpe wants to merge 1 commit into
stablyai:mainfrom
innocarpe:fix/project-linked-pr-subissues-columns

Conversation

@innocarpe

@innocarpe innocarpe commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fetch and render ProjectV2 linked pull requests and sub-issue completion progress so both project columns show their current values.

Focused fix

  • Read linked pull requests from ProjectV2ItemFieldPullRequestValue and render their numbers, including a count for additional linked PRs.
  • Read Issue.subIssuesSummary and render completed, total, and percent complete.
  • Request these extended fields only on GitHub.com to keep older GitHub Enterprise Server schemas compatible.

Compatibility

  • Unknown project field typenames continue to be ignored.
  • Uses the current GitHub GraphQL schema; it does not request the unsupported progress-value typename.

Verification

  • Targeted Vitest: 2 files, 7 tests passed.
  • Changed-file native Oxlint and Oxfmt checks passed.
  • git diff HEAD^ HEAD --check passed.

Fixes #12649

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Project V2 field values now support linked pull requests and sub-issue progress. GraphQL selection retrieves the related nodes and metrics. Normalization filters invalid pull-request nodes and applies numeric defaults. ProjectCell renders pull-request numbers and completed, total, and rounded percentage values. Tests cover both normalization paths.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes add the required GraphQL values, normalization, types, rendering, and tests for linked pull requests and sub-issue progress [#12649].
Out of Scope Changes check ✅ Passed The changes remain within scope by implementing value fetching, normalization, rendering, type support, and regression tests without adding field editing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly identifies the change: fetching linked pull-request and sub-issue progress field values for GitHub Projects.
Description check ✅ Passed The description explains the change, compatibility approach, linked issue, and verification. It omits the required visual proof or an N/A explanation, and does not use explicit ELI5 and Why sections. …

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7c369ed0-37a7-41b5-94bb-706934e20039

📥 Commits

Reviewing files that changed from the base of the PR and between 79896cb and 576ba13ae4f300c2f39a4dbec4329e3be18b1558.

📒 Files selected for processing (4)
  • src/main/github/project-view-field-values.test.ts
  • src/main/github/project-view.ts
  • src/renderer/src/components/github-project/ProjectCell.tsx
  • src/shared/github-project-types.ts

Comment thread src/main/github/project-view.ts Resolved
Comment thread src/main/github/project-view.ts Resolved
@innocarpe
innocarpe force-pushed the fix/project-linked-pr-subissues-columns branch from 576ba13 to 2d5cb46 Compare August 6, 2026 01:58
@innocarpe

Copy link
Copy Markdown
Contributor Author

Sync update (2d5cb46a42)

Address CodeRabbit: remove unsupported ProjectV2ItemFieldProgressValue; linked PRs now carry totalCount/truncated for cell overflow. @coderabbitai please re-review

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

@innocarpe I will re-review the updated PR changes.

⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nwparker nwparker removed the P1 label Aug 19, 2026
@innocarpe
innocarpe force-pushed the fix/project-linked-pr-subissues-columns branch 2 times, most recently from 3e92491 to 4e1a2dc Compare October 13, 2026 12:05
@nwparker

Copy link
Copy Markdown
Contributor

Thanks for this fix! The same problem is now fixed on main by #34185 (287a34c): project items now request ProjectV2ItemFieldPullRequestValue and Issue.subIssuesSummary (with schema probing for older GitHub Enterprise hosts), and ProjectCell renders the Linked pull requests and Sub-issues progress columns. Closing as superseded — thanks again for the contribution.

@nwparker nwparker closed this Oct 28, 2026
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.

[Bug] Linked pull requests" and "Sub-issues progress" columns always render empty

4 participants