change pull to pull_request

This commit is contained in:
Willy Kloucek
2020-12-30 08:06:58 +01:00
parent d87d1f4e82
commit 4053702758
+3 -3
View File
@@ -199,9 +199,9 @@ def main(ctx):
]
elif \
(ctx.build.event == "pull" and '[docs-only]' in ctx.build.title) \
(ctx.build.event == "pull_request" and '[docs-only]' in ctx.build.title) \
or \
(ctx.build.event != "pull" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
(ctx.build.event != "pull_request" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
# [docs-only] is not taken from PR messages, but from commit messages
pipelines = [docs(ctx)]
@@ -373,7 +373,7 @@ def uploadCoverage(ctx):
'from_secret': 'sonar_token',
},
}
if ctx.build.event == 'pull':
if ctx.build.event == "pull_request":
sonar_env.update({
'SONAR_PULL_REQUEST_BASE': '%s' % (ctx.build.target),
'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source),