From 69d898dea49ad048dd7f4f024f42cbbb7db03a1e Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Fri, 7 Feb 2020 15:42:54 +0100 Subject: [PATCH] Checkout the source branch in changelog pipeline --- .drone.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index b90ce6c59..4239633b5 100644 --- a/.drone.star +++ b/.drone.star @@ -464,7 +464,7 @@ def changelog(ctx): 'clone', ], 'remote': 'https://github.com/%s' % (repo_slug), - 'branch': ctx.build.branch if ctx.build.event == 'pull_request' else 'master', + 'branch': ctx.build.source if ctx.build.event == 'pull_request' else 'master', 'path': '/drone/src', 'netrc_machine': 'github.com', 'netrc_username': {