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

15 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
Chris Cummer
1a898b05e3 Remove complexity from a lot of string display statements 2018-06-21 19:32:32 -07:00
Chris Cummer
66b69471d0 Properly scope Config to the wtf package and remove it as a dependency from everywhere else 2018-06-16 14:59:22 -07:00
Chris Cummer
218b6937b1 Implement ASCII-only widget titles
Widget titles can now be specified in the config file via a 'title' key.
Example:

  wtf:
    mods:
      todo:
        title: Tada

which can include emoji. No need to force everyone to look at my emoji,
now they can define their own.
2018-06-03 20:54:07 -07:00
Hossein Mehrabi
6443df092f use widget.View.SetText to print 2018-06-03 10:53:26 +04:30
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
6d230a3d70 Apparently I don't know how to spell 'sigil' 2018-05-24 22:05:37 -07:00
Chris Cummer
5f7c3260c1 Now possible to define the characters for use in paging indicators 2018-05-24 09:03:00 -07:00
Chris Cummer
c7ff101e08 Apparently I'm easily confused by comparison operators 2018-05-14 21:04:37 -07:00
Chris Cummer
6ccdbabec9 WIP Very rudimentary modal showing up 2018-05-03 08:56:15 -07:00
Chris Cummer
67e02bf4f5 Return early, return gracefully 2018-04-20 11:02:13 -07:00
Chris Cummer
84290ffe76 Multi-github now with tick marks 2018-04-19 16:12:30 -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