Skip to content

Commit

Permalink
Merge pull request #1306 from priyawadhwa/webhook
Browse files Browse the repository at this point in the history
remove docs-modifications label from issue instead of deleting the label
  • Loading branch information
balopat committed Nov 22, 2018
2 parents 09e67c1 + 20b78c7 commit 71db58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (g *Client) CommentOnPR(pr *github.PullRequestEvent, message string) error

// RemoveLabelFromPR removes label from pr
func (g *Client) RemoveLabelFromPR(pr *github.PullRequestEvent, label string) error {
_, err := g.Client.Issues.DeleteLabel(g.ctx, constants.GithubOwner, constants.GithubRepo, label)
_, err := g.Client.Issues.RemoveLabelForIssue(g.ctx, constants.GithubOwner, constants.GithubRepo, pr.GetNumber(), label)
if err != nil {
return errors.Wrap(err, "deleting label")
}
Expand Down

0 comments on commit 71db58c

Please sign in to comment.