41 Commits
Author SHA1 Message Date
Jam Balaya e754d2c70d refactor!: Pass the Projects v2 item body types by value and rename them to ...Request (#4609)
BREAKING CHANGE: `AddProjectItemOptions` and `UpdateProjectItemOptions` are renamed to `AddProjectItemRequest` and `UpdateProjectItemRequest` and passed by value; `AddProjectItemRequest.Type` is no longer a pointer; `UpdateProjectItemOptions.Archived` is removed.
2026-10-12 15:38:37 -04:00
Ajay Kemparaj f9fec07de4 feat: Require Go 1.26 and use new(expr) for pointer literals (#4481) 2026-08-28 12:18:49 -04:00
Glenn Lewis 92c4fb92fe chore: Bump golang-ci-lint version to v2.13.1 (#4463) 2026-08-20 13:43:22 -04:00
Jam Balaya 227adb57e0 feat: Add remaining Projects v2 endpoints (#4319) 2026-07-18 09:08:55 -04:00
Glenn Lewis 595de3d4b8 chore: Replace time.Date with referenceTime (#4325) 2026-06-24 15:42:55 -04:00
Oleksandr Redko 2801b4b352 test: Refactor tests for ProjectV2Item.UnmarshalJSON (#4323) 2026-06-23 12:58:05 -04:00
Oleksandr Redko f53fbae913 test: Replace &x variables with inline Ptr(value) calls (#4289) 2026-06-10 09:33:24 -04:00
Oleksandr Redko e4ea9e72c1 test: Use testJSONBody helper for request body assertions (#4283) 2026-06-05 09:27:14 -04:00
Oleksandr Redko 3215e0320e test: Remove redundant Marshal tests (#4266) 2026-06-04 09:22:07 -04:00
Oleksandr Redko d472d0844b fix: Use value receiver for MarshalJSON (#4211) 2026-05-14 17:16:06 -04:00
Glenn Lewis 71958fb26f fix!: Pass url struct tags by value instead of by reference (#3991)
BREAKING CHANGE: Many `*Options` structs now pass `omitempty` URL struct fields by value instead of by reference.
2026-02-11 14:07:37 -05:00
Tom Elliott e10040dccd fix!: Add support for missing attributes in ProjectsV2 API (#3888) 2025-12-19 15:19:25 -05:00
Jonathan 8657c38bfe fix!: Fix field selection and bugs in ProjectsV2 GET endpoints (#3809)
BREAKING CHANGE: `UpdateProjectItemOptions.Field` is now `[]*ProjectV2FieldUpdate`.
2025-11-11 21:27:35 -05:00
Jonathan 2b239f2dc6 feat!: Add support for project items CRUD and project fields read operations (#3793) 2025-11-03 07:07:06 -05:00
Glenn Lewis d94f5c90a6 Fix breakages caused by merge (#3781) 2025-10-14 09:44:25 -04:00
JoannaaKL 590596afd7 Add ProjectsService (#3718) 2025-10-14 08:02:55 -04:00
Glenn Lewis 550ecbe014 feat!: Remove Project (classic) support (#3380)
BREAKING CHANGE: All support for "Project (classic)" is removed and `Project` responses are replaced by `ProjectV2` (renamed from `ProjectsV2`).

Fixes: #3367.
2024-12-11 08:44:55 -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
Oleksandr Redko 139eec8358 refactor: Remove unneeded strings.Join calls (#3317) 2024-10-08 08:30:47 -04: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
Dariusz Porowski b9139050d6 Change ProjectOptions (Public to Private) and Project struct fields (#2111)
Fixes: #2110
2021-12-03 09:43:23 -05:00
Glenn Lewis 34be973ec2 Make test names consistent (#2002) 2021-07-16 07:08:20 -04:00
Sagar Sonwane babe74888d Add test cases for JSON resource marshaling (#2001) 2021-07-15 18:30:43 -04: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 0d5b0d9852 Improve projects.go coverage (#1707) 2020-12-25 19:34:36 -05:00
Glenn Lewis 460db534b8 Refactor context.Background in tests (#1672) 2020-12-16 05:58:28 -05:00
Palash Nigam 9650f9402d tests: Replace all occurences of acceptHeaders with wantAcceptHeaders (#1088) 2019-01-03 11:09:22 -08:00
Palash Nigam 19111bc65f projects_test.go: Add TestProject_marshall function
Related to: #55
2019-01-03 10:06:55 -08:00
Palash Nigam dcd9d6d5ca Add support for Preview organization projects (#1082)
Fixes #884.
2018-12-28 10:20:52 -05:00
Marwan Sulaiman 08dbadce1a Introduce Go modules and remove support for Go 1.8 (#985) 2018-08-27 11:32:26 -04:00
Radek Simko d8bee75667 projects: Add missing fields to struct (#969)
Helps #884.
2018-08-13 08:20:17 -04:00
Shagun Khemka 29a3681d05 Remove custom media type for global node IDs (#925)
Fixes #919.
2018-08-10 11:23:19 -04:00
Sanket Payghan e1be32f26e Project card archiving (#953)
Fixes #941.
2018-07-23 11:29:27 -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
Eli Uriegas 0f6d3ce15e Add ProjectOptions.State field. (#746)
State is an optional parameter when updating projects. It gives
the ability to open/close projects via UpdateProject method.

GitHub API docs: https://developer.github.com/v3/projects/#update-a-project
2017-10-12 23:05:41 -04: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
Lucas Alcantara 905f04725b changed to point to new Projects API
Created new service ProjectsService and removed methods in repos_projects that belong to ProjectsService.

Minor tweaks by @gmlewis following review.

Fixes #461.
Closes #467.

Change-Id: I8b85ff6e716151b505c843c905534bd5fe8257ae
2016-11-09 16:18:48 -08:00