gitlab-ci: only check commits included in the current merge request
This commit is contained in:
parent
303d03f28c
commit
253a1b144c
|
@ -14,7 +14,7 @@ lint:
|
|||
- if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
|
||||
git fetch https://gitlab.com/fdroid/fdroiddata;
|
||||
test -d build || mkdir build;
|
||||
for f in `git diff --name-only FETCH_HEAD`; do
|
||||
for f in `git diff --name-only FETCH_HEAD...HEAD`; do
|
||||
appid=`echo $f | sed -n -e 's,^metadata/\([^/][^/]*\)\.txt,\1,p'
|
||||
-e 's,^metadata/\([^/][^/]*\)\.yml,\1,p'`;
|
||||
export CHANGED="$CHANGED $appid";
|
||||
|
|
Loading…
Reference in a new issue