94 Commits
Author SHA1 Message Date
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
MarcHuang168 35ceb6aa77 feat: Add IsEnabled field to IssueType (#4504) 2026-09-03 10:36:39 -04:00
James Maguire 9549a7a99a refactor!: Split IssueRequest into CreateIssueRequest & UpdateIssueRequest and pass by value (#4396)
BREAKING CHANGE: `IssueService.Edit` is renamed to `IssueService.Update`.
2026-07-21 07:21:51 -04:00
Tommaso Moro 728cdb1d01 feat: Add Issue Dependencies API support (#4130) 2026-06-22 12:56:06 -04:00
Oleksandr Redko 3f47638460 refactor: Fix parameters in method endpoints (#4300) 2026-06-17 07:19:34 -04:00
Iulia Bejan a5eca73837 fix!: Align IssueFieldValues with schema (#4207)
BREAKING CHANGE: `IssueRequest.IssueFieldValues` type is changed.
2026-05-12 20:18:11 -07:00
Iulia Bejan 6b805b3de0 feat: Add issue field values support for write and read (#4200) 2026-05-08 06:38:33 -07: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 a2d86b0d3e fix!: Fix opts for methods listing issues and sub-issues (#4016)
BREAKING CHANGE: Split `IssuesService.List` into `IssuesService.ListAllIssues` and `IssuesService.ListUserIssues`. `IssuesService.ListByOrg` now accepts `IssueListByOrgOptions`. `SubIssueService.ListByIssue` now accepts `ListOptions`.
2026-02-17 09:19:33 -05:00
Shivam Kumar e0c53bf40f fix!: Fix pagination support for IssuesService list methods (#3984)
BREAKING CHANGE: `ListCursorOptions` is removed from `IssueListOptions`.
2026-02-11 14:00:59 -05:00
Oleksandr Redko d14f4f3d8d docs: Improve displaying GitHub API links on pkg.go.dev (#3845) 2025-12-01 14:55:37 -05:00
Svyatoslav Pidgorny ae3fff0df7 Add ParentIssueURL field to Issue struct (#3841) 2025-11-19 20:19:04 -05:00
Oleksandr Redko 025030e2dc Return back preview headers for search; remove TODOs for custom headers (#3824) 2025-11-13 07:29:48 -05: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
Oleksandr Redko c21f2bed95 chore: Correct typos in comments and tests error messages (#3604) 2025-06-25 12:29:42 -04:00
Jan Berger 6a2c098e78 Add ListCursorOptions to list Issues methods (#3570) 2025-05-08 07:58:15 -04:00
Carlos Tadeu Panato Junior c9e1ad0d3b Add issue Type to IssueRequest (#3567) 2025-04-30 08:27:35 -04:00
Carlos Tadeu Panato Junior 8a800cc0ee Add new fields for IssueType (#3451) 2025-01-24 08:41:56 -05:00
Tatsuhiro Tsujikawa e7a3cc7ba3 Add MergedAt field to PullRequestLinks (#3053)
Fixes: #3052.
2024-01-19 08:11:29 -05:00
Casey 942692ee97 Add Draft to Issue type (#2997)
Fixes: #2996.
2023-11-22 22:03:06 -05:00
WillAbides a54bc7da1d Use metadata to reconcile go-github with GitHub's OpenAPI descriptions (#2919) 2023-11-03 10:26:59 -04:00
WillAbides 66ed84deba Lint godoc comments (#2972) 2023-10-23 15:28:03 -04:00
Victory Osikwemhe cdecead485 Change all fields from time.Time to github.Timestamp (#2646) 2023-01-26 16:39:42 -05:00
ganeshkumarsv 6c430acced Add new field for issue state reason (#2583) 2022-11-29 15:19:24 -05:00
Parker Moore 404bf94e5d Add state_reason to IssuesService.Edit (#2395)
Fixes: #2393.
2022-06-23 22:53:08 -04:00
Glenn Lewis 7a7a7f0943 Update URLs (#2373)
Fixes: #2360.
2022-05-24 08:43:48 -04:00
Allan Guwatudde 07267ab1f6 Add new RemoveMilestone method on IssuesService (#2195)
Fixes: #236.
2021-11-03 20:18:58 -04: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
Glenn Lewis 259aa56b9e Create tool to update and validate GitHub v3 API URLs (#1477)
Fixes #1476.
2020-04-09 21:28:23 -04:00
2BFL 34cb1d623f Fix doc URL (#1475) 2020-03-28 09:39:46 -04:00
Vikky Omkar 5baa174a7d Added AuthorAssociation field in issue struct (#1462)
Fixes #1458.
2020-03-18 09:14:24 -04:00
Glenn Lewis e4b511744f Add pointers to structs in slices (#1443) 2020-02-28 09:37:37 -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
Brandon Cook 3dd825b438 Fixes wrong Accept media type that was causing a 500 (#977) 2018-08-29 16:28:52 -04:00
Sandeep Sukhani aeb5071237 Added support for preview Lock Reason (#828) (#910)
Fixes #828.
2018-08-10 11:54:05 -04:00
Shagun Khemka 29a3681d05 Remove custom media type for global node IDs (#925)
Fixes #919.
2018-08-10 11:23:19 -04:00
Guillaume Jacquet 64f8f21e24 Add support for label description
Closes #866
2018-04-16 07:45:54 -07:00
Kshitij Saraogi e48060a28f Migrate IDs to int64 type (#816)
A helper function "Int64" is also implemented to assist the migration of
unit tests.

Refer #597.
2018-01-25 10:59:44 -08:00
Anubha Kushwaha cbeb72eaf5 Support preview GraphQL API v4 Node IDs. (#817)
Add NodeID field to objects that now expose it.

Reference: https://developer.github.com/changes/2017-12-19-graphql-node-id/.
2018-01-09 16:35:34 -05:00
Arthur Mello 64c38a12bf Add missing URL's data to Issue type
Retrieve following data fields returned for Issues from GitHub API:
- repository_url;
- comments_url;
- events_url;
- labels_url.

Fixes #739.
2017-10-04 09:59:39 -07:00
Elliott Beach 3a960f412f Add Issue.IsPullRequest helper method. (#737)
Add a helper method for checking whether a github.Issue represents
an issue or PR by using the approach documented in GitHub API docs at
https://developer.github.com/v3/issues/#list-issues, which is to check
whether PullRequestLinks is nil or not.

Using this method is optional, and previous code that manually checks
whether PullRequestLinks is nil continues to be valid. The helper may
be used for convenience or to improve readability of user code.

Fix minor spelling issues in comments.
2017-10-02 17:05:52 -04:00
Gnahz 553fda401c Add Issue.ClosedBy field. (#577)
Also add issue test case in tests/field utility.

Fixes #574.
2017-03-08 19:26:06 -05:00