gitea-sonarqube-bot/internal
justusbunsi 525fa03065
Centralize API response handling
Currently, all API handler functions take care of response code and
message on their own. This leads to a huge injection chain for HTTP
related objects.

This refactors the API to consistently return response code and message
to the API main entrypoint where the response is created and sent.

Now, SonarQube and Gitea will get a response at the very end of any bot
action for one request. SonarQube has a timeout of 10 seconds, which may
be reached due to network latency. We'll see.

Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-07-11 15:24:43 +02:00
..
actions Refactor action validation 2021-10-17 11:12:50 +02:00
api Centralize API response handling 2022-07-11 15:24:43 +02:00
clients Allow pull request naming pattern customization (#28) 2022-06-18 14:03:56 +02:00
settings Allow pull request naming pattern customization (#28) 2022-06-18 14:03:56 +02:00
webhooks Allow pull request naming pattern customization (#28) 2022-06-18 14:03:56 +02:00