fix: ctx for NewCommitStatus

This commit is contained in:
Jason Song 2023-01-09 14:01:09 +08:00
parent f414fd6141
commit f114a9c80a
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func CreateCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) er
return fmt.Errorf("GetLatestCommitStatus: %w", err)
}
if err := git_model.NewCommitStatus(git_model.NewCommitStatusOptions{
if err := git_model.NewCommitStatus(ctx, git_model.NewCommitStatusOptions{
Repo: repo,
SHA: payload.HeadCommit.ID,
Creator: creator,