1
0
Fork 0

Issue #9295 - Add back non-blocking bors to trigger CI on contributor PRs (#9843)

Co-authored-by: Johan Lorenzo <jlorenzo@mozilla.com>
master
liuche 2020-04-10 02:23:22 -07:00 committed by GitHub
parent c31c198d54
commit b897039f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 8 deletions

View File

@ -17,15 +17,17 @@ tasks:
$if: 'tasks_for in ["cron", "action"]'
then: '${tasks_for}@noreply.mozilla.org'
else:
$if: 'tasks_for == "github-push"'
then: '${event.pusher.email}'
# Assume Pull Request
$if: 'event.sender.login == "bors[bot]"'
then: 'skaspari+mozlando@mozilla.com' # It must match what's in bors.toml
else:
$if: 'tasks_for == "github-pull-request"'
then: '${event.pull_request.user.login}@users.noreply.github.com'
$if: 'tasks_for == "github-push"'
then: '${event.pusher.email}'
else:
$if: 'tasks_for == "github-release"'
then: '${event.sender.login}@users.noreply.github.com'
$if: 'tasks_for == "github-pull-request"'
then: '${event.pull_request.user.login}@users.noreply.github.com'
else:
$if: 'tasks_for == "github-release"'
then: '${event.sender.login}@users.noreply.github.com'
baseRepoUrl:
$if: 'tasks_for in ["github-push", "github-release"]'
then: '${event.repository.html_url}'
@ -101,7 +103,7 @@ tasks:
$if: >
tasks_for in ["action", "cron"]
|| (tasks_for == "github-pull-request" && pullRequestAction in ["opened", "reopened", "edited", "synchronize"])
|| (tasks_for == "github-push" && head_branch[:10] != "refs/tags/")
|| (tasks_for == "github-push" && head_branch[:10] != "refs/tags/") && (head_branch != "staging.tmp") && (head_branch != "trying.tmp")
|| (tasks_for == "github-release" && releaseAction == "published")
then:
$let:

13
bors.toml 100644
View File

@ -0,0 +1,13 @@
status = []
block_labels = [
"needs:data-review",
"do not land",
"pr:work-in-progress",
"pr:needs-changes"
]
required_approvals = 0
delete_merged_branches = true
cut_body_after = "---"
[committer]
name = "MozLando"
email = "skaspari+mozlando@mozilla.com"