32 Commits
Author SHA1 Message Date
Ajay Kemparaj f9fec07de4 feat: Require Go 1.26 and use new(expr) for pointer literals (#4481) 2026-08-28 12:18:49 -04:00
Jam Balaya 4d45b7c496 refactor!: Rename PullRequestReviewDismissalRequest to PullRequestDismissReviewRequest, add PullRequestSubmitReviewRequest, and pass review request bodies by value (#4406)
BREAKING CHANGE: `PullRequestReviewDismissalRequest` is now `PullRequestDismissReviewRequest` with non-pointer `Message` and `PullRequestsService.DismissReview` takes it by value; `PullRequestsService.SubmitReview` now takes a new `PullRequestSubmitReviewRequest`.
2026-07-31 14:34:51 -04:00
James Maguire a3951f5143 refactor!: Rename EditLabel to UpdateLabel, Split Label into CreateLabelRequest & UpdateLabelRequest and pass by value (#4400)
BREAKING CHANGE: `IssuesService.CreateLabel` now takes `CreateLabelRequest` by value (with required non-pointer `Name`); `IssuesService.EditLabel` renamed to `UpdateLabel`, taking an `UpdateLabelRequest` by value.
2026-07-22 14:32:59 -04:00
Jam Balaya c9f5330506 refactor!: Pass release params by value and rename EditRelease to UpdateRelease (#4329)
BREAKING CHANGE: `CreateRelease` & `UpdateRelease` now take `RepositoryRelease` by value; `EditRelease` is renamed to `UpdateRelease`.
2026-06-26 09:07:48 -04:00
Mohamad Al-Zawahreh 3a3eaaf0db perf: Optimize Stringify allocations (~3x faster) (#3914) 2026-01-23 19:53:57 -05:00
Glenn Lewis 4505771989 Prefer %v over %d,%s and add fmtpercentv custom linter (#3756) 2025-10-05 21:39:53 -04:00
Oleksandr Redko f68f136d3c chore: Format code with gofumpt (#3689) 2025-09-22 14:16:47 -04:00
Oleksandr Redko 3c5408e78f chore: Use any instead of interface{} (#3584) 2025-06-03 09:33:46 -04:00
Changyong Um cc0e642101 feat: Add support for sub-issue (#3580) 2025-05-26 15:49:44 -04:00
Glenn Lewis 07b0446d8a chore!: Add sliceofpointers custom linter (#3447)
BREAKING CHANGE: `ListOAuthApps` now returns `([]*OAuthApp, error)` instead of `([]OAuthApp, error)`.
2025-01-21 21:34:14 -05:00
Oleksandr Redko f66ed85955 feat: Deprecate and replace Bool,Int,Int64,String with Ptr using generics (#3355) 2024-12-10 21:36:09 -05:00
Glenn Lewis dc884c26ca Add t.Parallel to unit tests (#3297) 2024-10-05 07:29:05 -04:00
Andreas Deininger e9f52699f5 Fix typos (#3048) 2024-01-11 14:34:43 -05:00
Glenn Lewis c28ccfdd06 Deprecate WebHookPayload (#2032)
Fixes: #303 .
2022-03-25 18:56:25 -04:00
Glenn Lewis a19996a596 Support map type in go generate (#1867)
Fixes: #1866.
2021-05-07 09:33:07 -04:00
Andy Grunwald 319dcffb51 Repository.Hook: Add missing fields Type, Name, TestURL, PingURL and LastResponse (#1790) 2021-02-03 19:42:27 -05:00
Aynur Zulkarnaev bf4e928148 Implement support for actions workflow runs (#1449) 2020-03-02 19:52:19 -05:00
Glenn Lewis f55b50f381 Restrict request params of CreateHook for repos and orgs to known subset (#1018)
Fixes #1015.
2018-09-25 20:45:59 -04:00
Oleg Kovalov 530b7c552e Fix named consts (#962) 2018-08-03 21:59:44 -04: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
Dmitri Shuralyov 4a42a1def4 Change Label.String behavior to use Stringify like all others. (#640)
The previous behavior was inconsistent, and not documented, so no one
could actually rely on it. If custom printing behavior is needed, it
should be done in a helper func or a wrapper type that implements
desired printing behavior, and documents it.

Fixes #595.
2017-05-12 13:52:50 -04:00
Dmitri Shuralyov 493b233dca Use single space after period. (#549)
This commit was largely generated by:

	perl -i -npe 's,^(\s*// .+[a-z]\.)  +([A-Z]),$1 $2,' $(git grep -l -E '^\s*//(.+\.)  +([A-Z])')

With additional manual followups to catch the few remaining missed
cases, such as inside non-go files, spaces after question marks, etc.

Fixes #548.
2017-02-15 16:14:26 -05:00
Sahil Dua 27c7c32b6d Add support for new pull request review API
Fixes #495.
Closes #497.

Change-Id: If266972e7a20f83afaa842d54c22846bbb435328
2017-02-02 16:04:50 -08:00
Ali fa53bea7f7 Add support for getting repository README files. 2014-01-28 12:15:06 -08:00
Ondrej Kupka cab36cd2eb GitService: Add support for refs
This commit adds support for Git refs.

Listing of refs does not support sub-namespaces.
2013-12-02 11:23:09 -08:00
Zach Latta 15e40efde8 Add Gitignore support. 2013-11-04 09:34:57 -08:00
Thomas Bruyelle 3b87a64f0d add support for Release assets
Includes Repositories.ListReleaseAssets, Repositories.GetReleaseAsset,
Repositories.EditReleaseAsset, Repositories.DeleteReleaseAsset,
Repositories.UploadReleaseAsset.
2013-10-21 08:41:22 -07:00
Will Norris 4b4aed3472 sort types in String() test 2013-09-05 13:25:17 -07:00
Konrad Malawski 1eaf38380d implement repos_commits API 2013-09-04 16:29:31 -07:00
Will Norris c5a98b0c3a add tests for String() funcs on data types 2013-08-22 15:43:48 -07:00
Will Norris 303846dd04 redeclare String() as value method throughout 2013-08-21 15:17:53 -07:00
Will Norris 8f77def830 add Stringify function
This provides somewhat reasonable string representations of GitHub
structs.  This is specifically designed for this library and takes a
number of shortcuts where it can, so is not suitable as a general
purpose solution.  That said, I am exporting this function because it is
useful for things like printing out slices of GitHub structs, as can be
seen in examples/example.go.

I am certainly open to suggestions for what exactly the stringified
output should look like.  Currently, I think I've found a reasonable
compromise between fmt's "%v" and "%s" output.
2013-08-20 13:39:59 -07:00