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

WebUI: Check for existing tag #202

Merged
merged 3 commits into from Jul 11, 2019
Merged

WebUI: Check for existing tag #202

merged 3 commits into from Jul 11, 2019

Conversation

nkottary
Copy link
Member

@nkottary nkottary commented Jul 10, 2019

Address #194 for WebUI

@codecov-io
Copy link

codecov-io commented Jul 10, 2019

Codecov Report

Merging #202 into master will decrease coverage by 0.23%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/webui/routes/register.jl 47.22% <0%> (-2.78%) ⬇️
src/webui/gitutils.jl 11.01% <0%> (-2.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e64278...c05fe35. Read the comment docs.

Copy link
Member

@christopher-dG christopher-dG left a 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
Copy link
Member

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.

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
false
return false

Copy link
Member Author

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.

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
false
return false

@nkottary nkottary closed this Jul 11, 2019
@nkottary nkottary reopened this Jul 11, 2019
@nkottary
Copy link
Member Author

I don't know why the test is failing: ERROR: empty intersection between GitForge@0.1.3 and project compatibility 0.1.4-*

@fredrikekre
Copy link
Member

You probably need to update the manifest.

@nkottary nkottary merged commit 169ae57 into master Jul 11, 2019
@nkottary nkottary deleted the nk/check branch July 11, 2019 09:37
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.

None yet

4 participants