Skip to content

Commit

Permalink
Remove unnecessary patch comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mzampetakis committed Jul 4, 2024
1 parent f4068e4 commit 88972ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Check [Changelog Format](#Changelog-Format) for more details about this changelo
### Changed

- Improve comments' content
- Removed unnecessary patch comment

## [v0.6.0] - 2024-04-26

Expand Down
7 changes: 1 addition & 6 deletions cmd/github-actions-adapter/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ func (gas *GitHubActionsServer) checkGitHubWorkflows(ctx context.Context, broker
Response: app.BrokerResponseFinished,
Result: app.BrokerResultSuccess,
}
if repoCommitWorkflowSetup == nil {
if brokerRequestMessage.PatchEvent != nil {
commentMessage := "No GiHub Actions Workflows found."
_ = gas.commentOnPatch(ctx, brokerRequestMessage, commentMessage, false)
}
} else {
if repoCommitWorkflowSetup != nil {
// Write 1st comment that we check GitHub for workflows
if brokerRequestMessage.PatchEvent != nil {
commentMessage := "Checking for GitHub Actions Workflows..."
Expand Down

0 comments on commit 88972ef

Please sign in to comment.