diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-12-12 11:28:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 19:28:23 +0000 |
commit | 6370d2fb93a5ee897b82969ca30a9feb33667714 (patch) | |
tree | 5f2414f66869e5680feb1f12dc71e71e5a1ec544 /models/actions | |
parent | c9487a755b742fd2257f57cec1ead3f4c71174d7 (diff) | |
download | gitea-6370d2fb93a5ee897b82969ca30a9feb33667714.tar.gz gitea-6370d2fb93a5ee897b82969ca30a9feb33667714.zip |
Detect whether action view branch was deleted (#32764)
Fix #32761
![图片](https://github.com/user-attachments/assets/a5a7eef8-0fea-4242-b199-1b0b73d9bbdb)
Diffstat (limited to 'models/actions')
-rw-r--r-- | models/actions/run.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/actions/run.go b/models/actions/run.go index 732fb48bb9..f40bc1eb3d 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -37,6 +37,7 @@ type ActionRun struct { TriggerUser *user_model.User `xorm:"-"` ScheduleID int64 Ref string `xorm:"index"` // the commit/tag/… that caused the run + IsRefDeleted bool `xorm:"-"` CommitSHA string IsForkPullRequest bool // If this is triggered by a PR from a forked repository or an untrusted user, we need to check if it is approved and limit permissions when running the workflow. NeedApproval bool // may need approval if it's a fork pull request |