Commit graph

1060 commits

Author SHA1 Message Date
nate smith
02e9fa086d start on incorrect function error handling 2021-04-28 13:59:54 -05:00
Nate Smith
d5954e2e94
Merge pull request #3499 from cli/secret-prompt
tweak secret set to allow prompting
2021-04-28 13:28:33 -05:00
Nate Smith
cc7c2f2c9d
Merge pull request #3517 from cli/watch-404
handle 404 for annotations
2021-04-28 13:27:04 -05:00
Sasha Gerrand
f70bdcf982
Corrects a typo in pr create docs 2021-04-27 11:57:42 +01:00
vilmibm
00da7f9fc1 handle 404 for annotations 2021-04-26 16:55:08 -05:00
Nate Smith
ac0fe6bf71
Merge pull request #3490 from heaths/issue3487
Optionally read stdin for `gh alias set`
2021-04-26 16:40:07 -05:00
Heath Stewart
aaa5a9e949 Use - to read from stdin instead
Resolves PR feedback.
2021-04-23 17:23:27 -07:00
vilmibm
3e36596269 ability to paste secrets in a prompt 2021-04-23 13:07:20 -05:00
Nate Smith
5a2ec54685
Merge pull request #3494 from cli/pr-list-example
add some more examples for pr list
2021-04-23 11:51:07 -05:00
vilmibm
47ed41bfcd add some more examples for release create 2021-04-22 15:26:26 -05:00
vilmibm
c69f210807 add some more examples for pr list 2021-04-22 14:45:19 -05:00
Heath Stewart
bd2738379b Optionally read stdin for gh alias set
Resolves #3487
2021-04-21 22:16:41 -07:00
Mislav Marohnić
a3a7deadb8
Merge pull request #3400 from embano1/patch-1
Add note on supported value types in raw-fields
2021-04-20 18:49:41 +02:00
Nate Smith
d09896468d
Merge pull request #3351 from cristiand391/fix-pr-reopen
Fix detecting PR status when passing branch as arg
2021-04-20 11:41:16 -05:00
Nate Smith
882c08104d
Merge pull request #3472 from cli/issue-create-web-fix
Fix `issue create --web`
2021-04-20 11:39:48 -05:00
Nate Smith
754dc109d0
Merge pull request #3468 from cli/actions-remote
include magic repo resolution magic for workflow and run
2021-04-20 10:30:11 -05:00
Sam
aea6163a83
Merge pull request #3445 from adamslc/log_fix
Fix `run view --log` when steps have slashes
2021-04-20 08:13:26 -07:00
Sam Coe
75227f44d1
linter 2021-04-20 08:05:19 -07:00
Mislav Marohnić
a2ff97d73f Fix issue create --web 2021-04-20 13:50:44 +02:00
Mislav Marohnić
ae99ad4fbe
Merge pull request #3461 from cli/jobs-url-enterprise
Fix requesting REST sub-resources on GHE
2021-04-20 11:31:23 +02:00
vilmibm
9ebcca7082 include magic repo resolution magic for workflow and run 2021-04-19 16:23:49 -05:00
Sam Coe
c77c7ec7c9
Match logs based on job name and step number 2021-04-19 12:21:34 -07:00
Luke Adams
58d3aa878d Extract filename creation logic to seperate function 2021-04-19 10:59:36 -06:00
Mislav Marohnić
ac348b0dec Fix requesting REST sub-resources on GHE
GitHub REST resources typically return full URLs to fetch related
resources at. We used to parse those URLs to find just the path portion
and pass that in to the `REST()` function, which only accepted paths. By
doing so, we are essential de-constructing a URL just to re-assemble it
again. While re-assembling it for Enterprise, though, we would
accidentally inject an extra `api/v3/` prefix where one was not needed.

The solution is just to use raw URLs as reported by the REST API with
no modifications. This extends the `REST()` function to accept full URLs
in addition to just paths to resources.
2021-04-19 12:41:09 +02:00
Luke Adams
0822e6b4ed Fix run view --log when steps have slashes 2021-04-16 23:37:24 -06:00
vilmibm
8458c5f95d use int64 explicitly in Actions support 2021-04-15 13:32:09 -05:00
Sam
09b09810dd
Merge pull request #3403 from cli/update-glamour
Update glamour to version which includes emoji support
2021-04-15 10:33:49 -07:00
vilmibm
a2f4f725af create cache dir 2021-04-15 11:15:03 -05:00
Mislav Marohnić
516ea8691e Fix whitespace formatting of issue/pr view help text 2021-04-14 20:04:47 +02:00
Mislav Marohnić
654bd29ca0 Disallow unsupported values for --json flag 2021-04-14 19:58:58 +02:00
Mislav Marohnić
56cdbb643f Fix pr view tests broken by createdAtsubmittedAt switch 2021-04-14 19:41:55 +02:00
Mislav Marohnić
625505dcfb Fix assigning null Exporter 2021-04-14 19:11:08 +02:00
Mislav Marohnić
7ec5b0f8cf Merge remote-tracking branch 'origin' into json-format 2021-04-14 18:52:34 +02:00
Mislav Marohnić
e327b42f79 Add gh help formatting topic & link to it from commands with JSON output 2021-04-14 18:27:15 +02:00
Nate Smith
f4d96ee789
Merge pull request #3418 from cli/startup-failure
actions wrap up
2021-04-14 11:22:58 -05:00
vilmibm
bca828be2c placeholder consistency 2021-04-14 11:17:12 -05:00
Mislav Marohnić
3ad41e3e65 Change JSON Exporter to an interface 2021-04-14 18:15:52 +02:00
Nate Smith
a12cbe7c01
Merge pull request #3412 from cristiand391/current-branch-help-text
Add note about current branch detection
2021-04-13 23:00:24 -05:00
vilmibm
e10a3f164f minor usage improvements 2021-04-13 22:43:02 -05:00
vilmibm
a85ef9273f bump run list limit 2021-04-13 22:42:38 -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
4e281153f6 incorporate wording feedback 2021-04-13 22:06:06 -05:00
vilmibm
efe7aa1f78 fix small bug with startup_failure conclusion 2021-04-13 22:03:59 -05:00
Mislav Marohnić
a516ee6833 Add issue status --json support 2021-04-13 21:26:26 +02:00
Mislav Marohnić
3f22e3b353 Add pr status --json support 2021-04-13 21:12:30 +02:00
Mislav Marohnić
e158fac1a9 Restructure PullRequestStatus function 2021-04-13 20:54:09 +02:00
Mislav Marohnić
298ef8add5 Merge remote-tracking branch 'origin' into json-format 2021-04-13 20:31:11 +02:00
Mislav Marohnić
abe452bb19 Add --json export flag for issues and pull requests
The `--json` flag accepts a list of GraphQL fields to query for and
output in JSON format. To get the list of available flags, run the
command with a blank value for `--json`. Additional `--jq` and
`--template` flags are available just like in `gh api`.
2021-04-13 20:29:31 +02:00
Mislav Marohnić
19ea49b5a9 Move issue list queries to under the issue/list package 2021-04-13 19:25:19 +02:00