Sam Coe
a1e1842e6d
Catch a couple more edge cases
2021-06-29 20:48:30 -07:00
Sam Coe
0b80c30789
Fix remote resolving for source repo
2021-06-28 17:00:06 -07:00
Sam Coe
0477084a30
remove now unused color code
2021-06-28 10:57:01 -07:00
Sam Coe
5481b2b5e6
Move dirty repo check before any network calls
2021-06-24 09:08:36 -07:00
Sam Coe
8219710551
Address PR comments
2021-06-23 14:20:14 -07:00
Sam Coe
0e838052a4
Rewrite tests with new mocks
2021-06-23 12:01:58 -07:00
Sam Coe
4ed2bfc4a0
Revert "Add counterfeiter"
...
This reverts commit 096f30a319 .
2021-06-22 13:55:30 -07:00
Sam Coe
8423de7f50
Add tests
2021-06-14 10:54:28 -04:00
Sam Coe
096f30a319
Add counterfeiter
2021-06-14 10:51:51 -04:00
Sam Coe
2729af50df
Cleanup SyncOptions
2021-06-14 10:51:51 -04:00
Sam Coe
8d61b96bde
Fix up error message
2021-06-14 10:51:51 -04:00
Sam Coe
8b5abc77ea
Extract git interactions into interface
2021-06-14 10:51:51 -04:00
Sam Coe
c6f89d3c17
Start tests
2021-06-14 10:51:50 -04:00
Sam Coe
86e16cc7c4
Add repo sync command
2021-06-14 10:51:50 -04:00
Mislav Marohnić
5984cf2a82
Merge pull request #3832 from cli/env-set-fix
...
Fix setting environment secrets
2021-06-14 16:17:24 +02:00
Mislav Marohnić
f7a786407d
Merge pull request #3834 from cristiand391/remove-unused-method
...
Remove unused method from `httpmock` package
2021-06-14 15:40:20 +02:00
Cristian Dominguez
d8ce615252
Remove unused method from httpmock package
2021-06-14 09:39:14 -03:00
Mislav Marohnić
3a7ce3a440
Fix setting environment secrets
...
This uses the correct public key when setting environment secrets.
https://docs.github.com/en/rest/reference/actions#get-an-environment-public-key
2021-06-14 11:51:20 +02:00
Nate Smith
aecfc01e69
Merge pull request #3809 from cli/fork-test-cleanup
...
fork tests cleanup
2021-06-11 11:31:33 -05:00
Mislav Marohnić
af90f72493
Merge pull request #3803 from cli/http-accept-header
...
Update "Accept" header for github.com requests
2021-06-11 14:38:52 +02:00
Mislav Marohnić
4debbb17cd
Further separate out test cases
2021-06-11 14:32:08 +02:00
Mislav Marohnić
7dbaaf2eb7
Merge pull request #3804 from cli/pr-status-checks
...
Fix showing Checks information in `pr status`
2021-06-11 14:18:50 +02:00
Nate Smith
b0998772ae
more cleanup
2021-06-10 21:46:02 +00:00
Nate Smith
f31a31e2ed
stop stubbing out a Since function
2021-06-10 21:46:02 +00:00
vilmibm
4a7ec7f4f6
cleaning up fork tests
2021-06-10 21:45:54 +00:00
vilmibm
14de70a011
add defaultRemoteName
2021-06-10 21:44:49 +00:00
Mislav Marohnić
a4d1ce7709
Fix fetching information about the PR potentially being behind base branch
2021-06-10 15:51:27 +02:00
Mislav Marohnić
885e94786a
Shorten GraphQL query for pr status --json
2021-06-10 15:37:58 +02:00
vilmibm
395355d075
make prompt.Confirm stubbable
2021-06-08 15:49:37 -05:00
Mislav Marohnić
f5cd33b4bf
Fix showing Checks in pr status
...
This was a regression in how `statusCheckRollup` is queried and stored.
As a result, `gh pr status` did not include rendered information about
checks related to each pull request. This switches the query builder to
`PullRequestGraphQL()` to eliminate the outdated query.
2021-06-08 20:22:33 +02:00
Mislav Marohnić
3a55c26000
Update "Accept" header for github.com requests
...
The `antiope-preview` has graduated in github.com and no longer needs
activating. However, we still need it for GHES requests.
2021-06-08 19:25:40 +02:00
Mislav Marohnić
8a221bb766
Add tests for our default HTTP client
2021-06-08 19:21:48 +02:00
Mislav Marohnić
75abeb13a8
Merge pull request #3786 from browniebroke/remove-secret-long-description
...
Add a long command description for secrets remove
2021-06-04 20:18:26 +02:00
Bruno Alla
051520afe1
Add a long command description for secrets remove
2021-06-04 16:44:44 +01:00
Mislav Marohnić
7d8940b751
Merge pull request #3784 from browniebroke/fix/set-env-secret-description
...
Fix description for gh secret set --env option
2021-06-04 16:41:53 +02:00
Bruno Alla
4d46447eb3
Fix description for gh secret set --env option
2021-06-04 15:29:01 +01:00
Mislav Marohnić
ffebd23ba7
Merge pull request #3761 from cli/command-extensions
...
Experimental command extensions support
2021-06-03 19:13:38 +02:00
Mislav Marohnić
4bdddd72d3
Allow installing local extensions via symlinks
...
This also quits searching for local extensions in PATH.
2021-06-03 19:06:28 +02:00
Mislav Marohnić
83fcecef74
Merge pull request #3658 from chemotaxis/fix-pr-issue-body
...
Handle default body text when creating issues and pull requests
2021-06-03 18:36:45 +02:00
Mislav Marohnić
c2c691f444
Add test for our survey editor extension
2021-06-03 18:05:43 +02:00
chemotaxis
d974dbd338
Return default text if skipping the text editor when prompted
...
If we are allowed to skip the editor _and_ we want to append the default
text to the editor if we'd opened it, we just return the default text.
Co-Authored-By: Mislav Marohnić <mislav@github.com>
2021-06-03 14:50:13 +02:00
Mislav Marohnić
b166376211
Merge pull request #3774 from browniebroke/feat/remove-env-secret
...
Add support for removing environment secrets
2021-06-03 13:55:34 +02:00
Bruno Alla
4b79edf603
Add support for removing environment secrets
2021-06-03 08:51:39 +01:00
Nate Smith
a1cedfcd5c
Merge pull request #3741 from jack1142/patch-1
...
Include issue number alongside the title in `gh issue/pr view`
2021-06-02 13:53:48 -05:00
Nate Smith
4d90005817
Merge pull request #3772 from astroparam/escape-metacharacters
...
escape metacharacters in job name
2021-06-02 13:50:58 -05:00
Nate Smith
71547f4560
Merge pull request #3769 from browniebroke/feat/set-env-secrets
...
Add support for setting environments secrets
2021-06-02 13:35:08 -05:00
vilmibm
0931531e2f
collapse conditional
2021-06-02 13:27:19 -05:00
Sam
7388d1e2ff
Merge pull request #3768 from cli/xdg-data
...
Add support for XDG_DATA_HOME
2021-06-02 13:40:16 -04:00
Param Patidar
20f915d5ba
escape metacharacters in job name
2021-06-02 17:20:31 +00:00
Bruno Alla
32856c987d
Add ability to set environments secrets
2021-06-02 15:56:33 +01:00