Skip to content

tpo/tpa: use a template instead of a forest of symlinks

anarcat requested to merge regroup-tpa into main

All those projects are configured the same. Instead of copying all those symlinks all over the place, just make a template directory and symlink the entire folder pointing at that.

For projects that don't need the same policy (e.g. triage-ops), just keep the old method of having individual symlinks.

This was essentially done with:

cd policies/tpo/tpa
mv .meta .template
mv anon_ticket/0[12]* .template
for d in *; do
    if [ "$old" == "triage-ops" ]; then
        continue
    fi
    rm -r $d
    ln -s .template $d
done

This will make it easier to add global policies and add new projects to the list of TPA projects managed by the bot.

Merge request reports

Loading