diff --git a/CHANGELOG.md b/CHANGELOG.md index 976cba1..21a7e32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) ---- diff --git a/docs/source/usage/repositories.rst b/docs/source/usage/repositories.rst index 3ef7d3e..3571e7b 100644 --- a/docs/source/usage/repositories.rst +++ b/docs/source/usage/repositories.rst @@ -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:`< >` ---- diff --git a/src/ansibleguy-webui/aw/migrations/0009_v0_0_23.py b/src/ansibleguy-webui/aw/migrations/0009_v0_0_23.py new file mode 100644 index 0000000..91247ff --- /dev/null +++ b/src/ansibleguy-webui/aw/migrations/0009_v0_0_23.py @@ -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 + ), + ), + ]