Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change PublicRepositoryRequest ctor to take long for "since" parameter #1485

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

ryangribble
Copy link
Contributor

We changed all repositoryId parameters from int to long in #1445 and missed this one.

The ctor on PublicRepositoryRequest takes a "since" parameter of type int.

If anyone is passing in a repository.Id (now a long) into this ctor it will result in a compilation error.

This PR adds a new ctor to PublicRepositoryRequest taking "since" parameter as a long, and obsoletes the old ctor. I thought about simpl keeping the int ctor around indefinitely but I think in general we want to encourage/inform users that repositoryId (and any related uses, such as the "Since" parameter) are now long across the board, so I decided to start the process of removing the old int parameter via obsoletion.

Also updated any tests that use the ctor to use the new one instead...

… long, and obsolete the old ctor that uses an int

Update tests to pass long datatype
@ryangribble ryangribble mentioned this pull request Oct 3, 2016
9 tasks
@shiftkey shiftkey merged commit 0ff6f08 into octokit:master Oct 4, 2016
@ryangribble ryangribble deleted the repositoryid-since branch January 15, 2017 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants