Skip to content

Add machete.github.retrieveOnlyMyPullRequests and machete.gitlab.retrieveOnlyMyMergeRequests git config keys - #1746

Open
PawelLipski wants to merge 1 commit into
developfrom
feature/fetch-only-my-prs
Open

Add machete.github.retrieveOnlyMyPullRequests and machete.gitlab.retrieveOnlyMyMergeRequests git config keys#1746
PawelLipski wants to merge 1 commit into
developfrom
feature/fetch-only-my-prs

Conversation

@PawelLipski

@PawelLipski PawelLipski commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

When set, commands that list open PRs/MRs download only those authored by the current user
(via GitHub GraphQL search / GitLab author_username filter) instead of every open PR/MR in the repository.
This makes annotating and traversing one's own PRs feasible in repositories with hundreds or thousands of open PRs,
at the cost of not discovering PRs opened by other users when traversing cross-author chains.
The --all flag still downloads every open PR/MR regardless of the key,
and --by=<user> downloads the given user's PRs/MRs directly (so it keeps working for any author even when the key is set).

@PawelLipski PawelLipski self-assigned this Jul 7, 2026
@PawelLipski PawelLipski added feature New feature or request performance Something works too slow github Relates to integration with GitHub gitlab Relates to integration with GitLab labels Jul 7, 2026
@PawelLipski
PawelLipski force-pushed the feature/fetch-only-my-prs branch 2 times, most recently from 0085281 to ddc3f53 Compare July 7, 2026 19:07
@codecov-commenter

codecov-commenter commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.76%. Comparing base (1c007c1) to head (d0f2146).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1746      +/-   ##
===========================================
- Coverage    98.77%   98.76%   -0.01%     
===========================================
  Files           45       45              
  Lines         5372     5426      +54     
  Branches       981      988       +7     
===========================================
+ Hits          5306     5359      +53     
  Misses          41       41              
- Partials        25       26       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PawelLipski PawelLipski changed the title Add machete.{github.fetchOnlyMyPullRequests,gitlab.fetchOnlyMyMergeRequests} git config keys Add machete.github.fetchOnlyMyPullRequests and machete.gitlab.fetchOnlyMyMergeRequests git config keys Jul 7, 2026
@PawelLipski
PawelLipski force-pushed the feature/fetch-only-my-prs branch 4 times, most recently from c0b4a66 to 78ce323 Compare July 8, 2026 14:05
@PawelLipski PawelLipski changed the title Add machete.github.fetchOnlyMyPullRequests and machete.gitlab.fetchOnlyMyMergeRequests git config keys Add machete.github.retrieveOnlyMyPullRequests and machete.gitlab.retrieveOnlyMyMergeRequests git config keys Jul 8, 2026
…ergeRequests} git config keys

When set, commands that list open PRs/MRs download only those authored by the current user
(via GitHub GraphQL search / GitLab author_username filter) instead of every open PR/MR in the repository.
This makes annotating and traversing one's own PRs feasible in repositories with hundreds or thousands of open PRs,
at the cost of not discovering PRs opened by other users when traversing cross-author chains.
The `--all` flag still downloads every open PR/MR regardless of the key,
and `--by=<user>` downloads the given user's PRs/MRs directly (so it keeps working for any author even when the key is set).
@PawelLipski
PawelLipski force-pushed the feature/fetch-only-my-prs branch from 78ce323 to d0f2146 Compare July 8, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request github Relates to integration with GitHub gitlab Relates to integration with GitLab performance Something works too slow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize github anno-prs and github checkout-prs for the case of 500+ PRs in a repo

2 participants