Skip to content

Provide Estimated Time to Review

Label all PRs with an estimated number of minutes it would take someone to review. gitStream will automatically update this label whenever a PR changes.

Estimated time to review

Conditions (all must be true):

  • Any new PR or change to an existing PR.

Automation Actions:

  • Apply a color coded label that provides an estimated number of minutes someone will need to review the PR.

Provide Estimated Time to Review

# -*- mode: yaml -*-

manifest:
  version: 1.0

automations:
  estimated_time_to_review:
    if:
      - true
    run:
      - action: add-label@v1
        args:
          label: "{{ calc.etr }} min review"
          color: {{ 'E94637' if (calc.etr >= 20) else ('FBBD10' if (calc.etr >= 5) else '36A853') }}

calc:
  etr: {{ branch | estimatedReviewTime }}