Add machete.github.retrieveByAuthor and machete.gitlab.retrieveByAuthor git config keys - #1746
Add machete.github.retrieveByAuthor and machete.gitlab.retrieveByAuthor git config keys#1746PawelLipski wants to merge 3 commits into
machete.github.retrieveByAuthor and machete.gitlab.retrieveByAuthor git config keys#1746Conversation
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.68% 98.67% -0.01%
===========================================
Files 45 45
Lines 5384 5452 +68
Branches 979 991 +12
===========================================
+ Hits 5313 5380 +67
Misses 43 43
- Partials 28 29 +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
2395dfb to
cabe821
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.
cabe821 to
3663659
Compare
|
Okay! I'll probably get that shipped then - I'll use |
…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.
de32e37 to
c0940ea
Compare
Summary
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