Skip to content

SK-16: Fix gh errors and own-activity detection#17

Merged
mrdon merged 1 commit into
mainfrom
mrdon/16-fix-gh-errors-own-activity
Apr 9, 2026
Merged

SK-16: Fix gh errors and own-activity detection#17
mrdon merged 1 commit into
mainfrom
mrdon/16-fix-gh-errors-own-activity

Conversation

@mrdon
Copy link
Copy Markdown
Contributor

@mrdon mrdon commented Apr 9, 2026

Summary

  • Add ghOutput() helper so all gh CLI calls consistently extract stderr on failure instead of showing bare "exit status 1"
  • Remove commits field from PR list queries to fix GitHub GraphQL 500k node limit on busy repos
  • Suppress own diff changes by checking PR.Author == currentUser instead of LatestCommitAuthor — covers all cases (open, merged, own PRs)
  • Remove now-unused LatestCommitAuthor field and related functions

Closes #16

Security implications of changes have been considered

- Add ghOutput() helper for consistent stderr extraction
- Drop commits field from PR list queries (node limit)
- Suppress own diffs by PR author, not latest commit
- Remove unused LatestCommitAuthor field
@mrdon mrdon merged commit 5200d6f into main Apr 9, 2026
@mrdon mrdon deleted the mrdon/16-fix-gh-errors-own-activity branch April 9, 2026 19:27
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.

Fix gh error handling and own-activity suppression

1 participant