Skip to content

Commit a63a992

Browse files
authored
fix(init): set level to 1 for pull requests on level 3 projects (#526)
1 parent 01e1016 commit a63a992

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

template/{{cookiecutter.project_name}}/taskcluster.github.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ policy:
1212
tasks:
1313
- $let:
1414
trustDomain: "{{cookiecutter.trust_domain}}"
15-
level: "{{cookiecutter.level}}"
1615
ownerEmail:
1716
$switch:
1817
'tasks_for == "github-push"': '${event.pusher.email}'
@@ -93,6 +92,10 @@ tasks:
9392
'head_ref[:10] == "refs/tags/"': '${head_ref[10:]}'
9493
'head_ref[:11] == "refs/heads/"': '${head_ref[11:]}'
9594
$default: '${head_ref}'
95+
level:
96+
$if: 'isPullRequest || tasks_for == "pr-action"'
97+
then: "1"
98+
else: "{{cookiecutter.level}}"
9699
in:
97100
$if: >
98101
tasks_for in ["action", "pr-action", "cron"]

0 commit comments

Comments
 (0)