Commit Graph

11 Commits

Author SHA1 Message Date
Kai Armstrong 39e9e21313 chore: re-add linting/formatting job to ci 2022-11-17 18:36:09 +00:00
Vitali Tatarintev 90c038e983 feat(issue): add issue-type filter to issue cmd 2022-11-07 20:58:55 +00:00
Andreas Gruhler 9989ec1207 feat: Show Full Path on Issue and MR List (#1056) 2022-10-06 19:54:26 +00:00
Oscar Tovar 40a5436789 chore: update module path 2022-09-19 20:23:45 +00:00
zemzale 612ff86427
feat: Add group flag to mr list command (#931)
* feat: Add group flag to mr list command

This adds a flag for listing groups mrs. This works only for groups in
authenticated repos. This is acceptable since mr list only works on
authenticated repos too.

Issue #909

* feat: Add group flag for issue listing

Issue #909
2022-01-10 13:08:39 +00:00
Rob Hoelz 2eba4de79a
Add support for terminal hyperlinks (#852)
* feat: Add ground work for supporting hyperlinks to iostreams

See GH #812

See https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
for technical details behind the hyperlink escape sequence

For now hyperlinks are enabled as long as long as standard output is a
TTY - we'll want to add some additional detection/flags down the road

* feat: use terminal hyperlinks when listing issues/MRs

See GH #812

* feat(hyperlinks): Add display_hyperlinks config option

* chore(hyperlinks): Clean up Hyperlink API a bit

* feat(hyperlinks): default hyperlinks to off

I think hyperlink display should default to off while the feature is new
so that users can play with it

* feat(hyperlinks): Implement FORCE_HYPERLINKS

Setting the FORCE_HYPERLINKS environment variable forces glab to render
hyperlinks when it can - otherwise, it falls back to display_hyperlinks
from the config, which tells glab whether or not to enable hyperlinks
based on whether or not we're outputting to a TTY.

* fix(hyperlink): accommodate hyperlink OSC in string stripping

* fix: Fix incorrect web_url in fixture data

* test(hyperlink): Add tests for hyperlinks in issues list

* test(hyperlink): Add tests for truncating text with hyperlink OSC

* fix(hyperlinks): accommodate hyperlinks in Truncate

* test(hyperlinks): Add tests for showing hyperlinks in mr list

* docs(hyperlink): Add docs for FORCE_HYPERLINKS and display_hyperlinks

* fix(hyperlinks): simplify truncate algorithm

…while also fixing tableprinter tests, which expect that the first
grapheme provided to Truncate is always preserved

* fix(hyperlinks): Deactivate hyperlinks in auto mode if we're writing to a pager
2021-10-27 09:41:35 +00:00
Clement Sam d52c01a482 refactor: move pkg/api package to /api 2021-01-29 08:43:18 +00:00
Clement Sam 8352f6e427 reasonably change iostream methods
Change iostreams methods names and references
2021-01-28 23:07:05 +00:00
Clement Sam e4acafd006 refactor: move iostreams to own separate package
- Move iostreams to own separate package
- Fix references to iostream package
- Add StartSpinner and StopSpinner methods
2021-01-28 22:38:32 +00:00
Clement Sam cea9a28d6e add more test cases 2021-01-04 18:58:30 +00:00
Clement Sam 4903840cc8 test(commands/issue/list): add tests 2021-01-04 18:14:13 +00:00