From 1b61a1cef1fc6062f54cd5e1f23428ed0ce82c6e Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Wed, 10 Oct 2018 09:37:12 -0300 Subject: [PATCH] Remove prepare-pr so it does not checkout the branch (#2245) --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fc700d302..14c69256e 100644 --- a/Makefile +++ b/Makefile @@ -223,7 +223,7 @@ unsigned-android: stop pre-run check-style prepare-android-build ## Build an uns test: | pre-run check-style ## Runs tests @npm test -build-pr: | can-build-pr prepare-pr stop pre-run check-style ## Build a PR from the mattermost-mobile repo +build-pr: | can-build-pr stop pre-run check-style ## Build a PR from the mattermost-mobile repo @if [ $(shell ps -ef | grep -i "cli.js start" | grep -civ grep) -eq 0 ]; then \ echo Starting React Native packager server; \ npm start & echo; \ @@ -238,10 +238,6 @@ can-build-pr: exit 1; \ fi -prepare-pr: - @git fetch origin pull/${PR_ID}/head:PR-${PR_ID} - @git checkout PR-${PR_ID} - ## Help documentation https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'