Skip to content

Fix error when dismissing PR notifications - #9017

Merged
Alex Ross (alexr00) merged 1 commit into
mainfrom
alexr00/artistic-yak
Oct 8, 2026
Merged

Alex Ross (alexr00) merged 1 commit into
mainfrom
alexr00/artistic-yak

Conversation

@alexr00

Copy link
Copy Markdown
Member

No description provided.

@alexr00 Alex Ross (alexr00) self-assigned this Oct 5, 2026
@alexr00
Alex Ross (alexr00) marked this pull request as ready for review October 7, 2026 15:06
Copilot AI balanced review requested due to automatic review settings October 7, 2026 15:06

Copilot AI 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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

4 open findings
What changed in this PR

Fixes crashes when parsing PR timeline data where GitHub returns missing author/committer information for commits or missing merge refs for merged events.

Changes:

  • Make commit parsing tolerate author / committer being null.
  • Make merge parsing tolerate deleted mergeRef by falling back to mergeRefName.
  • Add regression tests for these null/missing-field scenarios.
File Description
src/​test/​github/​utils.test.ts Adds tests covering null commit author/committer and deleted merge refs.
src/​github/​utils.ts Adds null-safe parsing for commit author/committer and merge ref name fallback.
src/​github/​queriesShared.gql Fetches mergeRefName so merges can be represented even if mergeRef is deleted.
src/​github/​graphql.ts Updates GraphQL types to allow null for actor/mergeRef/author/committer fields.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/github/graphql.ts
Comment thread src/github/utils.ts
Comment thread src/test/github/utils.test.ts
Comment thread src/test/github/utils.test.ts
@alexr00
Alex Ross (alexr00) merged commit 9f9e6e5 into main Oct 8, 2026
6 checks passed
@alexr00
Alex Ross (alexr00) deleted the alexr00/artistic-yak branch October 8, 2026 09:12
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.

3 participants