diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-09-08 23:01:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 23:01:19 +0800 |
commit | 9c0a3532a4765263f279caeabd7f696372ce1d1f (patch) | |
tree | 4ed801ef304d923617af7733a6966f166bebc80e /models/actions | |
parent | ffa4949eaaf645995c5a20cd302d0256417b97ed (diff) | |
download | gitea-9c0a3532a4765263f279caeabd7f696372ce1d1f.tar.gz gitea-9c0a3532a4765263f279caeabd7f696372ce1d1f.zip |
Add a new column schedule_id for action_run to track (#26975)
Fix #26971
And the UI now will display it's scheduled but not triggered by a push.
<img width="954" alt="图片"
src="https://github.com/go-gitea/gitea/assets/81045/d211845c-457e-4c3e-af1f-a0d654d3f365">
Diffstat (limited to 'models/actions')
-rw-r--r-- | models/actions/run.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/actions/run.go b/models/actions/run.go index 4853afc15b..8078613fb8 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -35,7 +35,8 @@ type ActionRun struct { Index int64 `xorm:"index unique(repo_index)"` // a unique number for each run of a repository TriggerUserID int64 `xorm:"index"` TriggerUser *user_model.User `xorm:"-"` - Ref string `xorm:"index"` // the commit/tag/… that caused the run + ScheduleID int64 + Ref string `xorm:"index"` // the commit/tag/… that caused the run 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 |