Skip to content

Commit

Permalink
Don't count closed PRs as merged PRs. (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Apr 5, 2022
1 parent 4dfc714 commit aa81cf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/webhooks/github/actions/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ func (w *WebhookActions) ProcessPullRequestEvent(payload *ghwebhooks.PullRequest
if payload.Repository.Private {
return nil
}
if !payload.PullRequest.Merged {
return nil
}

params := &releaseDrafterParams{
RepositoryName: payload.Repository.Name,
Expand Down

0 comments on commit aa81cf3

Please sign in to comment.