Mislav Marohnić
a55dd656f3
Merge remote-tracking branch 'origin' into cobra-update
2022-12-20 17:15:25 +01:00
vilmibm
f5d19b831e
error instead of prompt when no base repo + fixes
2022-12-15 11:44:37 -08:00
Mislav Marohnić
b12ea845ef
Migrate to the new Cobra command grouping feature
2022-11-09 16:42:13 +01:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh ( #6346 )
2022-10-17 15:15:39 +02:00
Mislav Marohnić
6a6fd7bace
Recognize .yaml in addition to .yml suffix as workflow file name
2022-09-26 10:54:57 +02:00
Isaac Shalom
f1be4dc51c
Fix looking up workflow name for workflow runs ( #6266 )
...
The API field `WorkflowRun.name` is not guaranteed to correspond to the workflow name anymore. This introduces additional API lookups that resolve Workflows by their ID and look up their name in a future-proof fashion.
It also adds two new JSON fields for export: `displayTitle` and `workflowName`.
Co-authored-by: Christina Guo <61271066+guo-chris@users.noreply.github.com>
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-09-21 20:41:19 +02:00
Mislav Marohnić
cfb7e66d2b
Merge pull request #6260 from cli/fix-branch-delete
...
Fix deleting remote branches with `#` in their name
2022-09-15 11:06:04 +02:00
Mislav Marohnić
984cc9f441
Fix tests
2022-09-14 17:05:43 +02:00
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
Mark Woods
e876b22963
Change markdown wrap limit match terminal width ( #6016 )
2022-09-01 07:36:25 +00:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages ( #6084 )
2022-08-18 09:04:13 +03:00
vilmibm
41385477c3
fix linting
2022-07-27 14:15:27 -05:00
vilmibm
d5334f4115
Revert "update linter checks"
...
This reverts commit 40ecb8c188 .
2022-07-27 13:30:41 -05:00
vilmibm
40ecb8c188
update linter checks
2022-07-26 16:06:52 -05:00
Mislav Marohnić
02881b4783
Correctly determine run started/elapsed timestamps ( #5945 )
...
This switches `run list` and `run view` commands to measure how long ago did the run happen by using `run_started_at`, which is the timestamp of the latest run in a series, instead of `created_at`, which is the timestamp of the first run. This change also fixes accurate duration for in-progress runs.
2022-07-21 17:30:46 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found ( #5479 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00:00
Christian Gregg
c5dbf20ed4
Alias list as ls for all commands ( #5214 )
...
I always get tripped up whenever trying to list my codespaces, adding
`ls` as an alias to `list` feels natural enough.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-02-17 13:53:42 +01:00
Mislav Marohnić
4a3ef50d2d
Standardize pager output across commands ( #5141 )
...
Add pager functionality to the following commands:
- gist list
- pr checks
- release list
- run list
- run view
- secret list
- workflow list
- workflow view
Additionally, normalize error handling when starting the pager has
failed: only print a non-fatal notice to stderr instead of aborting the
whole command.
2022-02-01 08:36:51 +01:00
Kevin Lee
0d143ca89c
Consistent punctuation in command usages ( #5139 )
...
* Fix spelling and grammatical errors in command docs
* Add periods for consistency across the long command descriptions
* Format imports
2022-01-31 10:56:12 +00:00
Mislav Marohnić
4fd208fd59
Fix legacy prompt stub that is tripping up the linter
2022-01-17 19:39:12 +01:00
Mislav Marohnić
d0c7c4800a
Merge pull request #5047 from hirasawayuki/workflow-enable-cmd
...
Fix disabled_inactivity workflow can be changed to enable
2022-01-17 15:01:20 +01:00
hirasawayuki
44b9ff5ac5
Add tests to enable a workflow in the disabled_inactivity state
2022-01-16 22:22:08 +09:00
hirasawayuki
97d017e802
Add disabled_inactivity state
2022-01-16 12:40:55 +09:00
Mislav Marohnić
e43cb2b880
Port more legacy stubs to the new ask stubber
2022-01-14 19:34:15 +01:00
Mislav Marohnić
a33b5a55c4
Have NewAskStubber perform auto-cleanup
2022-01-14 18:52:00 +01:00
Mislav Marohnić
30c5ef23ee
Merge remote-tracking branch 'origin' into ask-stubber
2022-01-14 17:41:08 +01:00
Mislav Marohnić
456d55ead9
Have a single Render function handle all Markdown rendering
2022-01-13 19:39:43 +01:00
Mislav Marohnić
c839d3ba1d
Check for unused ask stubs at the end of the test
2022-01-13 12:23:42 +01:00
Benjamin Chadwick
3ea69c8c9b
pr checks: count "cancelled" jobs as failing instead of neutral ( #4850 )
2021-12-16 12:01:53 +01:00
Sam Coe
03278453db
Escape workflow information when generating URLs
2021-11-18 12:17:59 -08:00
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
Alan Donovan
7215522123
use FlagError
2021-10-21 10:06:11 -04:00
Nate Smith
425bc64859
Merge pull request #4090 from bchadwic/pr-checks
...
Revised pending and skipped symbols for pr checks / run commands
2021-09-27 09:25:21 -07:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
bchadwic
1f2ab7fbe4
pr and run check symbols revision
2021-08-05 02:13:55 -07:00
Cristian Dominguez
2f94adabb2
Use T.TempDir for temporary dirs in tests ( #3580 )
2021-05-07 12:21:26 +02:00
vilmibm
8458c5f95d
use int64 explicitly in Actions support
2021-04-15 13:32:09 -05:00
vilmibm
bca828be2c
placeholder consistency
2021-04-14 11:17:12 -05:00
vilmibm
e10a3f164f
minor usage improvements
2021-04-13 22:43:02 -05:00
vilmibm
04844256dd
annotation fixes
2021-04-13 22:10:32 -05:00
vilmibm
cd8ec47163
unhide actions commands
2021-04-13 22:08:06 -05:00
vilmibm
eb66ee9dfe
handle array type for on: in workflow file
2021-04-12 12:05:05 -05:00
vilmibm
de0e53b18f
correct Examples
2021-04-09 14:33:43 -05:00
vilmibm
d89993720d
add specific unit tests for findInputs
2021-04-09 14:32:32 -05:00
vilmibm
6c92f2fa60
review feedback
2021-04-09 13:24:19 -05:00
vilmibm
5b7f8fd9eb
review feedback
2021-04-09 13:20:00 -05:00
vilmibm
48e162fa05
share workflow content getting code
2021-04-08 16:27:57 -05:00
vilmibm
1b5eb30575
review feedback
...
- Switch to -f/-F instead of -- (this lead to some `gh api` copypasta)
- Remove --json
- Don't parse workflow YAML if not collecting interactively
- Share GetWorkflowContent
- Fix a parsing issue
2021-04-08 16:27:57 -05:00
vilmibm
f80268d966
gh workflow run
2021-04-08 16:21:06 -05:00