Set analysis status on PR creation
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
This commit is contained in:
parent
dfffd17223
commit
90581744ff
|
@ -81,6 +81,7 @@ See [SonarQube docs](https://docs.sonarqube.org/latest/project-administration/we
|
||||||
- [x] Official image for containerized hosting
|
- [x] Official image for containerized hosting
|
||||||
- [x] Helm chart for Kubernetes
|
- [x] Helm chart for Kubernetes
|
||||||
- [ ] Publish Helm chart + docker image
|
- [ ] Publish Helm chart + docker image
|
||||||
|
- [x] Respect `"action": "opened"` PR event for updating status check
|
||||||
|
|
||||||
### Possible improvements
|
### Possible improvements
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,8 @@ func (w *PullWebhook) Validate() error {
|
||||||
return fmt.Errorf("ignore hook for non-configured project '%s/%s'", owner, name)
|
return fmt.Errorf("ignore hook for non-configured project '%s/%s'", owner, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
if w.Action != "synchronized" {
|
if w.Action != "synchronized" && w.Action != "opened" {
|
||||||
return fmt.Errorf("ignore hook for action others than synchronized")
|
return fmt.Errorf("ignore hook for action others than 'opened' or 'synchronized'")
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Repository = settings.GiteaRepository{
|
w.Repository = settings.GiteaRepository{
|
||||||
|
|
Loading…
Reference in a new issue