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

add a endpoint that always fails and a default endpoint #875

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

jdkandersson
Copy link
Contributor

Applicable spec: N/A

Overview

Introduces a new endpoint that always returns a failure response to be used for testing and a default endpoint that can be used for any other events.

Rationale

Artificially generating a failure in repo-policy-compliance is complex, the new endpoint makes it easy to simulate a failure.The default endpoint can be used for any other events so that we can support all GitHub events.

Module Changes

Introduced new endpoints to the flask blueprint

Checklist

  • The contributing guide was applied
  • The documentation is generated using src-docs
  • The PR is tagged with appropriate label (urgent, trivial, complex)
  • Version has been incremented

@jdkandersson jdkandersson requested a review from a team as a code owner November 29, 2023 02:42
@jdkandersson jdkandersson merged commit 4d40c01 into main Nov 29, 2023
6 checks passed
@jdkandersson jdkandersson deleted the always-fail-endpoint branch November 29, 2023 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants