use edit-deliverable in script to set the release notes URLs
Change-Id: Iff9aedb2faf888a5440e54b0a889140676e50f7b Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
6080c4b5ae
commit
62241c3755
@ -24,6 +24,11 @@ fi
|
|||||||
|
|
||||||
SERIES="$1"
|
SERIES="$1"
|
||||||
|
|
||||||
|
# Set up and activate the virtualenv that contains the
|
||||||
|
# edit-deliverable command.
|
||||||
|
tox -e venv --notest
|
||||||
|
source .tox/venv/bin/activate
|
||||||
|
|
||||||
function url_exists {
|
function url_exists {
|
||||||
local url="$1"
|
local url="$1"
|
||||||
|
|
||||||
@ -42,17 +47,7 @@ for filename in deliverables/$SERIES/*.yaml; do
|
|||||||
if ! url_exists $url; then
|
if ! url_exists $url; then
|
||||||
echo " no release notes page at $url"
|
echo " no release notes page at $url"
|
||||||
else
|
else
|
||||||
new_value="release-notes: $url"
|
echo
|
||||||
if grep -q "$new_value" $filename; then
|
edit-deliverable $SERIES $deliverable --release-notes "$url"
|
||||||
echo " OK"
|
|
||||||
else
|
|
||||||
# Remove any existing links, since they might point to the
|
|
||||||
# "unreleased" page.
|
|
||||||
sed -i -e '/release-notes/d' $filename
|
|
||||||
# Add the link pointing to the series-specific page.
|
|
||||||
sed -i -e "/team:.*/a \
|
|
||||||
$new_value" $filename
|
|
||||||
echo " updated"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user