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

Manual build trigger button (#45) resolved #80

Closed
wants to merge 1 commit into from

Conversation

cervenkam
Copy link
Collaborator

Closes #45

The button is added directly to the template

Copy link
Collaborator

@mpsonntag mpsonntag left a comment

Choose a reason for hiding this comment

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

Using the /pubvalidate route does not work with private repositories.

Further the public validation does not link the latest validation and therefore a triggered validation run would not show up on the results page which is what the issue tries to solve.

Most probably a new route is required that checks the permissions internally, runs the required validation and links the results appropriately.

<td class="name four wide"><form action="/pubvalidate" method="post">
<input type="hidden" name="validator" value="{{$hookname}}" />
<input type="hidden" name="repopath" value="{{$.FullName}}" />
<input type="submit" value="Validate once" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please change text to "Run validation"

@@ -84,6 +84,11 @@ const RepoPage = `
{{range $hookname, $hook := .Hooks}}
<tr>
<td class="name text bold four wide"><a href="">{{$hookname | ToUpper}}</a></td>
<td class="name four wide"><form action="/pubvalidate" method="post">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using the /pubvalidate route does not work with private repositories.

Closes G-Node#45

The button is added directly to the template
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2567213961

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • 13 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 52.252%

Files with Coverage Reduction New Missed Lines %
internal/web/validate.go 13 55.71%
Totals Coverage Status
Change from base Build 2554490774: -0.2%
Covered Lines: 673
Relevant Lines: 1288

💛 - Coveralls

@cervenkam cervenkam marked this pull request as draft June 27, 2022 09:32
@cervenkam
Copy link
Collaborator Author

This PR is closed for now due to the fact that private repositories are in this state hard to validate.

@cervenkam cervenkam closed this Jun 29, 2022
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.

Manual build trigger button
3 participants