Commit graph

123 commits

Author SHA1 Message Date
justusbunsi dfffd17223
Open comment link in new tab
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2021-10-12 14:09:24 +02:00
justusbunsi f187d4f8c6
Allow customizing metrics fetch from SonarQube
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2021-10-12 13:14:17 +02:00
justusbunsi a2d68ccc12
Add screenshots
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2021-10-11 20:02:12 +02:00
justusbunsi 208a866a15
Restructure README
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2021-10-11 19:48:01 +02:00
justusbunsi 48b522d348
Fix bot name
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2021-10-11 19:09:29 +02:00
justusbunsi b8c86aaab8
Update docs
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 17:39:21 +02:00
justusbunsi ec781a5a29
Add helm chart
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 16:09:13 +02:00
justusbunsi 0bd65d8a1d
Allow override the provided revision
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 14:21:17 +02:00
justusbunsi bb156f95bf
Log response code for non-working status update
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 11:28:32 +02:00
justusbunsi 105ba59b4d
Add raw release instructions
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 08:52:35 +02:00
justusbunsi 48cb8a0ede
Handle favicon requests
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 08:50:50 +02:00
justusbunsi a51520382e
Add production Dockerfile
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-11 08:42:11 +02:00
justusbunsi 8678f13911
Update bot insights
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 19:47:54 +02:00
justusbunsi ae55eaf97c
Prevent bot from interpreting unknown actions
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 19:45:57 +02:00
justusbunsi e28e524456
Post analysis details on bot action comment
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 19:39:33 +02:00
justusbunsi 369edfcfae
Fetch actual quality gate status on bot comment
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 19:01:48 +02:00
justusbunsi 895dfe92e0
Add pending status on PR synchronize event
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 17:59:28 +02:00
justusbunsi 56f7a1081b
Implement skeleton for different webhook handler
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 17:32:25 +02:00
justusbunsi 5b72ee7bc0
Differ between several gitea events
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 17:17:29 +02:00
justusbunsi 952e094e8f
Restructure todos and possible improvements
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 17:03:09 +02:00
justusbunsi de575605f9
Move sonarqube sdk files
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 16:43:37 +02:00
justusbunsi bf453c6c43
Centralize bot actions
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 16:39:26 +02:00
justusbunsi c99925abb3
Fix URL for status
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 16:29:29 +02:00
justusbunsi c6bc0d71ff
Move gitea sdk files
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 16:28:59 +02:00
justusbunsi 46c5ab2aec
Rename webhook_handler to api
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 16:18:14 +02:00
justusbunsi e20b1469d3
Reduce UpdateStatus parameter mess
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 16:14:09 +02:00
justusbunsi 57fc8054b2
Bot listens to actions via Gitea comments
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 15:58:03 +02:00
justusbunsi 3bab05bb71
Fix required header for SonarQube endpoint
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-10 13:07:10 +02:00
justusbunsi 8458815efe
Update dependencies
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 21:50:58 +02:00
justusbunsi 2873eb5159
Switch to gin-gonic as server
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 21:48:51 +02:00
justusbunsi 7c9fec06f9
Bump go version to 1.17
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 21:26:47 +02:00
justusbunsi 758e3c75cc
Switch to another default port
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 21:23:40 +02:00
justusbunsi 45fbfed51b
Split settings structs into separate files
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 21:10:30 +02:00
justusbunsi aac7f5743d
Fix tests
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 21:09:23 +02:00
justusbunsi c114d8ee0f
Care about documentation
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 20:46:12 +02:00
justusbunsi 34dbd4f609
Add status-check to PR/commit
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 20:45:21 +02:00
justusbunsi d24bfdad4f
Replace violations with code_smells
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 20:44:09 +02:00
justusbunsi e608a8f969
Retrieve actual data from SonarQube for comment
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-09 18:09:54 +02:00
justusbunsi c3566d9208
Update dependencies
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-03 19:36:05 +02:00
justusbunsi 3e65387cd7
Bump Gitea-SDK to 1.15.0
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-03 17:57:52 +02:00
justusbunsi a1990a60f4
Format code
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-03 17:57:22 +02:00
justusbunsi 16f545f179
Fix failing tests
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-10-03 17:49:23 +02:00
justusbunsi 1dab92385f
Fetch raw measures from SonarQube
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-07-12 16:58:48 +02:00
justusbunsi a0f2684029
Add Gitea SDK to actually post a comment
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-07-12 12:58:06 +02:00
justusbunsi 2af7ba3da1
Make application runnable
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-07-11 15:17:03 +02:00
justusbunsi 630519f63a
Fix endpoint documentation
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-07-11 15:16:18 +02:00
justusbunsi 230e85875b
Parse pull request index from SQ branch name
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-07-11 14:44:10 +02:00
justusbunsi b7fa2b77f9
Add tests for PR-only handling
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-07-11 12:28:00 +02:00
justusbunsi 5082e5d3f3
Use OOP-ish style for SonarQube webhook handling
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-06-29 12:27:01 +02:00
justusbunsi 86a644f31f
Use OOP-ish style for configuration loading
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-06-29 10:29:20 +02:00