Skip to content

Commit f8c4fef

Browse files
authored
Merge pull request #730 from linear-b/fix-check-link-rule
change link check so it match only new additions and do not alert on old
2 parents 762835b + 2985575 commit f8c4fef

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.cm/gitstream.cm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ config:
88
users: [vim-zz, PavelLinearB]
99

1010
automations:
11-
# Approve changes of text files inside docs dir by maintainers
12-
# Merging is still manual
11+
# Approve changes of text files inside docs dir by maintainers
12+
# Merging is still manual
1313
approve_maintainers_docs:
1414
if:
1515
- {{ files | match(regex=r/docs\/.*\.(md|txt|png|svg|webp)$/) | every }}
1616
- {{ has.img_type1 or has.img_type2 or has.img_type3 }}
1717
- {{ pr.author | match(list=maintainers) }}
1818
run:
1919
- action: approve@v1
20-
20+
2121
# Notify maintainers on new PRs
2222
notify_maintainers:
2323
if:
@@ -26,7 +26,7 @@ automations:
2626
- action: add-reviewers@v1
2727
args:
2828
reviewers: {{ maintainers }}
29-
29+
3030
# Mark changes to automation rule examples as they need to be tested and working
3131
mark_examples:
3232
if:
@@ -52,10 +52,10 @@ automations:
5252
comment: |
5353
A screenshot of the relevant part of docs after the changes is a life saver 🛟
5454
55-
# Check for wrong app link
55+
# Check for wrong app link
5656
check_wrong_domain:
5757
if:
58-
- {{ source.diff.files | match(attr='diff', regex=r/git[sS]tream\.com/) | some }}
58+
- {{ source.diff.files | match(attr='new_content', regex=r/git[sS]tream\.com/) | some }}
5959
run:
6060
- action: add-label@v1
6161
args:
@@ -66,10 +66,10 @@ automations:
6666
comment: |
6767
You have used `gitstream.com` which is not a valid link, use `gitstream.cm` instead.
6868
69-
# Check for wrong app link
69+
# Check for wrong app link
7070
check_local_links:
7171
if:
72-
- {{ source.diff.files | match(attr='diff', list=['localhost', '127.0.0.1']) | some }}
72+
- {{ source.diff.files | match(attr='new_content', list=['localhost', '127.0.0.1']) | some }}
7373
run:
7474
- action: add-label@v1
7575
args:

0 commit comments

Comments
 (0)