-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Builds: automation rules v2 #12848
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
Open
humitos
wants to merge
49
commits into
main
Choose a base branch
from
humitos/webhook-filters-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Builds: automation rules v2 #12848
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
04c195d
Initial implementation by the AI
humitos c934777
Update models slightly
humitos 4c7bde8
Initial implementation
humitos fb2c5db
Make the implementation to work
humitos 79eb0eb
Migration
humitos 1159803
Remove AI created files
humitos 93d97ea
Merge branch 'main' into humitos/webhook-filters-v2
humitos 8712a6f
Small refactor
humitos eea2d6b
Minor changes
humitos 4474989
Order and log
humitos e46aa93
Support predefined values for version pattern
humitos 3943c66
Update migrations file to reflect changes and add data migration
humitos 3e4d7a4
Update logs
humitos b09f269
Version types
humitos 6afb742
Add move priority support
humitos 1bef78d
Update migration to match code
humitos 0f648d1
Update version match
humitos 41d9e1e
Remove comment
humitos ebaa6da
Placeholder
humitos b13288c
Filter by enabled/disabled
humitos 8a7b891
Update logs
humitos 0ee7125
Add a comment about AutomationRuleMatch metadata
humitos 80fc1fd
Re-use constants
humitos 21d86fa
Validate version matching
humitos 91a67b5
Predefined match cannot be null
humitos 727169c
Allow multiline webhook match patterns
humitos 3a6b538
Update docstring
humitos d031332
Add log for matching webhook rules
humitos 7c100b5
Update patterns
humitos 08cba3f
Update logging
humitos 4afb1f0
Do not check labels on push events
humitos 7221502
Use explicit `custom-match` value instead of `None`
humitos 8bdaa4d
Update based on feedback
humitos 3f9b6bd
Update code based on feedback
humitos 23c9852
Attempt to use RichSelect and RichChoice
humitos f106ecd
Move forms to projects/forms.py
humitos a423f16
Move AutomationRule to projects app
humitos d5fa131
Fix some issues after moving the model
humitos f82d613
Handle custom match
humitos d9fe37f
Update reference to model
humitos 71964c5
Get commit from pull request
humitos a6d9473
Split .match into .match_version and .match_webhook
humitos d60d079
Split `match_webhook` into 3 different helper methods
humitos 897dc44
Update migrations
humitos 8a97671
Pass `use_data_binding` to make the field work properly
humitos 19b5ada
Override hidden widget to allow multiplechoice
humitos dcfc5ff
Use a custom field to handle multichoice select with RichSelect
humitos 12cd37e
Revert "Override hidden widget to allow multiplechoice"
humitos d46be50
Move data migration to another migration file
humitos 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
Some comments aren't visible on the classic Files Changed page.
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
37 changes: 37 additions & 0 deletions
37
readthedocs/builds/migrations/0071_alter_automationrulematch_rule_and_more.py
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,37 @@ | ||
| # Generated by Django 5.2.12 on 2026-04-08 11:03 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations | ||
| from django.db import models | ||
| from django_safemigrate import Safe | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| safe = Safe.after_deploy() | ||
|
|
||
| dependencies = [ | ||
| ("builds", "0070_delete_build_old_config"), | ||
| ("projects", "0159_add_automationrule_v2"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="automationrulematch", | ||
| name="rule", | ||
| field=models.ForeignKey( | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| related_name="matches", | ||
| to="projects.automationrule", | ||
| verbose_name="Matched rule", | ||
| ), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name="versionautomationrule", | ||
| name="project", | ||
| field=models.ForeignKey( | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| related_name="version_automation_rules", | ||
| to="projects.project", | ||
| ), | ||
| ), | ||
| ] |
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.
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.