Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
fa02f5cb
Commit
fa02f5cb
authored
Jul 26, 2017
by
Dave Machado
Committed by
GitHub
Jul 26, 2017
Browse files
Update diff generator for pull requests
parent
e2b3ae92
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/main.sh
View file @
fa02f5cb
...
@@ -2,9 +2,15 @@
...
@@ -2,9 +2,15 @@
FORMAT_FILE
=
../README.md
FORMAT_FILE
=
../README.md
if
[
"
$TRAVIS_PULL_REQUEST
"
!=
"false"
]
;
then
if
[
"
$TRAVIS_PULL_REQUEST
"
!=
"false"
]
;
then
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
git show | egrep
"
\+
"
>
additions.txt
DIFF_URL
=
"https://patch-diff.githubusercontent.com/raw/toddmotto/public-apis/pull/
$TRAVIS_PULL_REQUEST
.diff"
echo
"--ADDITIONS--"
curl https://patch-diff.githubusercontent.com/raw/toddmotto/public-apis/pull/398.diff
>
diff.txt
echo
"------- BEGIN DIFF -------"
cat
diff.txt
echo
"-------- END DIFF --------"
cat
diff.txt | egrep
"
\+
"
>
additions.txt
echo
"------ BEGIN ADDITIONS -----"
cat
additions.txt
cat
additions.txt
echo
"------- END ADDITIONS ------"
LINK_FILE
=
additions.txt
LINK_FILE
=
additions.txt
else
else
echo
"running on
$TRAVIS_BRANCH
branch"
echo
"running on
$TRAVIS_BRANCH
branch"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment