-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
System-wide webhooks #10546
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
Merged
System-wide webhooks #10546
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
09dbd6b
Create system webhook column (and migration)
jamesorlakin 1decbb5
Create system webhook DB methods
jamesorlakin c35b7ac
Modify router to handle system webhooks and default ones
jamesorlakin 191a20a
Remove old unused admin nav template
jamesorlakin 47c687c
Adjust orgRepoCtx to differentiate system and default webhook URLs
jamesorlakin 59a2e55
Assign IsSystemWebhook when creating webhooks
jamesorlakin e03dc4a
Correctly use booleans for IsSystemWebhook
jamesorlakin d397520
Use system webhooks when preparing webhooks for payload
jamesorlakin 4de3834
Add UI and locale changes
jamesorlakin af76998
Use router params to differentiate admin hook pages
jamesorlakin 1fa71fa
Fix deleting admin webhooks and rename method
jamesorlakin cadb482
Add clarity to webhook docs
jamesorlakin a381e42
Revert "Remove old unused admin nav template"
jamesorlakin 85ede4d
Rename WebHooksNewPost to GiteaHooksNewPost for clarity
jamesorlakin 7695abc
Merge branch 'master' into systemWebhooks
jamesorlakin 0ae62a7
Reintroduce blank line lost during merge conflict
jamesorlakin 94d0246
Merge branch 'master' into systemWebhooks
jamesorlakin 4a6ceb0
Merge branch 'master' into systemWebhooks
lunny 3e63579
Merge branch 'master' into systemWebhooks
lafriks 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
Next
Next commit
Create system webhook column (and migration)
- Loading branch information
commit 09dbd6be0d1a7eda7ba3a7b2f91b1515535b49bb
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // Copyright 2020 The Gitea Authors. All rights reserved. | ||
| // Use of this source code is governed by a MIT-style | ||
| // license that can be found in the LICENSE file. | ||
|
|
||
| package migrations | ||
|
|
||
| import ( | ||
| "fmt" | ||
|
|
||
| "xorm.io/xorm" | ||
| ) | ||
|
|
||
| func addSystemWebhookColumn(x *xorm.Engine) error { | ||
| type Webhook struct { | ||
| IsSystemWebhook bool `xorm:"NOT NULL DEFAULT 0"` | ||
| } | ||
|
|
||
| if err := x.Sync2(new(Webhook)); err != nil { | ||
| return fmt.Errorf("Sync2: %v", 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
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.