Skip to content

Integrate gitStream with Swimm

Approve Swimm Changes

Approve Swimm Changes

Approve changes that only affect Swimm documentation.

Approve Swimm Changes

Configuration Description

Conditions (all must be true):

  • The PR only affects files that end in a .swm extension.

Automation Actions:

  • Add a swimm-docs-only label
  • Approve the PR
  • Post a comment that explains that this is a Swimm docs change only.

Approve Swimm Changes

# -*- mode: yaml -*-

manifest:
  version: 1.0

automations:
  approve_swimm_changes:
    # Triggered for any changes to Swimm documentation
    if:
      - {{ branch.diff.files_metadata | match(attr='file', regex=r/\.swm\//) | every }}
    # Apply a swimm-docs-only label, approve the PR and explain why in a comment.
    run: 
      - action: add-label@v1
        args:
          label: 'swimm-docs-only'
      - action: approve@v1
      - action: add-comment@v1
        args:
          comment: |
            This PR is considered a safe change as it only affects Swimm Docs. 
            It has been automatically approved.

Special thanks to Omerr for providing this example.