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

Use non-conflicting route for GitHub actions #4010

Closed
wants to merge 1 commit into from

Conversation

past
Copy link
Member

@past past commented Sep 20, 2024

This should fix #4009. According to mux docs "Routes are tested in the order they were added to the router. If two routes match, the first one wins." The route /api/checks/github-actions is picked up by the handler for route /api/checks/{commit}. Presumably the route addition happens as packages are initialized in lexicographic order and checks comes before ghactions.

Tested locally with cURL, but #3981 would have helped here.

@gsnedders
Copy link
Member

This makes this differ to the Azure Pipelines endpoint, which feels surprising. Maybe we should just reorder them in webapp/web/main.go?

@past
Copy link
Member Author

past commented Sep 24, 2024

Oh, that would probably work, too.

@past
Copy link
Member Author

past commented Sep 24, 2024

Oh, that would probably work, too.

Turns out it doesn't and I don't know why.

@past
Copy link
Member Author

past commented Sep 25, 2024

Closed in favor of #4017.

@past past closed this Sep 25, 2024
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.

ghactions.notifyHandler doesn't get called for requests to /api/checks/github-actions
2 participants