Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to call "git checkcommits" on known branches
.branches inclues the branches to check scripts/.known.$BRANCH is the list of exceptions
- Loading branch information
Showing
4 changed files
with
52 additions
and
0 deletions.
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,2 @@ | ||
RHEL5.8 | ||
RHEL6.3 |
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,5 @@ | ||
da8fe60 Correcting incorrect date in changelog. | ||
1c401af Adding rhel-5.8 releaser | ||
71f8f71 extracted the latest strings and pushed them to zanata | ||
a18205f latest string files | ||
|
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,6 @@ | ||
fce5990 819828: Add translated strings for missing translations | ||
3af902e Revert of :"Allow service level change for consumer via CLI independent of other calls." | ||
1dde0af update translations from zanata | ||
8af3faf update strings and pull latest from zanata | ||
fbe983f 811294: refresh strings to fix broken kn.po | ||
85eb7f8 Extracted the latest strings, and sent them to the zanata |
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,39 @@ | ||
#!/bin/bash | ||
|
||
# run git-checkcommits against known branches and look | ||
# for commits that haven't been merged to master | ||
# add a branch name to ".branches" file to have | ||
# it checked by the script | ||
# | ||
# get git-checkcommits from https://github.com/alikins/gitconfig | ||
# | ||
# | ||
if [ -z "${ORIGIN}" ] ; then | ||
ORIGIN="origin" | ||
fi | ||
FAIL="" | ||
BRANCHFILE=".branches" | ||
|
||
while read branch; | ||
do | ||
echo "Checking branch: ${branch}" | ||
KNOWNFILE="scripts/.known.${branch}" | ||
if [ -f ${KNOWNFILE} ] ; then | ||
RES=$(git checkcommits master "${ORIGIN}/${branch}" | grep -v -f "${KNOWNFILE}") | ||
else | ||
RES=$(git checkcommits master "${ORIGIN}/${branch}") | ||
fi | ||
if [ -n "${RES}" ] ; then | ||
FAIL="failed" | ||
echo "** WARNING: Unmerged commits from ${branch}" | ||
echo "** If these are known exceptions, add to ${KNOWNFILE}" | ||
echo "${RES}" | ||
echo | ||
fi | ||
done < ${BRANCHFILE} | ||
|
||
|
||
if [ -n "${FAIL}" ] ; then | ||
exit 1 | ||
fi | ||
exit 0 |