We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56a24c7 + 6d0f90a commit 8a70ff3Copy full SHA for 8a70ff3
.cm/gitstream.cm
@@ -42,14 +42,16 @@ automations:
42
label: "🗑️ Deleted files"
43
color: "{{ colors.orange }}"
44
45
- # Option 4
46
label_from_branch:
47
if:
48
- true
49
run:
50
- action: add-label@v1
51
args:
52
label: "{{ branch_prefix }}"
+ - action: add-label@v1
53
+ args:
54
+ label: "{{ 'urgent' if is_hotfix else '' }}"
55
56
calc:
57
etr: "{{ branch | estimatedReviewTime }}"
@@ -63,7 +65,8 @@ is:
63
65
has:
64
66
deleted_files: "{{ source.diff.files | map(attr='new_file') | match(term='/dev/null') | some }}"
67
-branch_prefix: "{{ branch.split('/')[0] }}"
68
+branch_prefix: >
69
+ {{ branch.split('/')[0] if '/' in branch else branch }}
70
71
colors:
72
red: "b60205"
0 commit comments