Skip to content

Commit 11c7c46

Browse files
Update gitstream.cm
Add label_from_branch function back in
1 parent 733772a commit 11c7c46

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.cm/gitstream.cm

+11
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ automations:
2323
args:
2424
comment: "This PR is considered a safe change and has been automatically approved."
2525

26+
label_from_branch:
27+
if:
28+
- true
29+
run:
30+
- action: add-label@v1
31+
args:
32+
label: "{{ branch | split('/') | first }}"
33+
- action: add-label@v1
34+
args:
35+
label: "{{ 'urgent' if branch | includes('hotfix') else '' }}"
36+
2637
calc:
2738
etr: "{{ branch | estimatedReviewTime }}"
2839

0 commit comments

Comments
 (0)