diff --git a/docs/content/docs/guide/matchingevents.md b/docs/content/docs/guide/matchingevents.md index 5f86b3d67..77af2c790 100644 --- a/docs/content/docs/guide/matchingevents.md +++ b/docs/content/docs/guide/matchingevents.md @@ -214,6 +214,7 @@ PipelineRun. ## Matching PipelineRun to a Pull Request labels {{< tech_preview "Matching PipelineRun to a Pull-Request label" >}} +{{< support_matrix github_app="true" github_webhook="true" gitea="true" gitlab="true" bitbucket_cloud="false" bitbucket_server="false" >}} Using the annotation `pipelinesascode.tekton.dev/on-label`, you can match a PipelineRun to a Pull Request label. For example, if you want to match the diff --git a/pkg/provider/github/status.go b/pkg/provider/github/status.go index 4783669fc..6fbff6702 100644 --- a/pkg/provider/github/status.go +++ b/pkg/provider/github/status.go @@ -328,8 +328,8 @@ func (v *Provider) createStatusCommit(ctx context.Context, runevent *info.Event, if opscomments.IsAnyOpsEventType(eventType.String()) { eventType = triggertype.PullRequest } - if (status.Status == "completed" || - (status.Status == "queued" && status.Title == pendingApproval)) && + + if (status.Status == "completed" || (status.Status == "queued" && status.Title == pendingApproval)) && status.Text != "" && eventType == triggertype.PullRequest { _, _, err = v.Client.Issues.CreateComment(ctx, runevent.Organization, runevent.Repository, runevent.PullRequestNumber,