Commit graph

676 commits

Author SHA1 Message Date
EBIBO
04b4122e61
Update api/queries_branch_issue_reference.go
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-08-18 09:25:30 +08:00
benebsiny
216c283e03 Merge branch 'trunk' into cli-9496 2024-08-17 12:05:17 +08:00
benebsiny
56e1cdae9e fix behavior for issue develop -b non-exist-branch 2024-08-17 12:04:09 +08:00
Yukai Chou
d7b8ecf33d Unify use of tab indent in non-test source files
Found with
    rg '(^ | \t|\t )' -g '*.go' -g '!*_test.go'

Mixed indent exceptions:
- wrapped long list items with extra 2-space indent
- code snippets using space indent
- commented code lines having "\t*// \t+" prefix
2024-08-03 00:35:30 +08:00
William Martin
8a0d361bac Expose fullDatabaseId for PR json export 2024-07-23 13:23:10 +02:00
Babak K. Shandiz
feb5aa55b9
Add separate type for PullRequest.Mergeable field
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 15:28:27 +01:00
Babak K. Shandiz
c70479ac5d
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update 2024-07-16 14:57:33 +01:00
William Martin
172a9de2fe Ensure PR does not panic when stateReason is requested 2024-07-11 16:30:35 +02:00
Babak K. Shandiz
8ac5ad7244
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update 2024-06-07 15:40:28 +01:00
nobe4
140edf7327
feat: add support for stateReason in gh pr view (#9080) 2024-05-21 19:54:56 +02:00
Babak K. Shandiz
78091c4aff
Fix query parameter name
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-09 20:42:46 +01:00
Babak K. Shandiz
8f8c775cee
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-07 00:20:32 +01:00
Babak K. Shandiz
cec2ced42f
Improve query variable names
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-07 00:19:30 +01:00
Babak K. Shandiz
acef17d6cb
Add ComparePullRequestBaseBranchWith function
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-06 23:57:20 +01:00
Andy Feller
d611ed4bf0 Add missing title field for projectv2 2024-04-29 07:42:53 -04:00
Babak K. Shandiz
985dee0e05
Match query fields with ProjectV2 type
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-04-26 22:59:01 +01:00
Babak K. Shandiz
b294f6b3e1
Include URL in ProjectV2 type
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-26 21:06:33 +01:00
Babak K. Shandiz
9e1f9d6101
Include projectsV2 in GraphQL query
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-26 21:06:29 +01:00
Babak K. Shandiz
7de10f0bdf
Add UpdatePullRequestBranch method
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-04-10 19:20:20 +01:00
Naoya Yasuda
5d79a95a32
Upgrade to Go 1.22 (#8836) 2024-04-02 14:34:59 +02:00
benebsiny
9225102a67 Merge branch 'trunk' of github.com:cli/cli into trunk 2024-02-15 18:33:37 +08:00
William Martin
c02b410327 Update fork failure error and add test 2024-01-29 16:27:29 +01:00
Chris Roat
39215d9316 Add more detail to fork failure message 2024-01-29 16:27:29 +01:00
benebsiny
b44ed7433d Refactor OrganizationTeam 2024-01-26 00:21:52 +08:00
benebsiny
7fd91f593c fix wording, move conditional blocks to functions, and add api to retrieve the ID of a team 2024-01-24 14:37:28 +08:00
Sam Coe
024cb939af Rename authCfg.Token to authCfg.ActiveToken and authCfg.SetToken to authCfg.SetActiveToken 2023-12-06 14:06:28 +01:00
William Martin
e775bc64b8 Fix PR and Issue list
Separate the GQL and JSON decoded types that we use for queries.
2023-11-27 17:00:10 +01:00
Sam Coe
e843349a13 Extract Project Status into fragment to fix unmarshal error 2023-11-27 15:01:22 +01:00
William Martin
65d63e1bc9 Add test for ProjectV2Item query Status column 2023-11-27 10:53:19 +01:00
Sam Coe
3f37d7e372
Fix query for project item status field (#8332) 2023-11-14 17:27:50 +01:00
Sam Coe
ebcf3a1022
Set default Accept header for api command when one is not specified (#8303) 2023-11-06 15:22:32 +01:00
William Martin
8a9eb7bfc2 Add tests for issue and PR project items query building 2023-11-01 17:40:29 +01:00
Matthew Ruggio
83418cba54 export status optionId and name for pull request projectItems 2023-10-16 21:06:30 -05:00
Matthew Ruggio
8a868779a6 Add status column for each projectItem object.
This should be comparable to classic project's notion of column, although not _exactly_ the same since new projects are much more configurable.
2023-10-16 21:06:30 -05:00
Jun Nishimura
508065b72d
Add verbose flag to api cmd (#7826) 2023-08-25 09:37:37 -07:00
Sam Coe
8079d18efd
Use asciisanitization package from go-gh (#7745) 2023-07-24 10:50:33 -07:00
Sam Coe
ad283cff72
Fix pr checks command for GHES versions older than 3.9 (#7725) 2023-07-19 09:25:07 -07:00
Sam Coe
5d82a9553c
Sanitize file contents before displaying them (#7694) 2023-07-18 12:49:25 -07:00
Sam Coe
2a4160a3a3
Do not add auth token to redirect requests which do not have the same host as the inital request. (#7692) 2023-07-14 08:12:20 +09:00
nate smith
a889bfab20 Merge remote-tracking branch 'origin/trunk' into fix/error-on-no-browser 2023-07-10 15:29:17 -07:00
Nate Smith
fad105c471
Merge pull request #7656 from cli/fix-issue-develop
Fix issue develop command
2023-07-10 12:59:15 -07:00
Sam Coe
47d94f8ce7
Add --branch-repo flag 2023-07-10 08:53:44 +09:00
Johannes Grumböck
8a7d80864b
Add check description to pr checks output (#7451) 2023-07-06 14:38:44 +09:00
Sam Coe
b59f3dc29f
Rewrite issue develop command to fix numerous issues 2023-07-03 14:18:25 +09:00
Shion Ichikawa
5e8cc40f6c
Automatically fetch new branches created with issue develop (#7589) 2023-07-03 11:21:42 +09:00
Sam Coe
d46f47e430
Don't deduplicate checks that stem from different events (#7618) 2023-06-27 09:12:52 +09:00
William Martin
e2dc66baea Reorder Check and Status States enums variants alphabetically 2023-05-23 17:36:20 +02:00
William Martin
dad5f25748 Use go enums for status and check status graphql enums 2023-05-23 17:22:56 +02:00
William Martin
04ecac9a6f Rework state parsing for CheckRuns and StatusContexts 2023-05-23 16:51:08 +02:00
William Martin
90e680f21a Split CheckRunState and StatusState parsing 2023-05-23 15:59:12 +02:00