Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

expose release notes url #383

Merged
merged 4 commits into from Sep 8, 2017
Merged

expose release notes url #383

merged 4 commits into from Sep 8, 2017

Conversation

epeee
Copy link
Contributor

@epeee epeee commented Sep 5, 2017

in order to be able to log the release notes url (see ##364).

I already did some local testing:

Release shipped!
- Files in Bintray: https://dl.bintray.com/shipkit-bootstrap/bootstrap/org/shipkit/bootstrap/ep/shipkit-bootstrap/0.0.3
- Bintray repository: https://bintray.com/shipkit-bootstrap/bootstrap/maven/0.0.3
- Release notes: https://github.com/mockito/shipkit-bootstrap/blob/master/docs/release-notes.md

Copy link
Member

@mockitoguy mockitoguy left a comment

Choose a reason for hiding this comment

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

Thank you! Please consider my feedback.

* @return a link to the generated release notes file hosted on Github.
*/
public String getReleaseNotesUrl(String branch) {
return getGitHubUrl() + "/" + getGitHubRepository() + "/blob/" + branch + "/" + getProject().relativePath(getReleaseNotesFile());
Copy link
Member

Choose a reason for hiding this comment

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

Nice new property!

Let's push all the implementation to the "UpdateReleaseNotes" class. This way, the public API types have only a reason to change when public API changes!

@@ -129,6 +129,13 @@ public String getGitHubRepository() {
}

/**
* @return a link to the generated release notes file hosted on Github.
*/
public String getReleaseNotesUrl(String branch) {
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if this is unit testable easily. If so, let's a add a test. String concat is a complexity worth unit testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, indeed, we should add a test. I will do so.

@epeee epeee merged commit 998b1cf into master Sep 8, 2017
@epeee epeee deleted the ep3 branch September 8, 2017 05:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants