Alex Petrov
7d4ab65af3
fix: correctly set ErrNotOnAnyBranch error in git client ( #7082 )
...
Before, git client was not correctly setting `ErrNotOnAnyBranch` error.
Because of that, `gh pr status` was not functioning correctly when run
from the detached HEAD. This commit fixes that.
Fixes #7051
2023-03-06 09:16:29 +11:00
Nate Smith
2268d2e4eb
Merge pull request #7077 from cli/vilmibm-patch-1
2023-03-02 19:29:55 -06:00
Sam Coe
35a24caed2
Standardize retry mechanism ( #7027 )
2023-03-02 23:06:30 +00:00
Nate Smith
f68fdf504f
Update working-with-us.md
2023-03-02 13:13:49 -08:00
Nate Smith
3a22869439
Merge pull request #7003 from Ruminateer/unarchive
...
feature: add command `gh repo unarchive`
2023-03-01 18:25:23 -06:00
vilmibm
b85a22cc71
use new cfg.Authentication()
2023-03-01 16:12:32 -08:00
Nate Smith
0bc2f28575
Merge branch 'trunk' into unarchive
2023-03-01 17:59:50 -06:00
Nate Smith
fe78331342
Merge pull request #7038 from yanskun/feat/add-open-num-commit-hash
...
Made it possible to do open num only commit hash with Browse Command
2023-03-01 17:38:34 -06:00
Hamish 'James' Coates
394b23aa9b
Include new line after existing fork error log ( #7030 )
2023-02-28 00:53:25 +00:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Sam Coe
df83dc2d58
Add ability to store tokens in encrypted storage ( #7043 )
2023-02-28 00:04:53 +00:00
Sam Coe
a33e12a21d
Refactor Config interface in preperation for encrypted token storage ( #7033 )
2023-02-28 10:51:12 +11:00
Naoya Yasuda
19788459cd
feat: add open num hash to browse command
2023-02-25 23:22:39 +09:00
Caleb Brose
57c73e8239
Add --repo filter to more gh codespaces commands ( #6669 )
...
* Add --repo flag to commands
* Example of using common args
* Add -r to stop
* Add validation to the add helper
* Skip prompt for single option
* Migrate (mostly) everything to addGetOrChooseCodespaceCommandArgs
* Fix typo in logsCmd
* Use R instead of r
* Update a couple -r usages
* Refactor to codespace_selector
* Clean up selector, apply it in a couple examples
* Use apiClient instead in constructor
* Restore addDeprecatedRepoShorthand
* Finish implementing the commands
* Update existing tests to use the selector
* Add tests for selector
* linter
* Catch case where there's no conflict
* Make the flag persistent for ports
* Add support to stop
2023-02-22 17:16:36 -06:00
Sam Coe
aa1fe64cb6
Update golang.org/x/net package ( #7026 )
2023-02-21 15:54:57 +11:00
Josh Soref
7541ee6aec
Retry git clone on git clone failure in gh repo fork --clone ( #6962 )
2023-02-21 04:10:50 +00:00
zhangzhengyuan
eb8bfcfe96
use prompter for pkg/cmd/repo/unarchive
2023-02-20 16:22:51 -08:00
zhangzhengyuan
125c67b3fb
add command gh repo unarchive
2023-02-20 10:35:50 -08:00
beret
1fbcdf52cc
Enable darwin arm64 builds in goreleaser ( #4435 )
2023-02-17 15:24:51 +01:00
Sam Coe
08a1231178
Allow retrieving projectItems in JSON and allow adding/removing user owned projects ( #7007 )
2023-02-15 22:14:59 +00:00
Roshan Padaki
f797213d38
Allow adding named gpg keys ( #6993 )
2023-02-12 23:43:53 +00:00
Owen Voke
fd0af5e3aa
feat: add --releases option to gh browse ( #6996 )
2023-02-09 10:14:00 +11:00
Des Preston
94fe6c7764
Fix set-default interactive not showing all remotes ( #6969 )
2023-02-07 23:11:38 +00:00
Sam Coe
801c38a24f
Add visibility warning to repo edit ( #6980 )
...
Add visibility warning to repo edit
---------
Co-authored-by: Lai Tuan Anh <laituananh1711@gmail.com>
2023-02-08 08:53:22 +11:00
Mislav Marohnić
14eb873b9e
Avoid implicitly fetching when adding a new git remote ( #6990 )
2023-02-07 21:22:02 +00:00
Robin Neatherway
78fb90956c
Teach gh cs create to use current repo as default ( #6596 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-02-07 20:05:38 +00:00
Mislav Marohnić
626c639df5
Disallow update checker delaying the gh process ( #6978 )
...
This ensures that checking for newer versions of gh happens in the background of the main operation that the user requested, and that when that operation is completed, the gh process should immediately exit without being delayed by the update checker goroutine.
2023-02-07 19:52:53 +00:00
Luan Vieira
d4c9890c5a
Default to authenticated user on codespace delete ( #6944 )
...
When a username option is not provided for the `gh codespace delete`
command, we will use the authenticated user's login as the default to
avoid deleting anyone else's codespace by mistake.
Prior to this change, running `gh codespace delete --org MYORG --all`
would fetch all of the codespacese associated with the org regardless of
user and then only delete the ones associated with the authenticated
user, which would lead to 404 errors when MYORG had codespaces owned by
members other than the authenticated member.
Co-authored-by: Victoria Dye <vdye@github.com>
Co-authored-by: Lessley Dennington <ldennington@github.com>
2023-02-07 20:46:08 +01:00
Mislav Marohnić
052f567e46
Merge pull request #6977 from cli/disable-update-checker
...
Disable gh update checker in our precompiled binaries
2023-02-07 19:00:38 +01:00
Mislav Marohnić
3c0c450e7c
Merge pull request #6983 from jsoref/repo-fork-default-branch-only
...
Support Fork with Default Branch Only
2023-02-07 17:23:06 +01:00
Josh Soref
e6d6427704
Support Fork with Default Branch Only
2023-02-07 10:00:39 -05:00
Mislav Marohnić
d1e54ecb9b
Merge pull request #6976 from cli/httpretty-body-fix
...
GH_DEBUG: fix api logging corrupting response bodies
2023-02-07 15:10:03 +01:00
Mislav Marohnić
2097899a4d
Disable gh update checker in our precompiled binaries
...
This is because most people install gh through a package manager, and people usually prefer for their package manager to check for updates instead of the gh process doing it at runtime.
2023-02-06 19:12:58 +01:00
Mislav Marohnić
9743928b7e
GH_DEBUG: fix api logging not corrupting response bodies
...
With `GH_DEBUG=api` and response bodies that are greater than a certain size, the httpretty logging library would corrupt the `resp.Body` reader in its HTTP Transport.
2023-02-06 17:03:09 +01:00
Mislav Marohnić
06af84f440
Merge pull request #6932 from cli/godotenv-bump
...
secret set: enable multiline values when reading from .env file
2023-02-06 16:17:57 +01:00
Mislav Marohnić
73fb4c1463
secret set: enable multiline values when reading from .env file
2023-02-06 15:29:37 +01:00
Sam Coe
0dd7e9c36f
Fix panic in ASCII sanitization ( #6956 )
2023-02-06 15:24:57 +01:00
Mislav Marohnić
9f426bf615
Merge pull request #6973 from cli/dependabot/github_actions/microsoft/setup-msbuild-1.3.1
...
Bump microsoft/setup-msbuild from 1.1.3 to 1.3.1
2023-02-06 15:18:42 +01:00
dependabot[bot]
940ef473de
Bump microsoft/setup-msbuild from 1.1.3 to 1.3.1
...
Bumps [microsoft/setup-msbuild](https://github.com/microsoft/setup-msbuild ) from 1.1.3 to 1.3.1.
- [Release notes](https://github.com/microsoft/setup-msbuild/releases )
- [Changelog](https://github.com/microsoft/setup-msbuild/blob/main/building-release.md )
- [Commits](https://github.com/microsoft/setup-msbuild/compare/v1.1.3...v1.3.1 )
---
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>
2023-02-06 14:06:47 +00:00
Sam Coe
138da0f969
Fix adding/removing projects using flags for edit commands ( #6955 )
2023-02-06 08:28:38 +11:00
Nate Smith
c024e856db
Merge pull request #6584 from cli/gh-ext-browse-followup
...
gh ext browse followup
2023-02-02 13:28:43 -08:00
vilmibm
b8a6c1daa7
include readme viewing in small help
2023-02-02 13:15:10 -08:00
Nate Smith
5dea3a923f
Merge branch 'trunk' into gh-ext-browse-followup
2023-02-02 12:27:17 -08:00
vilmibm
c9590f36d9
longer small help
2023-02-02 12:18:13 -08:00
Mislav Marohnić
79a1be4fe0
Merge pull request #6948 from cli/dependabot/go_modules/github.com/cli/oauth-1.0.1
...
Bump github.com/cli/oauth from 1.0.0 to 1.0.1
2023-02-02 15:32:27 +01:00
dependabot[bot]
c36aece5cd
Bump github.com/cli/oauth from 1.0.0 to 1.0.1
...
Bumps [github.com/cli/oauth](https://github.com/cli/oauth ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cli/oauth/releases )
- [Commits](https://github.com/cli/oauth/compare/v1.0.0...v1.0.1 )
---
updated-dependencies:
- dependency-name: github.com/cli/oauth
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 14:03:41 +00:00
Sam Coe
ced071feae
Sanitize ANSII control characters returned from the server ( #6916 )
2023-02-01 21:19:30 +00:00
Sam Coe
1233bd4439
Special case setting dependabot org secrets ( #6941 )
2023-02-02 07:12:22 +11:00
vilmibm
300bc2cb69
fix tests
2023-01-31 14:42:34 -08:00
vilmibm
37eee30411
WIP fixing tests
2023-01-31 12:06:32 -08:00