Commit graph

6549 commits

Author SHA1 Message Date
Martijn Pieters
0da0de4022
Include auto-merge information in gh pr view (#7385) 2023-05-10 08:39:52 +12:00
Martijn Pieters
83aaa76141
Include auto-merge information in gh pr status (#7386)
PRs that have auto-merge enabled are marked with a green "✓ Auto-merge enabled" label.
2023-05-10 08:32:05 +12:00
Mislav Marohnić
e1215e5867
Merge pull request #7324 from cli/deployment
Add ability to trigger deployments without having to push a git tag
2023-05-09 20:29:04 +02:00
Biswapriyo Nath
591fcafd9c
Make: Fix target name for Windows platform (#7370)
This fixes the taget name by adding .exe extension for Windows platform.
Otherwise, the following error is shown with `make bin/gh.exe' command.

    make: *** No rule to make target 'script/build', needed by 'bin/gh.exe'.  Stop.
2023-05-09 20:23:54 +02:00
Mislav Marohnić
8b987e2deb
New deployment workflow
Add ability to trigger deployments without having to push a git tag
2023-05-09 20:23:54 +02:00
Josh Kraft
b01c27aba2
Add progress labels for gh release download (#7380) 2023-05-07 21:28:37 +00:00
Martijn Pieters
bf3ffba8ef
Add PR auto-merge status info to PR queries (#7384) 2023-05-04 09:36:21 +12:00
vwkd
d349ba185a
fix empty default description for local repository (#7383) 2023-05-04 09:21:12 +12:00
Kevin Lee
03f1ba75ac
Add alias import command (#7118) 2023-05-04 09:17:39 +12:00
Caleb Brose
443bb75f09
Fix shellcheck bugs in generate.sh (#7392) 2023-05-01 10:31:06 -05:00
Kousik Mitra
d0207a2ede
Add capability to filter codespaces by repo owner (#7347)
* Add capability to filter codespaces by repo owner

* Replace Flags with PersistentFlags

* Reword flag description

* Update test seed

* Add mutual exclusion

---------

Co-authored-by: Caleb Brose <5447118+cmbrose@users.noreply.github.com>
2023-04-27 10:42:08 -05:00
Nate Smith
50e16890f8
Merge pull request #7369 from Xerkus/hotfix/make-install
Fix Makefile compatibility with macOS
2023-04-25 11:39:41 -07:00
Aleksei Khudiakov
c64032b981
Fix Makefile compatibility with macOS
`install` command on macOS does not support all flags supported by coreutils version.
Create directories as separate `install -d` call.

Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
2023-04-26 00:39:56 +10:00
Martijn Pieters
530002ee7a
Pretty-print JSON results of jq filtering (#7236)
When connected to a TTY, tell the jq formatter to indent the output, and
enable colorization of the output if the terminal supports it.

Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-04-25 13:27:17 +00:00
Saurav Maheshkar
6a6df0d39b
gh: move CODEOWNERS inside the .github/ dir (#7366) 2023-04-25 13:02:16 +00:00
Yeikel
9b75e274e4
feat: add visibility field (#7337) 2023-04-25 12:58:01 +00:00
Heath Stewart
17679cf65f
Edit multiple issues, PRs in parallel (#7259)
Allows multiple issues or PRs to be edited in parallel, and querying for shared fields once to reduce network requests.

Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2023-04-25 14:45:41 +02:00
cawfeecake
9473ec890c
add --created flag to gh run ls to filter listed runs by when they were created (#7352) 2023-04-25 12:43:19 +02:00
Mislav Marohnić
b9553fdd65
Merge pull request #7363 from cawfeecake/add-event-filter-runs-ls
add `--event` flag to `gh run ls` to filter listed runs by their trigger
2023-04-25 12:03:56 +02:00
cawfeecake
d7512bb2e7
add --event flag to gh run ls to filter runs by their trigger 2023-04-24 20:50:20 -07:00
Nate Smith
350011162a
Merge pull request #7293 from Xerkus/feature/shell-completion-bundled-on-release 2023-04-21 09:53:47 -07:00
Benjamin Levesque
7cfbf478d5
Diacritics substitution in prompt (#7205) 2023-04-21 14:09:59 +00:00
Mislav Marohnić
8b2cea1b8f
Merge pull request #7342 from goggle/typos01
Correct some typos
2023-04-21 16:09:19 +02:00
Alexander Seiler
218f29f296
Correct some typos 2023-04-21 03:51:31 +02:00
nate smith
65a8ab25df Merge remote-tracking branch 'origin/trunk' into feature/shell-completion-bundled-on-release 2023-04-20 12:13:02 -07:00
Caleb Brose
09e86d0ebf
Fix gh cs ports requiring sudo for privileged port numbers (#7326) 2023-04-19 07:00:44 -05:00
Mislav Marohnić
8460a70fa0
Merge pull request #7328 from cli/deployment-init
Initialize deployment.yml workflow file
2023-04-19 11:23:04 +02:00
Mislav Marohnić
57a5997e36
Initialize deployment.yml workflow file 2023-04-17 20:00:04 +02:00
John Keech
4b5a9032fe
Clarify how SSH keys are selected (#7325)
Fixes: https://github.com/orgs/community/discussions/52556

Update the help text for `gh codespace ssh` to provide more details about how SSH keys are selected.
2023-04-17 10:19:03 -07:00
Mislav Marohnić
ee547a1f11
Merge pull request #7323 from cli/dependabot/go_modules/github.com/cenkalti/backoff/v4-4.2.1
build(deps): bump github.com/cenkalti/backoff/v4 from 4.2.0 to 4.2.1
2023-04-17 19:11:27 +02:00
dependabot[bot]
e9ce94a3b8
build(deps): bump github.com/cenkalti/backoff/v4 from 4.2.0 to 4.2.1
Bumps [github.com/cenkalti/backoff/v4](https://github.com/cenkalti/backoff) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/cenkalti/backoff/releases)
- [Commits](https://github.com/cenkalti/backoff/compare/v4.2.0...v4.2.1)

---
updated-dependencies:
- dependency-name: github.com/cenkalti/backoff/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 15:00:39 +00:00
Lại Tuấn Anh
3d8057d856
fix: normalize hostname for auth login (#6999)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-04-17 13:35:30 +00:00
Sam Coe
dbc2f05124
Update go-gh to v2 (#7299)
* Update go-gh

* Update code for go-gh v2
2023-04-16 15:34:23 +10:00
Navaneethan
c0855a3e61
Fix typo in cs stop command: Stoppping -> Stopping (#7318) 2023-04-14 14:08:42 -05:00
doaortu
83322104b7
feat: add web flag for codespace list & create subcommand (#7288)
* feat: add web flag to cs list subcommand

web flag only works with repo flag, because,
currently there only param for listing with repo_id

* feat: add web flag to cs crate subcommand

web flag used for creating codespace through web UI instead of terminal.
web flag cannot be used with display-name, idle-timeout,
or retention retention-period
because there's no option for that in the Web UI

* refactor: extract mutual excusive logic to PreRunE

- changed web flag mutual exclusive logic, using cmdutil
- extract that logic to PreRunE clause in createCmd
- move web flag up to make it close to PreRunE clause (for clarity)
- add new param to newCreateCmd fn to facilitate test logic
- apply new newCreateCmd fn to root.go

* fix: clarify flag desc and error message

- remove 'yet' from error messages that can cause misunderstanding
- clarify list web flag can only be used with repo flag

* fix: skip machine check when we use web flag ...
(..and no machine flag provided)

+ add test for this new case
+ adjust related test cases for this new change.

* refactor: move flag check logic to PreRunE

why: err on PreRunE or RunE will also print help if error happened

+ move web, repo, org, user mutual exclusive logic to PreRunE clause
+ move repo, org, user mutual exclusive logic to PreRunE
+ move limit check flag to PreRunE
+ modify newListCmd fn to facilitate test logic
+ apply new newListCmd to root.go
+ add test cases to check PreRunE clause
- remove mutual exclusive test cases from Test_AppList

* refactor: remove the opts equality checks

* fix: mutually exclusive misfires
because of wrong logic

+ refine test case too

* cleanup:removing useWeb check in fn getMachineName

because it's no longer needed

+ remove redundant test-case

* refactor: remove redundant ifs

* refactor: clarify test name

* re-clarify web flag desc in list.go

* refactor: break long lines, use more idiomatic err

* add test case for nonexistent/wrong machine
2023-04-13 10:37:16 -05:00
Mislav Marohnić
9162d47c50
Merge pull request #7305 from kousikmitra/fix/owner-flag-type
Enable owner flag to take multiple values for searching
2023-04-12 12:31:30 +02:00
Kousik Mitra
7ee35e43cc
Enable owner flag to take multiple values for searching 2023-04-12 10:37:09 +05:30
Nate Smith
fe5b142233
Merge pull request #7270 from kousikmitra/feature/ssh-signing-key
Add option to add ssh singing key
2023-04-11 16:09:45 -07:00
Nate Smith
a279dd7082
Merge branch 'trunk' into feature/ssh-signing-key 2023-04-11 16:00:56 -07:00
Nate Smith
32a41da452
Merge pull request #7257 from joshkraft/gh-org-command
feat: add `gh org list`
2023-04-10 15:12:15 -07:00
Aleksei Khudiakov
80f91af171
Move completions generation from goreleaser to Makefile 2023-04-08 11:31:09 +10:00
Josh Kraft
aa8a902004
Merge branch 'trunk' into gh-org-command 2023-04-07 16:59:59 -06:00
Aleksei Khudiakov
be45eedc18
Generate completion scripts for bundling in rpm and deb on release 2023-04-08 08:55:45 +10:00
Kenichi Kocha
89caedf181
Add -R as shorthand of --repo flag for search commands (#7274) 2023-04-07 17:41:51 +10:00
Nate Smith
4f08b28250
Merge pull request #7284 from cli/cmbrose/invoker-close-fix
Fix codespaces invoker immediately closing
2023-04-06 17:34:41 -07:00
Caleb Brose
27a3fcc807 Fix invoker immediately closing 2023-04-05 19:33:50 -05:00
Josh Kraft
6fd951c189
Merge branch 'trunk' into gh-org-command 2023-04-05 15:39:21 -06:00
Josh Kraft
4d20db0ca0 Merge branch 'gh-org-command' of https://github.com/joshkraft/cli into gh-org-command 2023-04-05 15:38:58 -06:00
Josh Kraft
ba37e2333d add "showing x of y organizations" header 2023-04-05 15:36:45 -06:00
Kousik Mitra
4668810cbe
Enhance ssh-key list to show signing ssh keys also 2023-04-05 19:22:28 +05:30