Skip to content

Commit

Permalink
Add a pr-complete task that we can require before merging PRs (#3282)
Browse files Browse the repository at this point in the history
* Add a `pr-complete` task that we can require before merging PRs

The task does nothing, always succeeds but depends on all test tasks passing.

* Add ui tasks to `pr-complete` dependencies
  • Loading branch information
Eijebong authored Jan 24, 2025
1 parent 19dbbfb commit b593d46
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions taskcluster/kinds/pr/kind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: taskgraph.loader.transform:loader

kind-dependencies:
- test
- ui

transforms:
- taskgraph.transforms.code_review:transforms
- taskgraph.transforms.task:transforms

tasks:
complete:
description: PR Summary Task
run-on-tasks-for: [github-pull-request]
worker-type: succeed
2 changes: 2 additions & 0 deletions taskcluster/kinds/test/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ transforms:

task-defaults:
run-on-tasks-for: [github-pull-request, github-push]
attributes:
code-review: true
worker-type: test
worker:
docker-image: {in-tree: 'python3.11'}
Expand Down
2 changes: 2 additions & 0 deletions taskcluster/kinds/ui/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ transforms:

task-defaults:
run-on-tasks-for: [github-pull-request, github-push]
attributes:
code-review: true
worker-type: test
worker:
docker-image: {in-tree: node}
Expand Down

0 comments on commit b593d46

Please sign in to comment.