From 570050ebdd9e9aa208fecbf312b912c0d83c63f3 Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Tue, 13 Aug 2019 03:13:25 +0000 Subject: [PATCH] feat: add support for promoting pull requests Signed-off-by: Andrew Rynhard --- posix/clone | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posix/clone b/posix/clone index d0d9e19..dc18d69 100755 --- a/posix/clone +++ b/posix/clone @@ -53,6 +53,9 @@ export GIT_COMMITTER_EMAIL=${DRONE_COMMIT_AUTHOR_EMAIL} CLONE_TYPE=$DRONE_BUILD_EVENT case $DRONE_COMMIT_REF in refs/tags/* ) CLONE_TYPE=tag ;; + refs/pull/* ) CLONE_TYPE=pull_request ;; + refs/pull-request/* ) CLONE_TYPE=pull_request ;; + refs/merge-requests/* ) CLONE_TYPE=pull_request ;; esac case $CLONE_TYPE in