-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add workflow_run api + webhook #33964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…stopherHX/33964-1
…stopherHX/33964-1
* add workflow_run action trigger + webhook test * loads the workflow and fill the name key if present
…stopherHX/33964-1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test cases has been added, so moving out of draft after several weeks.
Now e2e usage case verification with external tools like keda are outstanding.
models/actions/run_job_list.go
Outdated
if opts.OwnerID > 0 { | ||
cond = cond.And(builder.Eq{"owner_id": opts.OwnerID}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously unused, we need an inner join for this condition
models/actions/run_list.go
Outdated
if opts.OwnerID > 0 { | ||
cond = cond.And(builder.Eq{"owner_id": opts.OwnerID}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously unused, we need an inner join for this condition
func (opts FindRunOptions) ToOrders() string { | ||
return "`id` DESC" | ||
return "`action_run`.`id` DESC" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inner join requires mentioning the table name
Implements
Fixes
runs/<run>
part to align with apiRefactoring
TODO
Closes #23670
Closes #23796
Closes #24898
Replaces #28047 and is much more complete