-
Notifications
You must be signed in to change notification settings - Fork 93
Skip tags that are not Semantically Versioned #77
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
Skip tags that are not Semantically Versioned #77
Conversation
brikis98
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Could you add an automated test to validate this behavior?
I've added To fully be confident this is always working, I'd suggest adding a couple of non-SemVer tags to both of those repositories; the expectedNumTags values I've set shouldn't change, but having a "bad" tag in there will then hit the code that skips those tags. |
Nice, thanks! I added a non-semantic tag to both repos that looks like this: https://github.com/gruntwork-io/fetch-test-public/releases/tag/non-semantic |
brikis98
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM! Could you pull in the latest from master, and I'll kick off tests?
|
Done, and my local tests are passing until I hit the private repos. |
brikis98
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM! I'll kick off tests now.
|
Tests passed! Merging now. |
This closes #75
I validated each tag, discarding any that aren't SemVer.
For testing, I suggest that a non-SemVer tag be added to the public and private test repositories
github_test.go.fetch/github_test.go
Lines 25 to 28 in 4bec67f