Skip to content

Commit

Permalink
Load changed files for closed PR (#3067)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 authored Dec 29, 2023
1 parent 567e833 commit 72ae882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/forge/gitea/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ func (c *Gitea) Hook(ctx context.Context, r *http.Request) (*model.Repo, *model.
return nil, nil, err
}

if pipeline != nil && pipeline.Event == model.EventPull && len(pipeline.ChangedFiles) == 0 {
if pipeline != nil && (pipeline.Event == model.EventPull || pipeline.Event == model.EventPullClosed) && len(pipeline.ChangedFiles) == 0 {
index, err := strconv.ParseInt(strings.Split(pipeline.Ref, "/")[2], 10, 64)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit 72ae882

Please sign in to comment.