Skip to content

Exclude default branch from PR detection - #13

Merged
melonamin merged 2 commits into
melonamin:mainfrom
mishamsk:fix/skip-default-branch-pr
Aug 13, 2026
Merged

melonamin merged 2 commits into
melonamin:mainfrom
mishamsk:fix/skip-default-branch-pr

Conversation

@mishamsk

Copy link
Copy Markdown
Contributor

Summary

  • skip GitHub PR lookups for the repository default branch
  • clear any preserved PR state when a branch becomes the default
  • add coverage for lookup filtering and stale-state cleanup

Testing

  • go test ./...
  • go vet ./...

@melonamin melonamin left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the contribution. Please preserve the full default-branch suffix after refs/remotes/origin/: release/stable is currently reduced to stable, so the default branch is still queried for PR info. Please add a regression test for a slash-containing default branch.

@mishamsk
mishamsk force-pushed the fix/skip-default-branch-pr branch from 2ab8882 to aa66d99 Compare August 13, 2026 02:35
@mishamsk
mishamsk requested a review from melonamin August 13, 2026 02:46

@melonamin melonamin left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the fix. The requested change is resolved and all checks pass.

@melonamin
melonamin merged commit 031d93f into melonamin:main Aug 13, 2026
5 checks passed
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