pep., quick question, have you been tagging updated XEPs?
pep.
tagging?
jonas’
yeah, with git tag
pep.
ah no :/
jonas’
I see
pep.
I really need that bot
jonas’
I’m not convinced that a bot helps there
pep.
Automatable work is automatable
jonas’
I don’t think this is fully automatable
pep.
Mostly
pep.
I always miss stuff
jonas’
I automated a bunch of stuff with a few scripts, but often you have to make decisions
pep.
And every single time that could have helped
jonas’
$ cat ~/.local/bin/git-xeps-tag-release
#!/bin/bash
set -euo pipefail
xep="$1"
# auto-extend "xep-" prefix
xep="$(echo "$xep" | sed -r 's/^([0-9]+)/xep-\1/')"
version="$(xpath -e 'string(/xep/header/revision[1]/version)' "$xep.xml" 2>/dev/null)"
echo "tagging current commit as version $(printf '%q' "$version") for XEP $xep"
git tag "$xep-v$version"
jonas’
^ you can run that script when you have the last commit of the version you want to tag checked out
pep.
yeah but I need to think about it
pep.
s/think about/remember/
jonas’
we need a checklist, indeed
jonas’
but I don’t think this can be automated
pep.
and following a list for me doesn't work
jonas’
fixing tags later is a mess, and you need to tag before the merge for the tag to be most useful, and I’ve had enough cases where I had to re-do the merge because something else was amiss to think that this is probably not automatable at this point