Alexander Seiler
218f29f296
Correct some typos
2023-04-21 03:51:31 +02:00
Sam Coe
dbc2f05124
Update go-gh to v2 ( #7299 )
...
* Update go-gh
* Update code for go-gh v2
2023-04-16 15:34:23 +10:00
Sam Coe
5191c502e9
Only replace control sequences ( #7168 )
2023-03-15 08:24:20 +11:00
Anupam Kumar
88cc4d2531
Add variable set command ( #6928 )
2023-03-13 03:01:38 +00:00
Sam Coe
78ffa73f44
Use transform.Transformer interface for ascii sanitization ( #7117 )
2023-03-13 08:36:46 +11:00
Sam Coe
44b02188e2
Properly handle C1 control sequences ( #7079 )
2023-03-07 12:44:30 +11:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00: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
Josh Soref
e6d6427704
Support Fork with Default Branch Only
2023-02-07 10:00:39 -05:00
Sam Coe
0dd7e9c36f
Fix panic in ASCII sanitization ( #6956 )
2023-02-06 15:24:57 +01:00
Sam Coe
ced071feae
Sanitize ANSII control characters returned from the server ( #6916 )
2023-02-01 21:19:30 +00:00
Mislav Marohnić
d2f3e89ad3
Fix ignoring ProjectsV2-specific errors for GHES
2023-01-27 18:08:56 +01:00
azu
700bda3ad8
Add gh repo edit --enable-discussions ( #6903 )
...
* Add gh repo edit --enable-discussions
* Add hasDiscussionsEnabled to JSON fields for repos
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-24 18:13:05 +01:00
Mislav Marohnić
d49e1ff021
Fix flakey TestUpdateProjectV2Items ( #6909 )
...
Restructure test to not depend on the order in which Go maps are iterated.
2023-01-24 18:01:25 +01:00
Ilya Yatsishin
179e9c256d
Add projectsV2 support to issue create, issue edit, pr create, and pr edit ( #6735 )
...
Co-authored-by: pshevche <pavel.shevchenko.95@gmail.com>
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2023-01-19 22:13:09 +00:00
Mislav Marohnić
8b3e5c1554
Fix mergedBy JSON export for PRs
2023-01-18 21:41:07 +01:00
Mislav Marohnić
638f6ccc30
Fix JSON payload for PR review author
...
We do not query for bot/user distinction when fetching PR reviews, so we can't output that information either.
2023-01-18 21:33:29 +01:00
Mislav Marohnić
8d82a96349
Fix fetching issue/PR comments
...
The "Author" struct was too overloaded in different types of queries that treat struct fields in incompatible ways. This change defines a simpler CommentAuthor struct for use in comments until we can figure out how to query `... on User` information for comments too.
2022-12-23 17:14:06 +01:00
Nate Smith
1f85a92463
Merge pull request #5333 from chemotaxis/gh-issue-lock
...
Add `lock` and `unlock` commands for issues and pull requests
2022-12-20 18:04:34 -06:00
vilmibm
5a6b4ce934
Merge remote-tracking branch 'origin/trunk' into gh-issue-lock
2022-12-16 10:10:59 -08:00
Mislav Marohnić
36ffbe18de
Improve looking up draft releases by tag name
...
This changes the FetchRelease implementation to look up draft releases directly using by its pending tag name, as opposed to resorting to the Releases list API which is backed by Elastic Search and thus suffers replication lag after the creation of a draft release.
Bonus: all release lookup functions now accept a context for cancellation.
2022-12-14 21:24:08 +01:00
Mislav Marohnić
e58bf212fe
Fix API client code docs
2022-12-14 21:22:05 +01:00
Nate Smith
4fd56ac7c1
Merge pull request #5049 from hirasawayuki/add-more-author-infomation
...
Add author information in `pr list` JSON output
2022-12-08 16:19:18 -06:00
vilmibm
acaebe8a1a
export is_bot from issue list
2022-12-08 14:10:29 -08:00
Skip Baney
06360429de
Prompt for owner when interactively creating repos ( #6578 )
2022-12-08 08:52:36 +02:00
Natthakit Susanthitanon
33779630da
Exclude the current user from reviewers when creating pr ( #6464 )
2022-12-08 08:51:35 +02:00
vilmibm
b37e29e643
fix test
2022-12-07 12:18:14 -08:00
vilmibm
84a15d0943
Merge remote-tracking branch 'origin/trunk' into add-more-author-infomation
2022-12-07 11:54:55 -08:00
Mislav Marohnić
40cfa90222
Expose commit OID in PR reviews JSON export
2022-11-21 17:25:44 +01:00
chemotaxis
8cdff1327c
Merge remote-tracking branch 'upstream/trunk' into gh-issue-lock
...
Resolved conflicts mainly around pinning comments.
2022-11-13 19:12:19 -05:00
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