Repository navigation
Add machete.github.retrieveByAuthor and machete.gitlab.retrieveByAuthor git config keys - #1746
Conversation
0085281 to
ddc3f53
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1746 +/- ##
===========================================
- Coverage 98.66% 98.66% -0.01%
===========================================
Files 45 45
Lines 5390 5458 +68
Branches 980 992 +12
===========================================
+ Hits 5318 5385 +67
Misses 43 43
- Partials 29 30 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
machete.github.fetchOnlyMyPullRequests and machete.gitlab.fetchOnlyMyMergeRequests git config keys
c0b4a66 to
78ce323
Compare
machete.github.fetchOnlyMyPullRequests and machete.gitlab.fetchOnlyMyMergeRequests git config keysmachete.github.retrieveOnlyMyPullRequests and machete.gitlab.retrieveOnlyMyMergeRequests git config keys
78ce323 to
d0f2146
Compare
d0f2146 to
95a8572
Compare
|
Thanks for implementing this @PawelLipski - it'll be super helpful for $dayjob use. Is there anything I can do to help this get closer to merging? |
For clarity, what's |
Hehe, sorry, old-internet habits. I work at Netflix. The monorepo I do most of my work in has 932 PRs open right now1, and To be more specific: I'm using All that's to say: a Footnotes
|
95a8572 to
2395dfb
Compare
machete.github.retrieveOnlyMyPullRequests and machete.gitlab.retrieveOnlyMyMergeRequests git config keysmachete.github.retrieveByAuthor and machete.gitlab.retrieveByAuthor git config keys
cabe821 to
3663659
Compare
|
Okay! I'll probably get that shipped then - I'll use |
de32e37 to
c0940ea
Compare
omgosh thanks so much! That makes sense to me :) |
4d2b5e6 to
80b723d
Compare
When set, commands that list open PRs/MRs download those authored by a given user (via GitHub GraphQL search / GitLab author_username filter) instead of every open PR/MR in the repository. By default (and with `--mine`) that author is the current user; `--by=<user>` selects a different author, and chain reconstruction walks that same author's PRs. 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 mixed-author chains. The `--all` flag still downloads every open PR/MR regardless of the key.
…by number. Checkout of specific PR/MR numbers now downloads that first PR's author's open PRs and reconstructs the stack from them, rather than from the current user's.
07c230c to
54a43a9
Compare
|
@sjbarag merged, I'll get that released soon as v3.46.0 - pls test at your convenience |
|
Will do! Thanks so much! 🙂
…On Fri, Sep 18, 2026 at 6:53 AM Paweł Lipski ***@***.***> wrote:
*PawelLipski* left a comment (VirtusLab/git-machete#1746)
<#1746 (comment)>
@sjbarag <https://github.com/sjbarag> merged, I'll get that released soon
as v3.46.0 - pls test at your convenience
—
Reply to this email directly, view it on GitHub
<#1746?email_source=notifications&email_token=AAFCRL2PDHYEHWCVMJBR2C35PU46VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZTGA4TSMJQHAZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5730991083>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFCRLYDRCEXIN27KSWHN2T5PU46VAVCNFSNUABFKJSXA33TNF2G64TZHMYTEMRXGQZTCMBRHNEXG43VMU5TIOBTGE2DENJTGYYKC5QC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Heya @PawelLipski! Just upgrade to 3.46.0 and tried out git machete github anno-prs --by=sbarag
When I set
|
|
Hey, The other bit: Try: You should see I'll also ship a follow-up (#1791) so invalid boolean values fail loudly instead of being treated as false. |



Based on PR #1784
Chain of upstream PRs as of 2026-09-17
PR Rename
get_open_pull_requeststoget_all_open_pull_requests#1784:develop←refactor/rename-get-all-open-pull-requestsmachete.github.retrieveByAuthorandmachete.gitlab.retrieveByAuthorgit config keys #1746 (THIS ONE):refactor/rename-get-all-open-pull-requests←feature/fetch-only-my-prsSummary
machete.github.retrieveByAuthor/machete.gitlab.retrieveByAuthor: when set, PR/MR-listing commands download open PRs/MRs by author (GitHub GraphQL search / GitLabauthor_usernamefilter) instead of every open PR/MR in the repository.--mine) that author is the current user;--by=<user>selects a different author, and chain reconstruction walks that author's PRs rather than the current user's.--allstill downloads every open PR/MR regardless of the key.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 mixed-author chains.
Test plan
checkout-prs/checkout-mrswith the key:--all,--by,--mine, and explicit PR/MR numberupdate-pr-descriptions/update-mr-descriptionswith the key:--related,--by,--all,--mineanno-prs/anno-mrswith the key (and missing current user on GitHub)anno-prsfetched only PawelLipski;checkout-prs --by=be-studentfetched only be-student (no second PawelLipski fetch) and checked out Add advice setting for pull request creation from forks #1774/Reuse the resolved GitHub repository path after a redirect #1776;--minefetched only PawelLipski