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
"mall-admin/vscode:/vscode.git/clone" did not exist on "bf87bf087d4bb6f77ead1c53f33b58334dc3e9b8"
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 @@
FORMAT_FILE
=
../README.md
if
[
"
$TRAVIS_PULL_REQUEST
"
!=
"false"
]
;
then
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
git show | egrep
"
\+
"
>
additions.txt
echo
"--ADDITIONS--"
DIFF_URL
=
"https://patch-diff.githubusercontent.com/raw/toddmotto/public-apis/pull/
$TRAVIS_PULL_REQUEST
.diff"
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
echo
"------- END ADDITIONS ------"
LINK_FILE
=
additions.txt
else
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