Skip to content

Commit 8a70ff3

Browse files
Merge pull request #25 from conorbronsdon/conorbronsdon-patch-12
Update gitstream.cm
2 parents 56a24c7 + 6d0f90a commit 8a70ff3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: .cm/gitstream.cm

+5-2
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ automations:
4242
label: "🗑️ Deleted files"
4343
color: "{{ colors.orange }}"
4444

45-
# Option 4
4645
label_from_branch:
4746
if:
4847
- true
4948
run:
5049
- action: add-label@v1
5150
args:
5251
label: "{{ branch_prefix }}"
52+
- action: add-label@v1
53+
args:
54+
label: "{{ 'urgent' if is_hotfix else '' }}"
5355

5456
calc:
5557
etr: "{{ branch | estimatedReviewTime }}"
@@ -63,7 +65,8 @@ is:
6365
has:
6466
deleted_files: "{{ source.diff.files | map(attr='new_file') | match(term='/dev/null') | some }}"
6567

66-
branch_prefix: "{{ branch.split('/')[0] }}"
68+
branch_prefix: >
69+
{{ branch.split('/')[0] if '/' in branch else branch }}
6770

6871
colors:
6972
red: "b60205"

0 commit comments

Comments
 (0)