Commit graph

1131 commits

Author SHA1 Message Date
Bruno Alla
051520afe1 Add a long command description for secrets remove 2021-06-04 16:44:44 +01:00
Bruno Alla
4d46447eb3 Fix description for gh secret set --env option 2021-06-04 15:29:01 +01:00
Mislav Marohnić
ffebd23ba7
Merge pull request #3761 from cli/command-extensions
Experimental command extensions support
2021-06-03 19:13:38 +02:00
Mislav Marohnić
4bdddd72d3 Allow installing local extensions via symlinks
This also quits searching for local extensions in PATH.
2021-06-03 19:06:28 +02:00
Mislav Marohnić
c2c691f444 Add test for our survey editor extension 2021-06-03 18:05:43 +02:00
chemotaxis
d974dbd338 Return default text if skipping the text editor when prompted
If we are allowed to skip the editor _and_ we want to append the default
text to the editor if we'd opened it, we just return the default text.

Co-Authored-By: Mislav Marohnić <mislav@github.com>
2021-06-03 14:50:13 +02:00
Bruno Alla
4b79edf603 Add support for removing environment secrets 2021-06-03 08:51:39 +01:00
Nate Smith
a1cedfcd5c
Merge pull request #3741 from jack1142/patch-1
Include issue number alongside the title in `gh issue/pr view`
2021-06-02 13:53:48 -05:00
Nate Smith
4d90005817
Merge pull request #3772 from astroparam/escape-metacharacters
escape metacharacters in job name
2021-06-02 13:50:58 -05:00
Nate Smith
71547f4560
Merge pull request #3769 from browniebroke/feat/set-env-secrets
Add support for setting environments secrets
2021-06-02 13:35:08 -05:00
vilmibm
0931531e2f collapse conditional 2021-06-02 13:27:19 -05:00
Param Patidar
20f915d5ba escape metacharacters in job name 2021-06-02 17:20:31 +00:00
Bruno Alla
32856c987d Add ability to set environments secrets 2021-06-02 15:56:33 +01:00
Sam Coe
389fdb7f99
Add XDG env variables to environment help topic 2021-06-02 09:56:22 -04:00
jack1142
6a74eb1262
Merge branch 'trunk' into patch-1 2021-06-02 11:10:25 +02:00
Mislav Marohnić
49609350af
Merge pull request #3737 from cli/requested-reviewers-slug
Fix how teams are displayed in requested reviewers
2021-06-02 08:48:11 +02:00
jack1142
184149b844
Add missing new line 2021-06-01 23:53:58 +02:00
Mislav Marohnić
fce93d6080 Experimental command extensions support
Extensions are looked up as `~/.config/gh/extensions/gh-*`.
Additionally, any executables found in PATH named `gh-*` are available
as `gh <command>`.
2021-06-01 17:15:20 +02:00
Tyler Wright
e5bdaaab2c Add ability to list environment secrets
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-05-31 21:15:10 +02:00
Mislav Marohnić
260f720c07 💅 refactor and add tests for Secrets pagination 2021-05-31 20:40:53 +02:00
Gowtham Munukutla
cb60538709 paginate to get all secrets at once 2021-05-31 20:39:32 +02:00
jack1142
42333bb2d1
Update issue non-tty view formatting and its tests 2021-05-29 04:44:48 +02:00
jack1142
979ec9298d
Update issue tty view formatting and its tests 2021-05-29 04:44:48 +02:00
jack1142
3943a8bb1f
Update PR tty view formatting and its tests 2021-05-29 04:44:34 +02:00
Mislav Marohnić
1a980e768c Fix how teams are displayed in requested reviewers
1. The `--json` export now only renders the `login` field for User types
   and `name` and `slug` fields for Team types.
2. The `pr view` command now renders team reviewers in the format of
   `ORG/SLUG` instead of the team name. This is so that the same value
    can be used in the `pr create -r` flag.
2021-05-28 14:32:31 +02:00
Gowtham Munukutla
e160dd3eae
fix listing of PRs when merged ones are searched (#3730)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-05-28 10:11:12 +00:00
Mislav Marohnić
053d43f705 Fix pr checkout setting up git push configuration 2021-05-25 15:43:18 +02:00
Mislav Marohnić
b9a4a425bf Fix pr checkout for PRs coming from deleted forks 2021-05-24 16:52:53 +02:00
Nate Smith
c49c7f4de2
Merge pull request #3575 from g14a/feature/action-headers
add column headers and age column in listing runs
2021-05-21 15:41:16 -05:00
Mislav Marohnić
0208620a6f Remove unnecessary commits stubs from fixtures 2021-05-21 17:37:21 +02:00
Mislav Marohnić
6bec7a956a Fix pr merge on GHE < 3.0
This avoids loading authorship information for git commits, since it
relies on a GraphQL API that wasn't available before GHE v3.0. The
authorship information wasn't necessary for the merge operation anyway;
just loading the last commit OID was.
2021-05-21 17:35:41 +02:00
Gowtham Munukutla
9c614247a6 lint fix 2021-05-21 09:36:23 +05:30
Gowtham Munukutla
605f785c70 use fuzzy abbr to display age 2021-05-21 09:33:55 +05:30
Gowtham Munukutla
bc4be19319 lint repair 2021-05-20 12:28:26 +05:30
Gowtham Munukutla
31854f0b25 add extra age column and repair tests 2021-05-20 12:24:47 +05:30
Gowtham Munukutla
6b0a07f22e Merge branch 'trunk' of https://github.com/cli/cli into feature/action-headers 2021-05-20 10:59:14 +05:30
Mislav Marohnić
79896ed513 Fix pr checkout for cross-repository pull requests 2021-05-19 13:18:04 +02:00
Mislav Marohnić
c667a0bc49 Fix fetching draft releases from GitHub Actions
When using GITHUB_TOKEN in Actions, the permissions on a repository are
null and therefore we can't check whether the viewer has push access or
not. The solution is to unconditionally check for draft releases instead
of trying to be smart about it. Draft releases are going to be on top,
so we don't have to paginate through all releases in a repository.
2021-05-18 19:44:29 +02:00
Mislav Marohnić
4425365004 Add release view --json support 2021-05-18 19:40:28 +02:00
Mislav Marohnić
42155c7d2d Export more IDs in issue/pr JSON payload 2021-05-18 18:19:28 +02:00
Mislav Marohnić
e758f30073 Fix preloading of pr reviews, checks, and issue/pr comments 2021-05-18 17:13:27 +02:00
Mislav Marohnić
51f7cbdfde 💅 cleanup and tests for PR finder 2021-05-18 09:59:05 +02:00
Mislav Marohnić
bc3bb97c43 Merge remote-tracking branch 'origin' into pr-lookup-refactor 2021-05-17 17:41:38 +02:00
Mislav Marohnić
42d2da812c Preserve list fomatting in web docs for gh actions 2021-05-17 17:01:33 +02:00
Mislav Marohnić
eb35a3457c Make sure docs URLs are linked in web docs 2021-05-17 17:00:25 +02:00
Mislav Marohnić
4b0b422eb5
Add --json export functionality to repo commands (#3627) 2021-05-17 16:53:20 +02:00
Mislav Marohnić
3f3d4e38d4 Avoid crash when --json doesn't request nameWithOwner 2021-05-17 16:43:39 +02:00
Mislav Marohnić
a2307e357d Add repo list --json support 2021-05-17 16:32:01 +02:00
Mislav Marohnić
301a35eedc
Merge pull request #3621 from cli/export-data
Push data serialization concern into Exporter
2021-05-17 13:43:00 +02:00
Mislav Marohnić
f2456f4820
Merge pull request #3628 from cli/json-flag-completion
Add shell completion for valid `--json` flag values
2021-05-17 12:47:54 +02:00