travis-apidoc: reference PR only in merge commit for less noise in the PR
This commit is contained in:
parent
7f17f6bc0f
commit
a10431e7a4
|
@ -72,10 +72,6 @@ Last commit message:
|
|||
$(cd $REPO_DIR && git log -1 --pretty=format:%s)
|
||||
|
||||
Build URL: https://travis-ci.org/awesomeWM/awesome/builds/${TRAVIS_BUILD_ID}"
|
||||
if [ "$TRAVIS_PULL_REQUEST" != false ]; then
|
||||
COMMIT_MSG="$COMMIT_MSG
|
||||
Pull request: https://github.com/awesomeWM/awesome/pull/${TRAVIS_PULL_REQUEST}"
|
||||
fi
|
||||
git commit -m "[relevant] $COMMIT_MSG"
|
||||
|
||||
# Commit the irrelevant changes.
|
||||
|
@ -94,7 +90,12 @@ git tag -d _old
|
|||
|
||||
git checkout "$BRANCH"
|
||||
OLD_REV="$(git rev-parse --short HEAD)"
|
||||
git merge --no-ff -m "$COMMIT_MSG" merged-update
|
||||
MERGE_COMMIT_MSG="$COMMIT_MSG"
|
||||
if [ "$TRAVIS_PULL_REQUEST" != false ]; then
|
||||
COMMIT_MSG="$COMMIT_MSG
|
||||
Pull request: https://github.com/awesomeWM/awesome/pull/${TRAVIS_PULL_REQUEST}"
|
||||
fi
|
||||
git merge --no-ff -m "$MERGE_COMMIT_MSG" merged-update
|
||||
NEW_REV="$(git rev-parse --short HEAD)"
|
||||
|
||||
git push --quiet origin "$BRANCH"
|
||||
|
|
Loading…
Reference in New Issue