Skip to content

Commit

Permalink
Allow manual PR number (#2465)
Browse files Browse the repository at this point in the history
Resolves #2464
  • Loading branch information
cep21 committed Aug 22, 2022
1 parent 674378a commit 71233ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/controllers/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type APIRequest struct {
Repository string `validate:"required"`
Ref string `validate:"required"`
Type string `validate:"required"`
PR int
Projects []string
Paths []struct {
Directory string
Expand Down Expand Up @@ -214,7 +215,7 @@ func (a *APIController) apiParseAndValidate(r *http.Request) (*APIRequest, *comm
return &request, &command.Context{
HeadRepo: baseRepo,
Pull: models.PullRequest{
Num: 0,
Num: request.PR,
BaseBranch: request.Ref,
HeadBranch: request.Ref,
HeadCommit: request.Ref,
Expand Down

0 comments on commit 71233ef

Please sign in to comment.