Jam Balaya
70b9759927
refactor!: Rename LockIssueOptions, PullRequestBranchUpdateOptions, and UserSuspendOptions to ...Request and pass them by value ( #4612 )
...
BREAKING CHANGE: `LockIssueOptions`, `PullRequestBranchUpdateOptions`, and `UserSuspendOptions` are renamed to `LockIssueRequest`, `UpdatePullRequestBranchRequest`, and `SuspendUserRequest` and are passed by value to `IssuesService.Lock`, `PullRequestsService.UpdateBranch`, and `UsersService.Suspend`; `LockIssueRequest.LockReason` is now `*string`.
2026-10-13 07:32:08 -04:00
KeelTrace
5ee8bf8ac7
docs: Deprecate singular assignee fields ( #4528 )
2026-09-08 09:44:51 -04:00
Yahia Mohamed
e21f24469b
feat: Add MergeAsync and GetMergeAsyncResult support ( #4491 )
2026-08-29 06:49:06 -04:00
Joel Jeske
248317c624
feat: Add Stack field to PullRequest for stacked pull requests ( #4423 )
2026-07-31 09:21:22 -04:00
Jam Balaya
f15206a0a1
refactor!: Rename NewPullRequest to CreatePullRequest and pass it by value ( #4395 )
...
BREAKING CHANGE: `NewPullRequest` is renamed to `CreatePullRequest`, `PullRequests.Create` now takes it by value, and `CreatePullRequest.Head` and `CreatePullRequest.Base` are now `string`.
2026-07-20 08:59:34 -04:00
Oleksandr Redko
3f47638460
refactor: Fix parameters in method endpoints ( #4300 )
2026-06-17 07:19:34 -04:00
Steve Hipwell
9fbf4bef19
feat!: Refactor request context ( #4151 )
...
BREAKING CHANGE: All internal calls now provide `Context` via the `Request` itself.
2026-04-24 14:45:31 -04:00
Oleksandr Redko
33cf038ac1
docs: Add apiVersion to GitHub API link ( #4147 )
2026-04-11 10:47:17 -04:00
Glenn Lewis
a2063a76fb
chore: Remove unnecessary use of new and &SomeStruct{} and add new extraneousnew custom linter ( #4106 )
2026-03-18 17:12:53 -04:00
Oleksandr Redko
025030e2dc
Return back preview headers for search; remove TODOs for custom headers ( #3824 )
2025-11-13 07:29:48 -05:00
Josh Soref
22f7fe37fb
Fix spelling issues ( #3792 )
2025-10-27 10:01:25 -04:00
Glenn Lewis
4505771989
Prefer %v over %d,%s and add fmtpercentv custom linter ( #3756 )
2025-10-05 21:39:53 -04:00
Roman Wu
2eec208059
Document upcoming changes to events payload ( #3667 )
2025-08-12 10:02:16 -04:00
Oleksandr Redko
a81b973f77
refactor: Fix gocritic.paramTypeCombine lint issues ( #3655 )
2025-07-28 11:26:12 -04:00
Evan Elias
24b0795da5
docs: Clarify ListPullRequestsWithCommit usage ( #3465 )
2025-02-05 19:14:09 -05:00
Alexis Couvreur
cbe65f0149
docs: Add clarifications for mergeable field in pull requests ( #3396 )
2025-01-30 15:44:27 -05:00
Oleksandr Redko
4cfd6bdc10
refactor: Enable perfsprint; fix appeared lint issues ( #3324 )
2024-10-11 08:59:20 -04:00
Kevin Burke
5f496dddb8
Add doc for NewPullRequest ( #3208 )
2024-07-16 13:32:12 -04:00
WillAbides
a54bc7da1d
Use metadata to reconcile go-github with GitHub's OpenAPI descriptions ( #2919 )
2023-11-03 10:26:59 -04:00
Rafael Aramizu Gomes
0c10d670aa
Adding missing field important to find branch in fork from same owner ( #2873 )
...
Fixes : #2872 .
2023-08-15 14:45:00 -04:00
nxya
9f7124cc09
Fix ListPullRequestsWithCommit option type ( #2822 )
...
Fixes : #2815 .
2023-07-03 09:25:52 -04:00
Victory Osikwemhe
cdecead485
Change all fields from time.Time to github.Timestamp ( #2646 )
2023-01-26 16:39:42 -05:00
Glenn Lewis
7a7a7f0943
Update URLs ( #2373 )
...
Fixes : #2360 .
2022-05-24 08:43:48 -04:00
Michael Meng
fef3638524
Update comment on ListPullRequestsWithCommit ( #2228 )
2021-12-14 19:50:30 -05:00
Sachin
a0bec87ef5
Add auto_merge field in PullRequest struct ( #1896 )
2021-07-08 13:30:21 -04:00
Ben
221a3b6b78
Update docs links ( #1842 )
2021-04-01 06:57:22 -04:00
John Liu
c99a09ea58
Support empty string as a commit message when merging a pull request ( #1816 )
...
Fixes : #1815 .
2021-03-05 10:39:27 -05:00
Glenn Lewis
a64f3a6d08
Update URLs ( #1659 )
2020-12-02 10:39:08 -05:00
Vikky Omkar
8e1859fece
Remove graduated GitHub v3 API preview headers ( #1618 )
...
Fixes : #1616 .
2020-09-17 11:18:51 -04:00
Glenn Lewis
159b448168
Switch to new GitHub v3 API Documentation website ( #1621 )
2020-09-01 18:30:47 -04:00
Piyush Chugh
9be567b093
Add comment about Repositories.Create and creation delay ( #1613 )
...
Fixes : #1585
2020-08-21 22:58:41 -04:00
Glenn Lewis
0683ca03b4
Update URLs ( #1558 )
2020-06-24 19:27:03 -04:00
Taketoshi Fujiwara
ecafd129f0
Swap documentation for commitMessage and commitTitle of func (*PullRequestsService) Merge ( #1557 )
2020-06-16 08:43:31 -04:00
Weslei Juan Moser Pereira
4ca0dcc089
Remove graduated custom media headers ( #1493 )
...
Fixes #1488 .
2020-04-19 16:02:45 -04:00
Glenn Lewis
259aa56b9e
Create tool to update and validate GitHub v3 API URLs ( #1477 )
...
Fixes #1476 .
2020-04-09 21:28:23 -04:00
Pratik Mallya
82c570e9f2
Allow empty commitMessage for merging pulls ( #1447 )
2020-03-01 08:05:08 -05:00
kadern0
69231319df
Change opt param to opts ( #1417 )
...
Fixes #1415 .
2020-02-09 20:01:54 -05:00
Vaibhav Singh
40fcc261cf
Remove custom preview headers from "graduated" APIs ( #1355 )
...
Fixes #1351 .
2019-12-26 10:09:21 -05:00
Emory Ruscus
85279f51b0
Fix 'Reqest' -> 'Request' (add back the 'u'). ( #1262 )
2019-09-07 20:06:59 -04:00
Dmitry Savintsev
51df1a01f9
Fix failure in closing PRs ( #1251 )
...
Fix an error in PullRequestsService.Edit when closing PRs
due to 'base' field being present together with
State = 'closed'. In this case the GitHub API v2.17.5
responds with error:
'Cannot change base branch of closed pull request'.
Fixes #1250 .
2019-09-07 20:03:16 -04:00
Carlos Tadeu Panato Junior
2e90302801
Add missing fields to PullRequest: locked and rebaseable ( #1269 )
...
Fixes #1264 .
2019-08-30 19:37:48 -04:00
Shrikrishna Singh
361256aa6e
Add preview support to list branches or PRs for a commit ( #1186 )
...
Fixes #1151 .
2019-06-10 16:18:44 -04:00
Wasim Thabraze
6a358807e1
Added update branch API ( #1187 )
...
Fixes #1183 .
2019-06-09 17:02:41 -04:00
David
c22c8e3046
Add draft field to NewPullRequest struct ( #1145 )
2019-04-05 15:58:05 -04:00
Joshua Bezaleel Abednego
4e1a504644
Add support for Draft Pull Requests Preview API
...
This change implements support for a preview of a new Draft Pull
Requests API, announced at
https://developer.github.com/changes/2019-02-14-draft-pull-requests/ .
• Add new media type constant.
• Use that media type in "list pull requests" and "get pull request"
endpoints.
• Add Draft struct field to the PullRequest struct.
The "create pull request" and "update pull request" endpoints don't set
the new media type yet, but that can be dealt with in a future change.
Fixes #1120 .
2019-02-15 12:35:18 -05:00
Felix Geisendörfer
fbfacb4e2b
Add missing PullRequest.ReviewComments field ( #1113 )
2019-02-06 21:19:41 -05:00
Palash Nigam
c40b4abe46
GitHub Signing API: Remove custom media type ( #1067 )
...
Fixes #761 .
2018-12-12 20:21:07 -05:00
Vladimir Rutsky
e64590964d
Add "all" as possible value for PullRequestListOptions.State ( #1038 )
...
According to [docs](https://developer.github.com/v3/pulls/#parameters ):
> Either open, closed, or all to filter by state. Default: open
2018-10-29 06:34:18 -07:00
JP Phillips
2c18347504
Add requested_teams to PullRequest struct ( #1003 )
2018-10-03 23:34:42 -04:00
Radliński Ignacy
3e48b156a3
Add links to pull request struct ( #1008 )
...
Fixes #1001 .
2018-09-24 12:01:07 -04:00