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

feat(writer): Add links to PRs numbers in commits text #31

Merged
merged 2 commits into from
Nov 20, 2017

Conversation

altJake
Copy link
Contributor

@altJake altJake commented Nov 17, 2017

closes #30

  • treats PRs and issues urls the same, as GitHub does this itself and reroutes between '.../issues/' and '.../pull/' when it is required

@altJake altJake changed the title feat(writer): Add links to PRs numbers in commits test feat(writer): Add links to PRs numbers in commits text Nov 17, 2017
Copy link
Contributor

@robinjoseph08 robinjoseph08 left a comment

Choose a reason for hiding this comment

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

One tiny change, but overall, LGTM!

lib/writer.js Outdated
@@ -18,6 +18,8 @@ var TYPES = {
test: 'Tests'
};

var PR_REGEX = new RegExp(/#[1-9][\d]*/g);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit pick: could you move this constant in between DEFAULT_TYPE and TYPES to keep them all together and alphabetized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@robinjoseph08 robinjoseph08 merged commit 7015d43 into lob:master Nov 20, 2017
@robinjoseph08
Copy link
Contributor

I just published v1.6.0 so you can start using it now. Thanks again for the contribution @altJake!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Make the pull request number a link to the PR
2 participants