-
Notifications
You must be signed in to change notification settings - Fork 905
feat: add system workflow webhook events #4710
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
Merged
leozhang2018
merged 13 commits into
koderover:main
from
huanghongbo-hhb:feat/system-webhook-workflow-events-main
May 26, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
cffcda8
feat: add system workflow webhook events
huanghongbo-hhb 47c6938
fix: include release plan in workflow webhook payload
huanghongbo-hhb 0dea0f5
chore: remove accidental workflow hook test file
huanghongbo-hhb b494792
fix: limit workflow hook config to enterprise edition
huanghongbo-hhb 058fac8
fix: remove workflow webhook creator phone field
huanghongbo-hhb 68a633b
fix: handle empty workflow hook settings
huanghongbo-hhb abbd69a
fix: move workflow hook event to top-level event
huanghongbo-hhb 27d5fc5
Revert "fix: move workflow hook event to top-level event"
huanghongbo-hhb 778c17f
fix: promote webhook event to top-level field
huanghongbo-hhb c578fa5
fix: avoid duplicate workflow complete hooks on cancel
huanghongbo-hhb c28bb90
fix: resend workflow hooks on retry
huanghongbo-hhb 075b628
fix: resend workflow hooks after manual execute
huanghongbo-hhb c602c67
fix: skip start hook for manual execute resume
huanghongbo-hhb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
pkg/microservice/aslan/core/common/service/workflowcontroller/system_hook.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| Copyright 2025 The KodeRover Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package workflowcontroller | ||
|
|
||
| import ( | ||
| commonmodels "github.com/koderover/zadig/v2/pkg/microservice/aslan/core/common/repository/models" | ||
| commonrepo "github.com/koderover/zadig/v2/pkg/microservice/aslan/core/common/repository/mongodb" | ||
| "github.com/koderover/zadig/v2/pkg/microservice/aslan/core/common/service/instantmessage" | ||
| ) | ||
|
|
||
| func SendSystemWorkflowHook(task *commonmodels.WorkflowTask, hookEvent commonmodels.WorkflowHookEvent) error { | ||
| hookSetting, err := commonrepo.NewSystemSettingColl().GetWorkflowHookSetting() | ||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
| if err := instantmessage.NewWeChatClient().SendSystemWorkflowHook(task, hookSetting, hookEvent); err != nil { | ||
| return err | ||
| } | ||
|
|
||
| return nil | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.