From 3baade77c06fa64ad4441e71c2fb136b70780d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mra=C4=8Dko?= Date: Thu, 17 Mar 2022 15:02:04 +0100 Subject: [PATCH] TRIVIAL change requested changes --- .goreleaser.yml | 6 +++--- README.md | 2 +- pkg/scm/github.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ffc3498..0c679b2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,6 @@ dockers: - goos: linux goarch: amd64 image_templates: - - "herlon214/sonarqube-pr-issues:latest" - - "herlon214/sonarqube-pr-issues:{{ .Tag }}" - - "herlon214/sonarqube-pr-issues:v{{ .Major }}" \ No newline at end of file + - "jamf/sonarqube-pr-issues:latest" + - "jamf/sonarqube-pr-issues:{{ .Tag }}" + - "jamf/sonarqube-pr-issues:v{{ .Major }}" \ No newline at end of file diff --git a/README.md b/README.md index 9f07e2d..8bcf38c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # :robot: Sonarqube PR Issues Review [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Go Report Card][report-card-img]][report-card] -Simple Webhook for Sonarqube which publishes the issues found in the PR as review requesting changes. +Simple Webhook for Sonarqube which publishes the issues found in the PR. ![Review screenshot](assets/review_screenshot.png) diff --git a/pkg/scm/github.go b/pkg/scm/github.go index 9f198e7..54e5c3e 100644 --- a/pkg/scm/github.go +++ b/pkg/scm/github.go @@ -44,7 +44,7 @@ func NewGithub(ctx context.Context, sonar *sonarqube.Sonarqube, token string) *G // PublishIssuesReviewFor publishes a review with a comment for each issue func (g *Github) PublishIssuesReviewFor(ctx context.Context, issues []sonarqube.Issue, pr *sonarqube.PullRequest) error { - event := "REQUEST_CHANGES" + event := "COMMENT" comments := make([]*github.DraftReviewComment, 0) // Create a comment for each issue