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
WebUI: Check for existing tag #202
Conversation
Codecov Report
@@ Coverage Diff @@
## master #202 +/- ##
==========================================
- Coverage 13.4% 13.16% -0.24%
==========================================
Files 27 27
Lines 1216 1238 +22
==========================================
Hits 163 163
- Misses 1053 1075 +22
Continue to review full report at Codecov.
|
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.
Looks good, just minor stuff.
end | ||
|
||
function tagexists(forge::GitLabAPI, project::GitLab.Project, tag::VersionNumber) | ||
# Using Registrator's token here instead of the users. This is |
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.
FYI pretty much every non-write GitLab interaction is done with the Registrator API key instead of the user's, so this comment isn't really necessary in this particular spot. I thought I had it written down in a comment somewhere but perhaps not.
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.
I left it as a note to myself when I have to support registration for private packages.
end | ||
v == string(tag) && return true | ||
end | ||
false |
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.
false | |
return false |
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.
I typically use return
to return and break out of a block. If its the last line I avoid using an extra keyword.
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.
Sure, makes sense.
end | ||
v == string(tag) && return true | ||
end | ||
false |
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.
false | |
return false |
I don't know why the test is failing: |
You probably need to update the manifest. |
Address #194 for WebUI