Skip to content

Commit

Permalink
Revert "Bringing back tldr bot again"
Browse files Browse the repository at this point in the history
This reverts commit 17f4e69.
  • Loading branch information
agnivade committed Jan 30, 2017
1 parent 5834392 commit fb50107
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ cache: false
after_success:
- bash scripts/build.sh

after_failure:
- cat test_result | python scripts/post_pr_comment.py

env:
global:
- secure: ewQMcFd3wH8IHOeGhIkBr2kAgadONmesv2KB+9bPRCZ5gvtFFwlkCMdPnQBR9Kd3GKC8r+EO0JNNFWOvrDjPYhEHi9Ab26Q/qodwfwne9YloKXT+C48Zrbrj8q7kb/FeMYPev+RMuM96j5E5QyqBVohGP7hC2bpU3mvAhQ2wBCE=
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"precommit": "npm test",
"lint-markdown": "markdownlint pages/**/*.md",
"lint-tldr": "tldr-lint ./pages",
"test": "markdownlint pages/ && tldr-lint ./pages > test_result 2>&1",
"test": "markdownlint pages/ && tldr-lint ./pages",
"build-index": "node ./scripts/build-index.js > pages/index.json"
},
"repository": "tldr-pages/tldr",
Expand Down
2 changes: 1 addition & 1 deletion scripts/post_pr_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def post_comment(pr_id, repo_slug, comment_body, user_token):
# Get the environment variables
PR_NUMBER = os.environ.get('TRAVIS_PULL_REQUEST')
REPO_SLUG = os.environ.get('TRAVIS_REPO_SLUG') # owner_name/repo_name
BOT_TOKEN = 'fa82308579f8648854eaf44c4875dfa8327f233c' #publicly available because the bot does not have any permissions
BOT_TOKEN = os.environ.get('TRAVIS_BOT_GITHUB_TOKEN')
BUILD_ID = os.environ.get('TRAVIS_BUILD_ID')

# Read the test result output from stdin
Expand Down

0 comments on commit fb50107

Please sign in to comment.