Commit graph

6077 commits

Author SHA1 Message Date
Mislav Marohnić
63a64ee4f0
Merge pull request #6556 from cli/time-zone-test
Normalize time-zone headers in tests
2022-11-03 11:30:04 +01:00
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ć
4b2e380768
Normalize time-zone headers in tests
Setting a static time zone guards from test failures when the local time zone could not be detected.
2022-11-02 12:54:39 +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
Caleb Brose
3514de4b2d
Merge pull request #6544 from ctaylor4874/trunk 2022-11-01 11:44:54 -05:00
Cody Taylor
65ba9d4472 Ran go mod tidy 2022-11-01 11:28:34 -05:00
Josh Soref
6530c8fa1b Replace secrets.GITHUB_TOKEN with github.token 2022-11-01 10:59:17 -04:00
Cody Taylor
9a80d9c65c Adds max interval and conditional check on elapsed time 2022-10-31 15:23:54 -05:00
Cody Taylor
893bc25bcc Adds exponential backoff to ConnectToLiveshare; Fixes #5738 2022-10-31 13:55:33 -05: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
Mislav Marohnić
9ea76237a5
Merge pull request #6510 from dojutsu-user/no_color_6495
Fix: NO_COLOR setting not respected in gh upgrade notice
2022-10-26 15:57:18 +02:00
dojutsu-user
d0955ee077 disable colors in ansi 2022-10-25 22:57:00 +05:30
Nate Smith
8f28d1f9d5
Merge pull request #6501 from cli/fix-trunk
use new GitClient in issue develop
2022-10-24 17:35:08 -05: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
Mislav Marohnić
9d55bdd372
Merge pull request #6480 from cli/dependabot/github_actions/microsoft/setup-msbuild-1.1.3
Bump microsoft/setup-msbuild from 1.0.3 to 1.1.3
2022-10-23 12:31:22 +02:00
dependabot[bot]
a55c166084
Bump microsoft/setup-msbuild from 1.0.3 to 1.1.3
Bumps [microsoft/setup-msbuild](https://github.com/microsoft/setup-msbuild) from 1.0.3 to 1.1.3.
- [Release notes](https://github.com/microsoft/setup-msbuild/releases)
- [Changelog](https://github.com/microsoft/setup-msbuild/blob/master/building-release.md)
- [Commits](https://github.com/microsoft/setup-msbuild/compare/v1.0.3...v1.1.3)

---
updated-dependencies:
- dependency-name: microsoft/setup-msbuild
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21 14:27:07 +00: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
Robin Neatherway
0197b51f72
Replace spaces with tabs in mixed whitespace string (#6456)
This makes the indentation of the query consistent no matter your
local tab size rendering.
2022-10-18 11:08:47 +00: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
Sam Coe
ee9d7bef0a
Pull in latest go-gh release (#6454) 2022-10-18 11:03:13 +03:00
tdakkota
d41efa7a6a
Fix #6452 (#6453) 2022-10-18 06:36:52 +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