Skip to content

validate tags given in --between-tags option#93

Merged
lalitkapoor merged 6 commits intolalitkapoor:masterfrom
TheJavaGuy:master
Jan 4, 2021
Merged

validate tags given in --between-tags option#93
lalitkapoor merged 6 commits intolalitkapoor:masterfrom
TheJavaGuy:master

Conversation

@TheJavaGuy
Copy link
Copy Markdown
Contributor

For validation/parsing of command-line option, I opted for printing to console.error regardless of --verbose option because otherwise user might be confused why the program stopped. For checking whether tags really exist, I opted for throw new Error(...) because it will be caught by top level catch inside task function. Maybe there is a more elegant solution but I couldn't find it.

This PR doesn't actually close issue #84 because supporting raw git repo seems out of scope for @octokit/core which is used to fetch info from GitHub repos.

@TheJavaGuy TheJavaGuy mentioned this pull request Jan 2, 2021
@lalitkapoor
Copy link
Copy Markdown
Owner

lalitkapoor commented Jan 3, 2021

@TheJavaGuy Hi, Thank you for submitting this! I did a little clean up here. Would you mind giving it a go before I merge. Thanks! (It has been pushed to master on your fork, so feel free to just pull there and give it a go)

@TheJavaGuy
Copy link
Copy Markdown
Contributor Author

@lalitkapoor Thank you, it looks good. The only imprecision is, if a user has ... as a part of a tag name we don't tell him what is the problem exactly. But I think it's a rare case and I can live with it so I'd merge this PR.

@lalitkapoor lalitkapoor merged commit 1127ea4 into lalitkapoor:master Jan 4, 2021
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.

2 participants