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
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
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
Seito Tanaka
e523d50176
Add support for editing last issue/pr comment ( #6384 )
2022-10-18 08:10:12 +00:00
Natthakit Susanthitanon
bb25202054
Add headRefOid to PullRequestFields
2022-10-07 16:16:15 +07:00
Nate Smith
99e76a709f
Merge pull request #6292 from lpessoa/lp-checks
...
feat: adding checks at GH PR view
2022-10-06 14:27:38 -05:00
Chris Westra
4daac49917
Remove released feature flag
...
`branch_for_issue_api` is no longer in the dotcom codebase so we can remove it from here
2022-10-05 07:45:15 -04:00
Chris Westra
48f527fdd3
Show repo url for linked branches in tty
2022-09-26 14:39:04 -04:00
Eng Zer Jun
471cbea4fa
test: use t.Setenv to set env vars in tests ( #6333 )
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-09-26 08:46:02 +00:00
Ariel Deitcher
49f6b20d3d
Add undo option to pr ready command to convert PR to draft ( #5995 )
2022-09-21 19:00:13 +00:00
lpessoa
e8767b9706
feat: adding checks at GH PR view
...
Fixes #6117
Adding checks to PR view as a new line along with changes information.
Isolated 'status' display logic into a shared method in order to reuse it in 'view'.
Updated existing 'view' tests.
TODO: add new tests for PRs with checks.
2022-09-16 13:56:10 -03:00
Chris Westra
0073de4927
Revert accidental queries_pr change
2022-09-16 12:14:14 -04:00
Chris Westra
76d975524e
Add feature detection query
2022-09-16 12:13:22 -04:00
Chris Westra
6f0bf82696
Properly check for omitted name param, fix stubs
2022-09-16 10:41:10 -04:00
Mislav Marohnić
cfb7e66d2b
Merge pull request #6260 from cli/fix-branch-delete
...
Fix deleting remote branches with `#` in their name
2022-09-15 11:06:04 +02:00
Chris Westra
1f26eb6899
Merge branch 'trunk' into create-linked-branch-command
2022-09-14 16:28:54 -04:00
Chris Westra
79783162f4
self-review cleanup
2022-09-14 16:26:49 -04:00
Chris Westra
bc72d6b983
Omit name param from mutation when blank
...
As it currently sits the backend won't ignore the param. I'll be looking to
add a PR for this but for now we'll remove it.
2022-09-14 14:54:43 -04:00
Mislav Marohnić
1e295607d7
Fix deleting remote branches with # in their name
2022-09-14 16:19:33 +02:00
Sam Coe
e14d14cef2
Add support for issue state reason ( #6245 )
2022-09-14 12:39:15 +04:00
Chris Westra
ac4fc388bf
List linked branches works
2022-09-13 07:28:33 -04:00
Chris Westra
6248e62611
Use GraphQLQuery test helper
...
GraphQLMutation expects a single `input` variable
2022-09-12 11:28:49 -04:00
Chris Westra
e1b83496fa
Make sure struct fields are public
2022-09-12 10:30:38 -04:00
ffalor
e5b37ee661
add --required flag to gh pr checks ( #5648 )
2022-09-10 08:00:29 +00:00
Chris Westra
2e98e8a4a7
Get that test mostly working
2022-09-08 17:17:06 -04:00
Chris Westra
5f3f00f909
WIP
2022-09-08 10:04:12 -04:00
Chris Westra
7c7896859c
Add flag to features list
2022-09-08 10:02:00 -04:00
Chris Westra
0e1bae7be0
WIP
2022-09-06 17:04:37 -04:00
Chris Westra
152b861001
WIP
2022-09-01 16:36:48 -04:00
ffalor
665e4e3446
Add new commands issue pin and issue unpin ( #5597 )
2022-08-31 10:16:45 +00:00
Sam Coe
117929c57e
Always send GraphQL-Features: merge_queue with graphql requests
2022-08-18 21:50:00 +03:00
Sam Coe
45f1a71c8b
Remove all direct calls to shurcool-graphql
2022-08-18 21:40:41 +03:00
Mislav Marohnić
d21d388b8d
Restore old GH_DEBUG=1 behavior for HTTP logging ( #6054 )
...
- No HTTP bodies or headers are logged until `GH_DEBUG=api` is used.
- Logging to terminal now supports colorization.
2022-08-10 17:59:13 +02:00
Mislav Marohnić
92b7a30540
Merge pull request #5994 from cli/parse-remotes
...
Fix parsing base repo out of outdated git remotes
2022-07-26 12:20:18 +02:00
Sam Coe
2cdb9d34d4
Use SkipDefaultHeaders option ( #5996 )
2022-07-26 07:15:50 +02:00
Mislav Marohnić
e7029616cb
Fix parsing base repo out of outdated git remotes
...
If any of the repositories named by git remotes could not be found via
API lookup, a "could not resolve to a Repository" error would be thrown,
but the goal of the base repo logic was to ignore NOT_FOUND errors.
2022-07-25 20:17:32 +02:00
Mislav Marohnić
c22a85e2b5
Remove accidental caching from repo list and other commands
...
Any gh command that has invoked NewCachedHTTPClient has also
inadvertently enabled caching for the original `http.Client` due to the
nature that NewCachedHTTPClient mutates the original argument passed.
2022-07-14 19:10:32 +02:00
Sam Coe
9d70d62520
Set blank headers so they are not automatically resolved by go-gh ( #5935 )
2022-07-14 14:13:34 +02:00
Sam Coe
e5cf302ad8
Post go-gh integration cleanup ( #5933 )
2022-07-13 14:58:50 +02:00
Mislav Marohnić
dea1af1227
pr checks: avoid deduplicating same-named checks under different workflows ( #5919 )
2022-07-12 09:48:39 +00:00
Mislav Marohnić
5656296ade
repo fork: directly fork under the desired name
...
A new GitHub feature landed where the API client can specify the desired
name of the new fork. This avoids the necessity of subsequently having
to rename the forked repo after the fork operation has created one.
For backwards compatibility, the renaming logic is still here, but
activates only if the resulting repo name is not the desired name.
2022-07-11 13:54:58 +02:00
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00:00
Sam Coe
074ed50b8a
Integrate go-gh API package ( #5614 )
2022-06-23 04:05:31 +01: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
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
Ariel Deitcher
53a8737c87
pr merge: add support for Merge Queue
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-08 12:24:36 +02:00
Sam Coe
539b150833
Extract feature detection package ( #5494 )
2022-05-17 19:07:44 +00:00
Heath Stewart
5ed83e2b2a
Remove Stringer from ghrepo.Interface ( #5536 )
2022-04-28 08:58:34 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Heath Stewart
19a852ae9f
Add label clone command ( #5452 )
2022-04-25 18:13:22 +00:00