Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1.25 KB

trigger.md

File metadata and controls

24 lines (14 loc) · 1.25 KB

How to trigger your task on new diffs

Step for mozilla-central

⚠️ This step is specific to mozilla-central and its taskgraph. Other repositories have different decision tasks and mechanisms.

Once your task is setup in the repository taskgraph, usually in taskcluster/ci/source-test, you'll need to add an attribute to the task definition so the code-review bot will automatically start your task on new diffs.

It's simple to add:

attributes:
  code-review: true

Here is an example for clang tasks

Ask the linter-reviewers group for review on that step, especially if you add a task in a different namespace than source-test

Step for NSS

NSS is already integrated in the code-review bot workflow, using its own decision task (no taskgraph here).

To add a new analyzer, you'll need to add a task in automation/taskcluster/graph/src/extend.js, with the tag code-review. You can lookup the clang-tidy for a sample implementation.