Charlie Andrews
599c7c900f
Disallow getting logs from codespaces with pending ops
...
Since the API already disallows this, this pretty much just cleans up
the error reporting to the user.
Example of old error:
```
$ gh cs logs -c cwndrws-redacted
Starting codespace ⣽connecting to codespace: error starting codespace: HTTP 422: your codespace has an operation pending: updating to a sku with a different amount of storage; please wait until this operation is complete (https://api.github.com/user/codespaces/cwndrws-redacted/start )
exit status 1
```
Example of new error:
```
$ gh cs logs -c cwndrws-redacted
codespace is disabled while it has a pending operation: Changing machine types...
exit status 1
```
2022-03-15 17:21:28 -04:00
Charlie Andrews
afa71c4b2f
Disallow ssh'ing to codespace with a pending operation
...
Since the API already disallows this, this makes the error cleaner and
more explicit when a user is trying to start/ssh into a codespace that
has a pending operation.
Example of the old error message:
```
$ gh cs ssh -c cwndrws-redacted
Starting codespace ⣽error connecting to codespace: error starting codespace: HTTP 422: your codespace has an operation pending: updating to a sku with a different amount of storage; please wait until this operation is complete (https://api.github.com/user/codespaces/cwndrws-redacted/start )
exit status 1
```
Example of the new error message:
```
$ gh cs ssh -c cwndrws-redacted
codespace is disabled while it has a pending operation: Changing machine types...
exit status 1
```
2022-03-15 17:21:28 -04:00
Charlie Andrews
3d28c52104
Mark codespace with pending op as disabled with reason instead of state
2022-03-15 17:21:24 -04:00
Charlie Andrews
3f65e5ae24
Add pending opertion and reason to codespace response struct
2022-03-15 17:19:47 -04:00
Nate Smith
1c260191ee
Merge pull request #5275 from cdb/cdb/rerun-failed-jobs
...
Support "all failed jobs" and individual job re-run for a github actions workflow run
2022-03-15 12:08:36 -05:00
Mark Phelps
43e4e9514d
Merge pull request #5276 from markphelps/codespaces-accept-perms-wording
2022-03-15 12:55:44 -04:00
Cameron Booth
a20e8b7eec
Fix test I missed updating
2022-03-15 09:50:20 -07:00
Josh Gross
f6d2f83938
Support setting Dependabot secrets ( #5134 )
...
* Support setting Dependabot secrets
* lint: Remove unnecessary assignment
* Use `StringEnumFlag` helper for Application input
* Add Dependabot to command description
* Move repository name mapping after input validation
* Error when multiple secret entities are set
* Return an error for invalid apps
* Use `assert` instead of `require`
2022-03-15 07:44:51 +02:00
Cameron Booth
e6b09b45de
Fix up error and help language
2022-03-14 12:29:49 -07:00
Gowtham Munukutla
83a6cccf2a
Add interactive repository edit functionality ( #4895 )
2022-03-14 17:49:03 +00:00
Cameron Booth
24ec53365b
Return error if both jobID and runID are specified
2022-03-14 10:01:19 -07:00
Cameron Booth
3645975da7
Prefer IsStdoutTTY when that's all we need
2022-03-14 10:00:29 -07:00
Mislav Marohnić
d4ead71d06
Merge pull request #5298 from cli/bump-golangci-lint
...
Bump golangci-lint version
2022-03-14 15:27:37 +01:00
neilnaveen
07e0e52edd
Fixed permission for workflow ( #5279 )
...
https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-03-14 14:18:21 +01:00
Caleb Brose
ca98aec535
Merge pull request #5297 from cmbrose/cmbrose/cs-cp-profile
...
Add `--profile` option to `gh cs cp`
2022-03-14 07:10:02 -05:00
Boston Cartwright
bb9bf29835
pr merge switch to base branch if available ( #5251 )
...
* after merge, switch to base branch if available
* Add ability to checkout new branch
* Style cleanup
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-03-14 14:02:57 +02:00
Jose Garcia
e601a890b2
Merge pull request #5296 from cmbrose/cmbrose/list-vscs-target
...
Add VSCS Target to `gh cs list`
2022-03-14 07:17:38 -04:00
GitHub Action
de88d9e186
Only export vscsTarget for non-prod
2022-03-11 11:13:38 -06:00
Mislav Marohnić
9278f51aa8
Bump golangci-lint version
2022-03-11 14:58:15 +01:00
GitHub Action
94128d683c
Add consts for targets and treat empty as prod
2022-03-10 19:59:24 -06:00
GitHub Action
21a1059f7c
Add --profile option to gh cs cp
2022-03-10 19:01:55 -06:00
GitHub Action
5e62a417d8
Add emojis to name
2022-03-10 18:50:12 -06:00
GitHub Action
a3b69e8d87
Add missed file
2022-03-10 17:10:36 -06:00
GitHub Action
d85feafa85
Rename to hasNonProdVSCSTarget
2022-03-10 17:05:13 -06:00
GitHub Action
be5923770b
Add vscs-target to gh cs list
2022-03-10 16:42:31 -06:00
Mislav Marohnić
26d33d6e38
Merge pull request #5293 from cli/snakes-on-no-plane
...
Bump Cobra to eliminate Viper
2022-03-10 19:05:42 +01:00
Mislav Marohnić
cb7315c85d
Re-initialize modules cache in CI
2022-03-10 18:29:42 +01:00
Mislav Marohnić
ee1328de49
Bump Cobra to eliminate Viper
2022-03-10 17:28:39 +01:00
Josh Spicer
4d5ce7aa56
Adds internal codespace developer flags ( #5287 )
2022-03-09 15:59:29 +00:00
Sam Coe
e0045f26b9
Add top level search command and search repos sub command ( #5172 )
2022-03-09 12:24:27 +00:00
Mislav Marohnić
4a41fec2ed
Merge pull request #5286 from cli/checks-branch
...
pr checks: fix error message when no checks were found
2022-03-08 18:41:31 +01:00
Mislav Marohnić
a657fa808a
pr checks: fix error message when no checks were found
...
Fixes the error message:
no checks reported on the '' branch
Now the correct branch name is reported.
2022-03-08 16:44:41 +01:00
Nate Smith
e361fd47a3
Merge pull request #5254 from ganboonhong/pr-close-failed
...
pr close skips deleting local branch if not in a git repo
2022-03-07 14:53:41 -06:00
Seito Tanaka
6f66a1d265
Add version to extension list command ( #5219 )
...
* Add version to extension list command
* Trim sha only when displaying
2022-03-07 07:14:26 +00:00
Patrick Veverka
cd8d653285
Merge pull request #5211 from cli/edit_codspaces
...
Allow Editing Codespaces
2022-03-03 18:22:01 -05:00
Mark Phelps
625f3ac144
Updates wording for codespaces accept permissions flow
2022-03-03 15:36:53 -05:00
Cameron Booth
bf5801e646
Implement --job for rerunning a specific actions job
2022-03-03 11:49:08 -08:00
Cameron Booth
c38ca830be
Extract shared.GetJob so we can use in rerun too
2022-03-03 11:10:22 -08:00
Nate Smith
5772c0958a
Merge pull request #5271 from cli/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2 to 3
2022-03-02 10:47:59 -06:00
dependabot[bot]
0cce0e1543
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 14:29:49 +00:00
Patrick Veverka
edfaac23da
updates from review
2022-03-02 13:17:57 +00:00
Mario Campos
97ea5e77b4
Fix obtained scope mapping to include implied scopes ( #5256 )
...
* Fix obtained scope mapping to include missing scopes
As is, `gotScopes` does not contain certain scopes because it doesn't check for the "special" scopes that imply other scopes. For example, the `repo` scope implies `repo:invite`.
* Add a comment in ScopesSuggestion explaining branch statements
* Delete whitespace to appease go-fmt
2022-03-01 14:37:58 +00:00
Mark Phelps
a9e92c9ed5
Fix HexToRGB panic ( #5247 )
2022-03-01 14:37:10 +00:00
dependabot[bot]
12f2e3cab0
Bump github.com/itchyny/gojq from 0.12.6 to 0.12.7 ( #5263 )
...
Bumps [github.com/itchyny/gojq](https://github.com/itchyny/gojq ) from 0.12.6 to 0.12.7.
- [Release notes](https://github.com/itchyny/gojq/releases )
- [Changelog](https://github.com/itchyny/gojq/blob/main/CHANGELOG.md )
- [Commits](https://github.com/itchyny/gojq/compare/v0.12.6...v0.12.7 )
---
updated-dependencies:
- dependency-name: github.com/itchyny/gojq
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 14:27:35 +00:00
Nate Smith
91c4a5d828
Merge pull request #5234 from markphelps/codespaces-accept-perms
...
Codespaces Create: Allow Accepting Permissions
2022-02-28 16:54:45 -06:00
Mislav Marohnić
25a4877f2e
Update triage.md ( #5238 )
2022-02-28 09:31:27 +01:00
boonhong
a6161cb8cb
pr close skips deleting local branch if not in a git repo
2022-02-26 18:03:05 +08:00
Mark Phelps
dd5feda00a
Update wording after consulting product
2022-02-25 17:32:08 -05:00
Patrick Veverka
86feaff6a9
little bit of testing
2022-02-24 20:21:06 +00:00
Mark Phelps
71f32376d0
Fix tests
2022-02-22 20:20:52 -05:00