Checkout the source branch in changelog pipeline

This commit is contained in:
Michael Barz
2020-02-07 15:42:54 +01:00
parent 5e2351b08c
commit 69d898dea4

View File

@@ -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': {