Ashwin Jeyaseelan
47f5abdb6f
8gitbrix/add delete org codespace ( #5827 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-22 18:28:09 +02:00
Greggory Rothmeier
2294f49d07
Add support for org admins to stop a members codespace ( #5812 )
2022-06-22 13:56:22 +02:00
Mislav Marohnić
d76c1f352a
Merge pull request #5841 from wilhelmeek/avoid-keep-multiselect
...
clear pr create multiselect on select
2022-06-22 12:13:00 +02:00
wilhelm
0f02371734
clear pr create multiselect on select
2022-06-22 17:43:41 +10:00
Jake Shorty
5893c9864d
Merge pull request #5828 from cli/jshorty/indent-billable-owner-notice
...
Indent org billable owner notice for new codespaces
2022-06-21 09:32:27 -06:00
Jake Shorty
bb753731e6
Update test for indentation
2022-06-21 15:19:24 +00:00
Mislav Marohnić
14a9af8378
Merge pull request #5822 from cli/fix-find-executable
...
Fix determining the current executable under Homebrew for Linux
2022-06-21 16:45:43 +02:00
dependabot[bot]
e50234d12a
Bump github.com/stretchr/testify from 1.7.3 to 1.7.4 ( #5833 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.3...v1.7.4 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
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-06-21 14:34:28 +00:00
Greggory Rothmeier
4b36dc031f
Add flag to list codespaces under an organization ( #5807 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-21 13:57:40 +00:00
Greggory Rothmeier
9b86fe41c0
Simplify codespace picker ( #5826 )
...
This doesn't change anything about how it's formatted, but extracts a
new function formatCodespacesForSelect so we can test and see how it
treats the different combinations of codespaces.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-21 15:47:11 +02:00
Mislav Marohnić
01bff6b91e
Merge pull request #5802 from greggroth/gregg/repo-secrets
...
Allow working with Codespaces repo secrets
2022-06-21 15:44:31 +02:00
Mislav Marohnić
7d0b37d8f3
Merge pull request #5825 from gdomingu/ship-retention-period-flag
...
Uncomment retention period flag for create cmd
2022-06-21 13:58:59 +02:00
Jake Shorty
c48e6ee4c9
Indent org billable owner notice for new codespaces
2022-06-20 21:36:01 +00:00
Gabe D
95b7533a5f
Uncomment retention period flag from create cmd
2022-06-20 18:40:56 +00:00
Jake Shorty
faef89144d
Merge pull request #5816 from cli/jshorty/codespace-pre-flight-api
...
Notify user when codespace usage is covered by organization
2022-06-20 11:33:24 -06:00
Mislav Marohnić
456a0f1bb0
Merge pull request #5715 from azchohfi/arm64
...
Added Arm64 compilation
2022-06-20 19:24:14 +02:00
Jake Shorty
df3b40999e
Flip conditional
2022-06-20 17:13:42 +00:00
Jake Shorty
832f35e000
PreFlight => BillableOwner for less confusion
2022-06-20 17:12:07 +00:00
ffalor
2388f51927
Add --match-head-commit field to gh pr merge ( #5692 )
...
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-06-20 17:18:00 +02:00
Mislav Marohnić
25b6a89ff3
Merge pull request #5824 from cli/dependabot/go_modules/github.com/stretchr/testify-1.7.3
...
Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
2022-06-20 17:14:15 +02:00
dependabot[bot]
caaeb5ab11
Bump github.com/stretchr/testify from 1.7.2 to 1.7.3
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.3 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 14:40:36 +00:00
Mislav Marohnić
7387346196
Fix determining the current executable under Homebrew for Linux
...
We need to use `os.Lstat` instead of `os.Stat` if we are going to
manually inspect files for whether they are a symlink. On macOS, it
looks like `os.Stat` returns information about the symlink itself.
2022-06-20 15:25:29 +02:00
Jake Shorty
2b9f9bb92a
Add test for individual case
2022-06-19 18:38:38 +00:00
Jake Shorty
ddbf8590e8
Fix error message and JSON keys
2022-06-19 18:28:33 +00:00
Jake Shorty
454b3489aa
Add test for billable owner in stdout
2022-06-17 22:45:04 +00:00
Jake Shorty
e8bde879b2
Always show org billable owner in stdout
2022-06-17 22:44:43 +00:00
Jake Shorty
b3d2cc6e37
Handle 404s smoothly during create on codespaces pre-flight
2022-06-17 21:09:38 +00:00
Jake Shorty
09f926c475
Generate test mocks for new API func
2022-06-17 20:15:53 +00:00
Jake Shorty
1c8b26c5d8
Remove unused test function
2022-06-17 19:59:29 +00:00
Jake Shorty
08446c8fcd
Add new API client function to tests
2022-06-17 19:52:37 +00:00
Jake Shorty
7e4ec074f5
Use expanded copy for org billable owner
2022-06-17 18:42:31 +00:00
Jake Shorty
cad9a050be
Get basics working with codespaces pre-flight during creation
2022-06-16 15:42:29 +00:00
Jake Shorty
edf83af07a
Add Codespaces pre-flight request to API client
2022-06-15 21:17:04 +00:00
Greggory Rothmeier
9ea548107c
Allow working with Codespaces repo secrets
...
The API exists for this, so we can allow it through the CLI
https://docs.github.com/en/rest/codespaces/repository-secrets
2022-06-15 13:41:42 -07:00
Caleb Brose
2e6f202031
Merge pull request #5752 from jungaretti/jungaretti/no-ssh-keys
2022-06-14 17:33:07 -05:00
Caleb Brose
be773a12d4
Create .ssh dir if not exists
2022-06-14 12:30:04 -05:00
Caleb Brose
83153fe9e5
Cleanups from PR comments
2022-06-14 14:33:41 +00:00
Jonathan Fenwick
ddb408e67b
Add check to see if current owner is attempting to fork the repo ( #5794 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-14 13:13:24 +00:00
Spenser Black
5771fcb35e
Print auth help message based on environment ( #5781 )
...
This will check if `gh` is running in a CI environment. If so, it will
suggest using environment variables to set the auth token. Additionally,
if the CI environment is detected to be GitHub Actions, it will provide
some example code. If it is not a CI environment, it will print the
standard help message.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-14 12:27:11 +00:00
Caleb Brose
9f6e1c774b
Check for key already exists
2022-06-13 19:31:44 +00:00
Caleb Brose
919dcebc45
Rename Context
2022-06-13 19:16:16 +00:00
Caleb Brose
b5580f9503
Refactor inferfaces from PR comments
2022-06-13 19:04:29 +00:00
cmbrose
ec58990715
Typo
2022-06-10 12:38:10 -05:00
cmbrose
e16a8adb6f
Invert boolean
2022-06-10 11:14:19 -05:00
Mislav Marohnić
4c237708d8
Merge pull request #5779 from cli/merge-queue-api-fix
...
pr merge: fix merge queue API access for PAT consumers
2022-06-09 14:51:56 +02:00
Mislav Marohnić
9351f272dc
pr merge: fix merge queue API access for PAT consumers
...
The github.com API right now doesn't seem to make merge queue APIs
available to people who use PAT to authenticate gh requests. This
switches the conditional request strategy to also do feature-detection
for dotcom (instead of just for Enterprise).
2022-06-09 14:38:58 +02:00
Sam Coe
743a747804
Use go-gh for SSH hostname alias translation ( #5654 )
2022-06-08 21:32:29 +00:00
Sam Coe
39dd3e66e8
Use go-gh repository.ParseWithHost ( #5655 )
2022-06-08 21:21:59 +00:00
Mislav Marohnić
4b488a7f6a
Merge pull request #5762 from cli/codespace-start-progress
...
Clean up progress indicator if codespace fails to start
2022-06-08 17:48:57 +02:00
dependabot[bot]
448b13864a
Bump github.com/AlecAivazis/survey/v2 from 2.3.4 to 2.3.5 ( #5775 )
...
Bumps [github.com/AlecAivazis/survey/v2](https://github.com/AlecAivazis/survey ) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/AlecAivazis/survey/releases )
- [Commits](https://github.com/AlecAivazis/survey/compare/v2.3.4...v2.3.5 )
---
updated-dependencies:
- dependency-name: github.com/AlecAivazis/survey/v2
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-06-08 14:29:04 +00:00