4 ms·
I use it to list all my PRs, with icons for their approval/CI status alongside a list of PRs that are awaiting my review. I like that the API is just outputtin
by volfied 7y ago
I use it to list all my PRs, with icons for their approval/CI status alongside a list of PRs that are awaiting my review.
I like that the API is just outputting lines, but I wish there was more documentation.
- wingerlang 7y agoI do the same thing, plus a few shortcuts I use a lot (open specific directories, clean directory etc).
- mkagenius 7y agoShortcuts to see or to run on clicking on it (which seems too much effort) ? And how do you guys have so much space at the top? I only print my local IP address and its color ( red/blue) depending on whether my mitmproxy is running or not and I don't have whole lot of space left on my MBP 15".
- wingerlang 7y agoNot sure what you mean with the first question. All information is displayed in the drop down menu. I’ve thought about adding a number of actionable items as an indicator but.. haven’t needed it imo
- mkagenius 7y ago> drop down menu I see. I do not use it like that, hence i was confused. I just need it to see a particular text, like some status.
- gimboland 7y agoHot tip for more space in your menu bar: Bartender — https://www.macbartender.com/ https://www.macbartender.com/
- smnscu 7y agoAnother option is Vanilla: https://matthewpalmer.net/vanilla/ https://matthewpalmer.net/vanilla/
- cs02rm0 7y agoAny chance you could share the script and a screenshot?
- volfied 7y agoSorry, it is very specifically written for the many repos I have and I didn't put in the effort to make it a general thing. It's a whole bunch of v3 api calls in Node.js, though. api/v3/issues?filter=created - to get all issues that I created filter(p => p.pull_request) - to get all the PRs out of those fetch on all the p.pull_request.url s out of those to get details use p.mergeable_state, p.title, p.html_url to populate dropdown items And for PRs waiting my review, i used the search api: api/v3/search/issues?q=is:open+is:pr+review-requested:<username>+archived:false then map them to dropdown items which show repo name, author, and title of PR reviewDetails.forEach(r => { result.push({ text: `:exclamation: ${r.base.repo.full_name} - ${r.user.login}: ${r.title}`, href: r.html_url }) })