Skip to content

Commit

Permalink
OWASP#1204: updated PR feedback loop
Browse files Browse the repository at this point in the history
  • Loading branch information
commjoen committed May 16, 2019
1 parent 37a2324 commit f8423ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ deploy:
on:
repo: OWASP/owasp-mstg
tags: true
after_success:
- "./Tools/report_to_github.sh"
9 changes: 6 additions & 3 deletions Tools/gendocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ cd $TRAVIS_BUILD_DIR/Tools
echo "Applying Linter check"
sh ./Apply_Linter_Check.sh
echo "Counting amount of linter issues:"
export RESULT=$(wc -l ../linter-result.out)
LINTRESULT=$(wc -l ../linter-result.out)
echo $RESULT
if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
echo "Applying Link check"
sh ./Apply_Link_Check.sh
LINKRESULT:$(sh ./Apply_Link_Check.sh)
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST \
-d "{\"body\": \"Broken link result: $LINKRESULT, markdown result: $LINTRESULT\"}" \
"https://api.github.com/repos/${TRAVIS_REPO_SLUG}/issues/${TRAVIS_PULL_REQUEST}/comments"
fi
if [ -z "$TRAVIS_TAG" ]; then
exit 0;
fi
echo "Running creaton of pdfs and word documents"
sh ./gitbookepubandpdf.sh $TRAVIS_TAG
sh ./generate_document.sh
sh ./generate_document.sh
8 changes: 0 additions & 8 deletions Tools/report_to_github.sh

This file was deleted.

0 comments on commit f8423ed

Please sign in to comment.