Skip to content

Review TODO Comments

Request changes for a PR that contains a TODO statement.

Review TODO Comments

Configuration Description

Conditions (all must be true):

  • The PR contains a TODO statement

Automation Actions:

  • Request changes and post a comment explaining why.

Review TODO Comments

manifest:
  version: 1.0

automations:
  review_todo_comments:
    if:
      - {{ source.diff.files | matchDiffLines(regex=r/^[+].*(TODO)|(todo)/) | some }}
    run:
      - action: request-changes@v1
        args:
          comment: |
            This PR contains a TODO statement. Please check to see if they should be removed.