Skip to content
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

server: new kara webhook #97

Merged
merged 16 commits into from
Nov 27, 2024
Merged

server: new kara webhook #97

merged 16 commits into from
Nov 27, 2024

Conversation

NextFire
Copy link
Member

@NextFire NextFire commented Nov 17, 2024

Close #36

Preferred merge strategy: squash

server/model.go Outdated
@@ -404,6 +404,10 @@ func (ki *KaraInfoDB) AfterUpdate(tx *gorm.DB) error {
if err != nil {
return err
}
err = PostWebhooks(ki)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will run everytime a kara is updated (post upload)

server/karaenv.go Outdated Show resolved Hide resolved
server/webhooks.go Outdated Show resolved Hide resolved
ignore imported karas for now, probably we could have an option later
when we support defining webhooks for more events
@odrling odrling merged commit 47f4efc into master Nov 27, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhooks
2 participants