-
Notifications
You must be signed in to change notification settings - Fork 20
Sync projects on repository push via webhooks #563
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
cigamit
merged 3 commits into
ctrliq:main
from
fernandorocagonzalez:feat-project-webhooks
Jul 6, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,15 @@ | ||
| Webhook Secret Key: | ||
|
|
||
| Make a GET request to this resource to obtain the secret key for a job | ||
| template or workflow job template configured to be triggered by | ||
| webhook events. The response will include the following fields: | ||
| template, workflow job template or project configured to be triggered | ||
| by webhook events. The response will include the following fields: | ||
|
|
||
| * `webhook_key`: Secret key that needs to be copied and added to the | ||
| webhook configuration of the service this template will be receiving | ||
| webhook configuration of the service this resource will be receiving | ||
| webhook events from (string, read-only) | ||
|
|
||
| Make an empty POST request to this resource to generate a new | ||
| replacement `webhook_key`. | ||
|
|
||
| A specific key can also be set by writing to the `webhook_key` field | ||
| of the job template, workflow job template or project resource itself. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Generated by Django 5.2.15 on 2026-07-04 10:01 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('main', '0201_workflowjobnodeconditionlink_and_more'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='project', | ||
| name='webhook_key', | ||
| field=models.CharField(blank=True, help_text='Shared secret that the webhook service will use to sign requests', max_length=64), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='project', | ||
| name='webhook_ref_filter', | ||
| field=models.CharField( | ||
| blank=True, | ||
| default='', | ||
| help_text='Only sync the project when the webhook ref matches this fnmatch pattern (e.g. refs/heads/main or refs/heads/release-*). When empty, any push or tag event triggers a sync.', | ||
| max_length=1024, | ||
| ), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='project', | ||
| name='webhook_service', | ||
| field=models.CharField( | ||
| blank=True, | ||
| choices=[('github', 'GitHub'), ('gitlab', 'GitLab'), ('bitbucket_dc', 'BitBucket DataCenter')], | ||
| help_text='Service that webhook requests will be accepted from', | ||
| max_length=16, | ||
| ), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='projectupdate', | ||
| name='webhook_guid', | ||
| field=models.CharField(blank=True, help_text='Unique identifier of the event that triggered this webhook', max_length=128), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='projectupdate', | ||
| name='webhook_service', | ||
| field=models.CharField( | ||
| blank=True, | ||
| choices=[('github', 'GitHub'), ('gitlab', 'GitLab'), ('bitbucket_dc', 'BitBucket DataCenter')], | ||
| help_text='Service that the webhook request that triggered this update came from', | ||
| max_length=16, | ||
| ), | ||
| ), | ||
| ] |
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.