28 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
Oleksandr Redko 531d1cfb59 test: Fix test names and error messages (#4284) 2026-06-05 11:02:34 -04:00
Oleksandr Redko 3215e0320e test: Remove redundant Marshal tests (#4266) 2026-06-04 09:22:07 -04:00
Oleksandr Redko 233fe03e17 test: Use t.Context() instead of context.Background() (#3750) 2025-10-03 08:09:47 -04:00
Colby Williams 4f05dfb48f Add ListReleaseReactions and DeleteReleaseReaction (#3533) 2025-03-27 07:30:47 -04:00
Colby Williams 51d32d9407 feat!: Add ListReactionOptions to all ListxxReactions functions to enable filter by content (#3532)
BREAKING CHANGE: `ListCommentReactionOptions` => `ListReactionOptions` and all `List*Reactions` methods now use it.
2025-03-26 18:03:55 -04: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
Glenn Lewis e56d378b96 refactor: Do not call teardown manually in tests (#3296) 2024-10-01 11:52:30 -04:00
WillAbides fd33b81221 Fix linting (#2903) 2023-09-08 08:55:37 -04:00
Vivek Nathani e458912cae Add support for creating reaction for a release (#2196)
Fixes: #2194.
2021-11-08 08:47:07 -05:00
Sagar Sonwane 51e7595f87 fix: Updated comparisons in test files (#1875)
Replaced all reflect.DeepEqual comparisons in test files with cmp.Equal.

Fixes: #1851
2021-05-26 11:49:24 -07:00
Glenn Lewis 1cc6989e71 Improve reactions.go coverage (#1767) 2020-12-26 11:35:57 -05:00
Glenn Lewis 6de37d0063 Improve reactions.go coverage (#1715) 2020-12-25 19:20:49 -05:00
Glenn Lewis 460db534b8 Refactor context.Background in tests (#1672) 2020-12-16 05:58:28 -05:00
Simon Davis 4a2bf0671d Add rocket and eyes reactions (#1586) 2020-07-25 18:43:12 -04:00
Weslei Juan Novaes Pereira e5d8dd691c Support new "Delete Reactions" endpoints (#1451)
Fixes #1442.
2020-03-18 09:23:50 -04:00
Weslei Juan Novaes Pereira d913de9ce1 Add support to delete commit comment reaction (#1445) 2020-03-01 08:06:42 -05:00
Joshua Bezaleel Abednego 10891412a8 Add ListCommentReactionOptions to ListCommentReactions (#1282)
Fixes #1281.
2019-12-05 07:52:21 -05:00
thomaslanghorst e9c3f8894b Add test for JSON marshaling for Reaction and Reactions - relates to (#55) (#1324) 2019-10-29 09:33:15 -04:00
Rohit Upadhyay c722fc7cbd add support for Team Reactions API (#982)
Closes #877.
2018-08-30 19:26:53 -04:00
Shagun Khemka 29a3681d05 Remove custom media type for global node IDs (#925)
Fixes #919.
2018-08-10 11:23:19 -04:00
Anubha Kushwaha 630efeb435 Add NodeID to various endpoints (#836)
Helps #814.
2018-02-23 13:38:07 -08: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
Chris King df88dd9538 Remove global test variables in favor of local. (#766)
This refactor removes the global test variables used by all tests,
replacing them with local variables that are independent in each test.

This is better style, easier to read and be confident about correctness,
and allows tests to be parallelized in the future.

Resolves #762.
2017-12-02 14:34:41 -05:00
Dmitri Shuralyov 23d6cb9cac Add support for context package to all endpoints. (#529)
This is a large breaking API change. It is unavoidable and necessary
to resolve #526. This breaking change is part of bump to libraryVersion 3.

It adds ctx context.Context as first parameter to all endpoint methods,
including Do.

Updating for this API change should be easy and the compiler will help
catch instances that need to be updated. For example:

	main.go:193: not enough arguments in call to gh.Activity.MarkRepositoryNotificationsRead
		have (string, string, time.Time)
		want (context.Context, string, string, time.Time)
	...

You should pass the available context as first parameter. If your code
does not have context.Context available and you want to maintain previous
normal behavior, use context.Background(). Don't pass nil context; use
context.TODO() instead if you wish to delay figuring out the best context
to use. Then you can address the TODO at a later time.

Refer to documentation of package context at https://godoc.org/context
for more information.

This commit also changes ./tests/fields to use context.Background()
instead of deprecated oauth2.NoContext.

Resolves #526.
2017-02-20 16:05:42 -05:00
Dmitri Shuralyov 66d9f2f653 Update Reactions API (preview) for breaking change.
Reactions API now includes user information.

See https://developer.github.com/changes/2016-06-07-reactions-api-update/.

Fixes #364.
Updates #356.
2016-06-07 23:49:24 -07:00
Glenn Lewis 09a37d57ac add support for Reactions API
Fixes #356.

Change-Id: Iecc8d7d7c11a8ce9ed38c6d024683815495cb8b4
2016-05-14 12:28:10 -07:00