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

Resolved full name of release author in release blog #231

Merged
merged 2 commits into from
Oct 18, 2015
Merged

Conversation

phillipj
Copy link
Member

In our release blog posts, we want to display the full name of the dev who cut the release, instead of the github login such as rvagg or Fishrock123. This was proposed by @rvagg in #186 comment.

These changes fixes that by resolving the full name via github's API, based on their github login specified in the changelog.

Also did some refactoring of some hairy changelog regex matching, to something a bit less complex and readable.

Refs #156.

/cc @nodejs/release

@mikeal
Copy link
Contributor

mikeal commented Oct 11, 2015

Looks like there's a failure in the slug test.

@phillipj
Copy link
Member Author

Looks like there's a failure in the slug test.

Great! Didnt touch that code at all, and it passed after a couple of Travis restarts. Dont see any apparent reason for it to be unstable, we'll have keep an eye on that slug test.

@mikeal
Copy link
Contributor

mikeal commented Oct 11, 2015

weird, should probably log another issue for that test being flaky.

// matches a complete release section,
// support release sections with headers like:
// ## 2015-09-22, Version 4.1.1 (Stable), @rvagg
const rxSection = new RegExp(`## \\d{4}-\\d{2}-\\d{2}, Version ${version} \\(Stable\\)[\\s\\S]*?(?=## \\d{4})`)
Copy link
Member

Choose a reason for hiding this comment

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

We're going to need to extend this, it'll include "LTS" and "Maintenance" too. Perhaps just \\([^\\)]+\\) would do.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure thing! Just pushed an update.

@phillipj phillipj mentioned this pull request Oct 12, 2015
In our release blog posts, we want to display the
full name of the dev who cut the release, instead
of the github login such as `rvagg` or `Fishrock123`.

These changes fixes that by resolving the full name
via github's API, based on their github login
specified in the in the changelog.
Adds support for various version policies (ex Stable/LTS/etc)
aswell as version codenames (ex Argon).
@phillipj
Copy link
Member Author

@nodejs/release I just pushed an update to this PR, supporting version policy and codename aswell, as a response to #239.

Also removed version policy from the blog post slug, as I dont see the big value of it, other adding more complexity into this script. Agreed @nodejs/website?

@phillipj
Copy link
Member Author

Merging this now so author will be part of the next release post.

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.

3 participants