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

Methods to get latest release and release by tag name #147

Merged
merged 1 commit into from
Aug 18, 2018
Merged

Methods to get latest release and release by tag name #147

merged 1 commit into from
Aug 18, 2018

Conversation

nickelc
Copy link
Contributor

@nickelc nickelc commented Aug 18, 2018

closes #51 and adds more doc comments and a releases example

///
/// See the [github docs](https://developer.github.com/v3/repos/releases/#get-the-latest-release)
/// for more information.
pub fn get_latest(&self) -> Future<Release> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have super strong opinions about this but for rustyness sake there are some suggestions in the rust style guide that suggest avoiding get_ prefixes

If you don't feel strongly about holding onto this name, what do you think about just latest and something like by_tag for_tag or with_tag below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i actually thought about these variants for a moment after i opened the PR

More doc comments & releases example
@softprops softprops merged commit 928caf1 into softprops:master Aug 18, 2018
@softprops
Copy link
Owner

Thanks I'm going to include these changes in this weekend's release

@nickelc nickelc deleted the releases branch August 18, 2018 22:48
@softprops
Copy link
Owner

these changes are now published in 0.4.10

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.

Add methods to get latest release and release by tag name
2 participants