1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

10 Commits

Author SHA1 Message Date
Bryan Austin
3ee6304e63 Add optional PR status display in Github module
While spamming refresh on a pull request today to see if required
builds finished yet, it occurred to me that it'd be awesome to have
WTF tell me when a PR was ready to be merged. So, here it is! An
icon will now display next to PRs in the "My Pull Requests" section
detailing whether GitHub thinks they can be merged.

This is behind a new, opt-in config flag called "enableStatus",
due to the fact that in order to function, this feature has to hit
the GitHub API individually for each PR in order to get an updated
status check - there's a comment in the code with a link that
explains why (otherwise, `pr.GetMergeableState()` returns an empty
string). For a large number of PRs, this can slow down refreshes a
bit and _might_ even wind up rate limiting you (while testing I had
some instances of GH refusing to return me any repository info,
though it didn't actually give me an error, usually after I had
been spamming it with requests for 30 PRs in a row for a bit). So,
for that reason, use at your own risk (but it's probably fine).

I am not an emoji expert, so suggestions on the display are welcome
if you can think of anything awesome. A lot of the ones I tried
seemed to render funny and mess up spacing.
2018-07-12 18:39:55 -07:00
Amr Tamimi
337eb607fc fixes 2018-06-03 18:28:19 +02:00
Amr Tamimi
df97d6c2d3 initial implementation to support github enterprise 2018-06-02 14:56:22 +02:00
Chris Cummer
86d43e9af6 Close #75. Github no longer crashes on network failure 2018-05-30 21:59:35 -07:00
Chris Cummer
04dd3c2e55 Use the native context package 2018-05-28 21:47:26 -07:00
Chris Cummer
3f42dc66b1 Correct path for the context package in GitHub module 2018-05-28 10:34:42 -07:00
Chris Cummer
374173ebea [WTF-59] Closes #59. Github widget now displays some repo stats 2018-05-26 19:24:04 -07:00
Chris Cummer
53e5e5fbbd [WTF-59] Somewhat better seperation of concerns in the Github code 2018-05-26 14:31:09 -07:00
Chris Cummer
66f11e8b8b Support for multiple Github repos 2018-04-19 16:10:24 -07:00
Chris Cummer
5e186323e0 A lot of code cleanup for Clocks and Git 2018-04-18 16:57:36 -07:00