From 7f17f6bc0f5486c909e43687ca24e7eb3d0adb72 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 4 Apr 2016 23:36:26 +0200 Subject: [PATCH] travis-apidoc: add link to pull request to commit messages --- build-utils/travis-apidoc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-utils/travis-apidoc.sh b/build-utils/travis-apidoc.sh index 47b30f3ac..80cd7836d 100755 --- a/build-utils/travis-apidoc.sh +++ b/build-utils/travis-apidoc.sh @@ -72,6 +72,10 @@ 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.