Skip to content

refactor: condense lockdown comments in GetPullRequestCommits - #3115

Merged
SamMorrowDrums merged 1 commit into
mainfrom
sammorrowdrums-comment-cleanup
Aug 19, 2026
Merged

refactor: condense lockdown comments in GetPullRequestCommits#3115
SamMorrowDrums merged 1 commit into
mainfrom
sammorrowdrums-comment-cleanup

Conversation

@SamMorrowDrums

Copy link
Copy Markdown
Collaborator

Focused comment cleanup, no behavior changes.

  • pkg/github/pullrequests.go: condensed the GetPullRequestCommits doc comment to two concise sentences, keeping only the non-obvious invariant (a single PR-author check suffices since all commits share the same untrusted head branch).
  • pkg/github/pullrequests_test.go: removed a comment on a test case that only restated the test name.

script/lint and script/test pass.

Trim the GetPullRequestCommits doc comment to a single terse sentence
and remove a test comment that only restated the test name.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 19, 2026 13:16
@SamMorrowDrums
SamMorrowDrums requested a review from a team as a code owner August 19, 2026 13:16

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.

Pull request overview

Condenses redundant comments without changing behavior.

Changes:

  • Simplifies GetPullRequestCommits documentation.
  • Removes a test comment duplicating the test name.
Show a summary per file
File Description
pkg/github/pullrequests.go Condenses the lockdown-mode invariant documentation.
pkg/github/pullrequests_test.go Removes a redundant test-case comment.

Review details

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@SamMorrowDrums
SamMorrowDrums merged commit 08edfa8 into main Aug 19, 2026
20 checks passed
@SamMorrowDrums
SamMorrowDrums deleted the sammorrowdrums-comment-cleanup branch August 19, 2026 13:28
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.

2 participants