Skip to content

Commit

Permalink
Incorporated review comments
Browse files Browse the repository at this point in the history
tendrl-bug-id: documentation/Tendrl#64

Signed-off-by: Shubhendu <[email protected]>
  • Loading branch information
Shubhendu committed Nov 30, 2016
1 parent c1d03f2 commit d2039c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
before_install:
- "export TRAVIS_COMMIT_MSG=\\\"$(git log --format=%B --no-merges -n 1)\\"
- "pip install requests"
- "yum install java"
git:
depth: 4
env:
- URL=https://github.com/redpen-cc/redpen/releases/download/redpen-1.7.6

install:
- "pip install tox-travis"
- yum install java
- wget $URL/redpen-1.7.6.tar.gz
- tar xvf redpen-1.7.6.tar.gz
- export PATH=$PATH:$PWD/redpen-distribution-1.7.6/bin
Expand Down
5 changes: 2 additions & 3 deletions check_commit_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
commit_msg = str(os.environ['TRAVIS_COMMIT_MSG'])
tendrl_bug_id = None
tendrl_spec = None
github_base_url = "http://github.com/Tendrl"
github_base_url = "http://github.com"


# Extract "tendrl-bug-id" and "tendrl-spec" name from the commit message
Expand All @@ -29,8 +29,7 @@
"your commit msg")

if tendrl_bug_id:
issue = "%s/%s/issues/%s" % (github_base_url, tendrl_bug_id.split(
"/")[0], tendrl_bug_id.split("/")[-1])
issue = "%s/%s" % (github_base_url, tendrl_bug_id.replace("#", "/issues/"))
if requests.get(issue).status_code != 200:
raise Exception("Tendrl Bug specified in git commit msg not "
"found!!\n"
Expand Down

0 comments on commit d2039c9

Please sign in to comment.