Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .cm/gitstream.cm
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ config:
users: [vim-zz, PavelLinearB]

automations:
# Approve changes of text files inside docs dir by maintainers
# Merging is still manual
# Approve changes of text files inside docs dir by maintainers
# Merging is still manual
approve_maintainers_docs:
if:
- {{ files | match(regex=r/docs\/.*\.(md|txt|png|svg|webp)$/) | every }}
- {{ has.img_type1 or has.img_type2 or has.img_type3 }}
- {{ pr.author | match(list=maintainers) }}
run:
- action: approve@v1

# Notify maintainers on new PRs
notify_maintainers:
if:
Expand All @@ -26,7 +26,7 @@ automations:
- action: add-reviewers@v1
args:
reviewers: {{ maintainers }}

# Mark changes to automation rule examples as they need to be tested and working
mark_examples:
if:
Expand All @@ -52,10 +52,10 @@ automations:
comment: |
A screenshot of the relevant part of docs after the changes is a life saver 🛟

# Check for wrong app link
# Check for wrong app link
check_wrong_domain:
if:
- {{ source.diff.files | match(attr='diff', regex=r/git[sS]tream\.com/) | some }}
- {{ source.diff.files | match(attr='new_content', regex=r/git[sS]tream\.com/) | some }}
run:
- action: add-label@v1
args:
Expand All @@ -66,10 +66,10 @@ automations:
comment: |
You have used `gitstream.com` which is not a valid link, use `gitstream.cm` instead.

# Check for wrong app link
# Check for wrong app link
check_local_links:
if:
- {{ source.diff.files | match(attr='diff', list=['localhost', '127.0.0.1']) | some }}
- {{ source.diff.files | match(attr='new_content', list=['localhost', '127.0.0.1']) | some }}
run:
- action: add-label@v1
args:
Expand Down