-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more helpers for the 22.04 release process
- 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
1 parent
9e180b6
commit e4a8da1
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters