Skip to content

Hide obsolete Job summaries#902

Open
SimonMarquis wants to merge 3 commits intogradle:mainfrom
SimonMarquis:hide-obsolete-job-summaries
Open

Hide obsolete Job summaries#902
SimonMarquis wants to merge 3 commits intogradle:mainfrom
SimonMarquis:hide-obsolete-job-summaries

Conversation

@SimonMarquis
Copy link
Copy Markdown
Contributor

@SimonMarquis SimonMarquis commented Mar 22, 2026

  • Injects a <!-- gradle-job-summary: ${jobCorrelator} --> marker on each job summary
  • Lists 100 last comments: unfortunately there is no API to specifically filter for comments, and checking the last 100 comments (the limit) is usually enough and does not require iterating over pages
  • Mutate comments having this expected marker

I tried to add some tests, but I'm not familiar enough to setup a complete test suite with proper mocking of GitHub/Octokit with jest.

I could potentially extract the prComment creation to check for the marker presence, let me know.

Note: it seems like there is currently an issue on mutating comments as OUTDATED through graphql. Although it does not work as expected (flagging as OUTDATED) the comments are still minimized, which is what we want.

Implements #176

@SimonMarquis SimonMarquis force-pushed the hide-obsolete-job-summaries branch from bd737e2 to d89d244 Compare March 22, 2026 15:19
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