Commit graph

2550 commits

Author SHA1 Message Date
BakaFT
fa2223129b
Warn from gh gpg-key add when key is not armored (#6528)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-02 16:33:25 +01:00
Mislav Marohnić
ff9b18310a
Merge pull request #6552 from cli/owner-affiliations
Fix `repo list` when belonging to org with IP Allow list enabled
2022-11-02 10:28:22 +01:00
Luis Filipe Pessoa
a15c254eba
Adding output functionality (#6410)
Output flag allows one to download to a specific file location or event redirect to output using '-' as argument.

Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-02 10:24:33 +01:00
Mislav Marohnić
17e64674f5
repo list: fix when belonging to org with IP Allow list enabled
Using `ownerAffiliations` instead of `affiliations` seems more semantically correct to list all repos belonging to a user or an organization, but the latter thas an added benefit that it also works around a problem when the API would return an error if the user happens to belong to an organization that has IP allow list enabled.

From our GraphQL docs:

> `affiliations`: Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.
>
> `ownerAffiliations`: Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.
2022-11-02 00:55:46 +01:00
Caleb Brose
3692defe8d
Merge pull request #6551 from jungaretti/jungaretti/incremental-rebuild 2022-11-01 17:45:31 -05:00
JP Ungaretti
925edf3892 Add long description 2022-11-01 22:35:39 +00:00
JP Ungaretti
66c4e7eca8 Use Log and Error instead of Fatal 2022-11-01 21:45:56 +00:00
JP Ungaretti
647ba727f1 Fix name of mock function 2022-11-01 21:10:58 +00:00
JP Ungaretti
a29820ebe3 Use incremental rebuild by default 2022-11-01 21:00:14 +00:00
Mislav Marohnić
e8dc825c7c
Avoid duplicate release when creating a release with assets (#6493)
When publishing a release, we rely on server-side validation to abort the operation if an existing published release with the same tag name already exists.

However, then creating a release with assets, we first create a draft release, upload assets to it, then publish. If there was an existing release with the same tag name, the operation would fail but it would leave behind a temporary draft release with assets. This makes the operation fail earlier, before creating any records.
2022-11-01 19:03:03 +00:00
Mislav Marohnić
afef80e988
Merge pull request #6494 from cli/run-number
gh run list --json: add `number` field
2022-11-01 19:40:34 +01:00
Jeffrey Duroyon
6d32ce612c
feat: make topic param as list in repo list command (#6539)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-01 19:39:43 +01:00
Mislav Marohnić
eeff8868ab
Merge pull request #6527 from cli/pr-create-no-git
Enable `gh pr create` from outside of a local git repo
2022-11-01 19:39:15 +01:00
Mislav Marohnić
fe485c14cc
Merge pull request #6535 from jsoref/issue-6534
Replace secrets.GITHUB_TOKEN with github.token
2022-11-01 19:34:53 +01:00
Mislav Marohnić
0d77e9e945
Merge pull request #6537 from cli/hyperlink-helper-docs
Document the hyperlink helper
2022-11-01 19:34:03 +01:00
swfz
2b570d9e53
Upgrade actions/checkout to v3 in extension template (#6543) 2022-11-01 17:18:10 +00:00
Josh Soref
6530c8fa1b Replace secrets.GITHUB_TOKEN with github.token 2022-11-01 10:59:17 -04:00
Mislav Marohnić
dbc244a993
Document the hyperlink helper 2022-10-31 15:04:53 +01:00
Mislav Marohnić
8c32ca925c
Enable gh pr create --repo <repo> from outside of a local git repository
When failing to read information from the local git repository, silence that failure if `--repo` was given.
2022-10-28 18:22:37 +02:00
Mislav Marohnić
5d3a8e380a
Fix double import 2022-10-28 17:58:04 +02:00
vilmibm
afecf7e5d0 use tableprinter in issue develop 2022-10-24 15:23:52 -07:00
vilmibm
96372e5ac8 use new GitClient in issue develop 2022-10-24 15:02:24 -07:00
Nate Smith
a20192943d
Merge pull request #6254 from Bestra/create-linked-branch-command
Add `gh issue develop` command
2022-10-24 16:26:56 -05:00
Mislav Marohnić
aec2c5f330
run: add number json field to access run number 2022-10-24 15:40:07 +02:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 (#6474) 2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression (#6472)
* Revert "Refactor to use new git client (#6447)"

This reverts commit 57fbe4f317.

* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client (#6447) 2022-10-19 21:11:36 +03:00
ffalor
e7270e401d
add --web flag to pr diff command (#6439) 2022-10-18 09:02:53 +00:00
Ashwin Jeyaseelan
a756ffb1e8
Fix Codespace Creation Devcontainer bug (#6389) 2022-10-18 11:11:28 +03:00
Seito Tanaka
e523d50176
Add support for editing last issue/pr comment (#6384) 2022-10-18 08:10:12 +00:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh (#6346) 2022-10-17 15:15:39 +02:00
Natthakit Susanthitanon
4265b5b804
Add gpg-key delete command (#6360) 2022-10-17 09:07:51 +03:00
Ariel Deitcher
abb8c86ee8
mntly/extension not found (#6425)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-10-14 15:27:15 +02:00
Sam Coe
c89d0402bb
Improved error messaging for repo sync scenario (#6430) 2022-10-14 09:46:12 +00:00
Sam Coe
2944f7c3ab
Create git client (#6354) 2022-10-14 07:47:03 +00:00
Natthakit Susanthitanon
4c3b123db6
Return empty error before starting a pager program (#6419)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-10-13 19:08:13 +02:00
Natthakit Susanthitanon
5962bc4383
Add ssh-key delete command (#6273) 2022-10-12 08:22:22 +00:00
David Gardiner
f80f566ab2
Merge pull request #6358 from dmgardiner25/dmgardiner25/grpc-client
Implement gRPC client and `GetRunningServer` method
2022-10-11 10:45:50 -07:00
Jose Garcia
a356a1bef0 no need to ignore cancel 2022-10-11 13:15:34 -04:00
Caleb Brose
a937b278b2
Merge pull request #6404 from jungaretti/jungaretti/add-rebuild-command
Add cs rebuild command
2022-10-11 10:11:09 -05:00
Jose Garcia
e11b43f8f6 Fixes for handling the grpc client lifecyle 2022-10-11 08:55:14 -04:00
Ariel Deitcher
331dc24f07
show pull request merged state on search (#6411) 2022-10-11 14:40:16 +02:00
David Gardiner
f89b1b6a45 Create timeout context in caller 2022-10-10 14:39:12 -07:00
JP Ungaretti
982aa5ba82 Rename RPC command to RebuildContainer 2022-10-10 21:01:29 +00:00
David Gardiner
0f41ccc472 Have cilents call port connection function 2022-10-10 11:56:44 -07:00
JP Ungaretti
0e963ebd4f Move codespace construction to its test 2022-10-09 01:11:04 +00:00
JP Ungaretti
6704f38ffc Verify that RPC was called 2022-10-09 01:05:52 +00:00
JP Ungaretti
b373fbbe44 Remove else block 2022-10-09 01:00:14 +00:00
JP Ungaretti
30fcddeccb Use nil instead of []string{} 2022-10-09 00:59:54 +00:00
JP Ungaretti
d05cdf5ff3 Tidy up comments and errors 2022-10-08 06:30:42 +00:00