Skip to content

Commit

Permalink
add migration and docs for repo cleanup-hook (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Sep 17, 2024
1 parent 8f3d56c commit 4373469
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Fix for Log-Directory creation
* Enable SSH host-key checking by default (*ansible-runner seem to disable it by default*)
* Enhanced Bottons of Log Live-View
* Git-Repository Cleanup-Hook (Post Job-Run)

----

Expand Down
2 changes: 2 additions & 0 deletions docs/source/usage/repositories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ If you want to run multiple ones - they need to be comma-separated.

These hooks will not be processed if you override the actual create/update command.

The cleanup-hook can be used to commit files that were created by the job-execution.

**Note**: For security reasons (XSS) these characters are currently not allowed: :code:`< >`

----
Expand Down
20 changes: 20 additions & 0 deletions src/ansibleguy-webui/aw/migrations/0009_v0_0_23.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 5.0.9 on 2024-09-17 17:32

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("aw", "0008_v0_0_22"),
]

operations = [
migrations.AddField(
model_name="repository",
name="git_hook_cleanup",
field=models.CharField(
blank=True, default=None, max_length=1000, null=True
),
),
]

0 comments on commit 4373469

Please sign in to comment.