Skip to content

Commit

Permalink
add metadata to DependabotService.UpdateAlert
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollao-hc committed Nov 3, 2023
1 parent 6fcce1c commit 82aef03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion github/dependabot_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ func (s *DependabotService) GetRepoAlert(ctx context.Context, owner, repo string

// UpdateAlert updates a Dependabot alert.
//
// GitHub API docs: https://docs.github.com/en/rest/dependabot/alerts?apiVersion=2022-11-28#update-a-dependabot-alert
// GitHub API docs: https://docs.github.com/rest/dependabot/alerts#update-a-dependabot-alert
//
//meta:operation PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}
func (s *DependabotService) UpdateAlert(ctx context.Context, owner, repo string, number int, stateInfo *DependabotAlertState) (*DependabotAlert, *Response, error) {
url := fmt.Sprintf("repos/%v/%v/dependabot/alerts/%v", owner, repo, number)
req, err := s.client.NewRequest("PATCH", url, stateInfo)
Expand Down

0 comments on commit 82aef03

Please sign in to comment.