-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom magit-section: assigned pull requests #79
Comments
You should definitely submit this as a pull request 👍 As far as making it generic, I think it would be most beneficial/useful (without going overboard) to have |
I plan to allow listing different subsets of topics eventually. So far I was planning on only supporting displaying those sets in separate
So no, I don't think I would want to merge something like the above implementation at this time. |
There's something lost here though, no? The ability to have multiple groupings of issues/pullreqs is reasonable:
You could definitely go overboard on this and create for yourself a bad experience, but I wouldn't say the idea is overall a bad one. |
I'm currently finding having all PRs + PRs assigned to me as two separate sections very useful for my workflow. @tarsius I don't think what you describe would cover this particular use-case very well. Thankfully, emacs is customizable, so I'll stick my solution in my I definitely look forward to be able filter pull-requests in the tabulated list view too. I've been wanting to filter on PR age, CI status, review status, and labels on some projects. I'm not sure what the best way is, but I'd be interested in contributing to making that happen. |
This is really useful, thanks @alexhenning. |
I have a proposed implementation for this (vermiculus@fd30bbe), but I foolishly based it on #95 and I don't have the mental wherewithal at this time of night to figure out how to rebase it back onto master. If someone knows how to do this, I can open a PR for more concrete discussion. I think the patch I have is valuable in its own right (it reduces duplication) and it makes it trivial to write your own section-inserters. Here's my log right now; I haven't a clue how to rebase |
Shouldn't take too long. I am just trying to get something else done over the next 2-3 days. |
100% understand 😄 Take your time. I figured out my problem above – literally I wanted to "rebase [...] such that [commits] aren't included in history" – that's legit just an interactive rebase to drop the offending commits. Truly speaks to the empowerment of Magit that I would never have attempted this with A pull request with the specific changes is incoming; review at your leisure. In that PR, I will discuss how both the option proposed here (multiple sections with different configurations) and my understanding of your preferred option (one section whose selection of topics is configurable via defcustom) are both made trivial by the patch. |
Ping to those subscribed to this issue: the above has been merged. Those changes should make it more straightforward to implement something like this. There's room enough for both approaches – probably with @tarsius's thought (below) as the default since it is more discoverable than hunting down section-inserters and throwing them into the status-sections-hook.
|
I've added new section inserters ( |
@tarsius I got this when I try to use
I'm on Ubuntu 16, Emacs 26.3 |
I was unable to reproduce that with the current version of @raxod502 Does straight have a "re-compile everything" command? (Borg has |
@tarsius Yes, |
You're right. After rebuild all packages, it works. Thanks! |
Not an issue, but I thought it might be helpful for other people. This is an example how I created a custom
magit-section
for pull-requests assigned to me, so I can quickly focus in on the pull-requests that have been assigned to me:Actual snippet:
If there's interest, I can look at cleaning this up to contribute in a form that's a bit more customizable. I can see it being useful as either as assigned PRs with a customizable user or as a more generic way to add pull-request sections based on sql queries.
P.S. @tarsius thanks for forge, it's fantastic!
The text was updated successfully, but these errors were encountered: