Skip to content

Commit

Permalink
Add more helpers for the 22.04 release process
Browse files Browse the repository at this point in the history
- do-batch - modified to work with charms in charms/ rather than
  charms.txt
- add a helper that does a single review (use with do-batch-with)
  • Loading branch information
ajkavanagh committed Apr 19, 2022
1 parent 9e180b6 commit e4a8da1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions _do-single-charm-review
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -e
# git add . then amend no-edit and then review. Topic in param
# Does a single charm; use with do-batch-with to do the entire batch.

topic=$1
script_dir="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"

if [ -z "$topic" ]; then
echo "Please provide the topic as the only param."
echo "Usage $0 <topic>"
exit 1
fi

_dir=$(pwd)
# verify that the branch isn't master
branch=$(git branch --show-current | tr -d '\n')
if [[ "$branch" == "master" ]];
then
echo "Branch is ${_dir}"
echo "Branch is master - not updating."
exit 0
fi

git review -t $topic
2 changes: 1 addition & 1 deletion do-batch
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Usage examples:
Note, no clone
./batch-example master some_file.txt topic-name --do-commit --do-review --amend --sync-helpers --update-tox --update-reqs"

charms="$(cat charms.txt)"
charms=$(cd charms && ls -d1 *)
branch="$1"
commit_msg_file="$2"
gerrit_topic="$3"
Expand Down

0 comments on commit e4a8da1

Please sign in to comment.