|
1 | 1 | message: |
2 | 2 | # prettier-ignore |
3 | | - templating: |
4 | | - messageTemplate: | |
5 | | - {{- /* === ISSUE === */ -}} |
6 | | - {{- if and @issue (ne @issue nil) (not @is_pull) -}} |
7 | | - 📝 **#{{@issue.number}} {{@issue.title}}** |
8 | | - {{ if eq @issue.state "open" -}}🟢{{- else if eq @issue.state "closed" -}}🔴{{- else -}}{{@issue.state}}{{- end }} | 👤 {{@sender.full_name}} |
9 | | - 🔗 {{@issue.html_url}} |
10 | | - {{- end -}} |
| 3 | + messageTemplate: | |
| 4 | + {{- /* === ISSUE === */ -}} |
| 5 | + {{- if and @issue (ne @issue nil) (not @is_pull) -}} |
| 6 | + 📝 **#{{@issue.number}} {{@issue.title}}** |
| 7 | + {{ if eq @issue.state "open" -}}🟢{{- else if eq @issue.state "closed" -}}🔴{{- else -}}{{@issue.state}}{{- end }} | 👤 {{@sender.full_name}} |
| 8 | + 🔗 {{@issue.html_url}} |
| 9 | + {{- end -}} |
11 | 10 |
|
12 | | - {{- /* === PULL REQUEST === */ -}} |
13 | | - {{- if and @pull_request (ne @pull_request nil) -}} |
14 | | - 🚀 **#{{@pull_request.number}} {{@pull_request.title}}** |
15 | | - {{ if eq @pull_request.state "open" -}}🟢{{- else if eq @pull_request.state "closed" -}}🔴{{- else if eq @pull_request.state "merged" -}}🟣{{- else -}}{{@pull_request.state}}{{- end }} | 👤 {{@sender.full_name}} |
16 | | - 🔗 {{@pull_request.html_url}} |
17 | | - {{- end -}} |
| 11 | + {{- /* === PULL REQUEST === */ -}} |
| 12 | + {{- if and @pull_request (ne @pull_request nil) -}} |
| 13 | + 🚀 **#{{@pull_request.number}} {{@pull_request.title}}** |
| 14 | + {{ if eq @pull_request.state "open" -}}🟢{{- else if eq @pull_request.state "closed" -}}🔴{{- else if eq @pull_request.state "merged" -}}🟣{{- else -}}{{@pull_request.state}}{{- end }} | 👤 {{@sender.full_name}} |
| 15 | + 🔗 {{@pull_request.html_url}} |
| 16 | + {{- end -}} |
18 | 17 |
|
19 | | - {{- /* === COMMIT === */ -}} |
20 | | - {{- if and @commits (gt (len @commits) 0) -}} |
21 | | - 📥️ **Push** → *{{@ref}}* |
22 | | - 📁 {{@repository.full_name}} | 👤 {{@pusher.full_name}} | 🔢 {{@total_commits}} |
23 | | - {{- range @commits }} |
24 | | - - 🧾 *{{.message}}* |
25 | | - {{- if .added }} |
26 | | - {{- range .added }} ➕ {{.}} {{- end }} |
27 | | - {{- end -}} |
28 | | - {{- if .modified }} |
29 | | - {{- range .modified }} ✏️ {{.}} {{- end }} |
30 | | - {{- end -}} |
31 | | - {{- if .removed }} |
32 | | - {{- range .removed }} ❌ {{.}} {{- end }} |
33 | | - {{- end }} |
34 | | - 🔗 {{.url}} |
| 18 | + {{- /* === COMMIT === */ -}} |
| 19 | + {{- if and @commits (gt (len @commits) 0) -}} |
| 20 | + 📥️ **Push** → *{{@ref}}* |
| 21 | + 📁 {{@repository.full_name}} | 👤 {{@pusher.full_name}} | 🔢 {{@total_commits}} |
| 22 | + {{- range @commits }} |
| 23 | + - 🧾 *{{.message}}* |
| 24 | + {{- if .added }} |
| 25 | + {{- range .added }} ➕ {{.}} {{- end }} |
| 26 | + {{- end -}} |
| 27 | + {{- if .modified }} |
| 28 | + {{- range .modified }} ✏️ {{.}} {{- end }} |
| 29 | + {{- end -}} |
| 30 | + {{- if .removed }} |
| 31 | + {{- range .removed }} ❌ {{.}} {{- end }} |
35 | 32 | {{- end }} |
| 33 | + 🔗 {{.url}} |
| 34 | + {{- end }} |
36 | 35 |
|
37 | | - 🔎 Compare: {{@compare_url}} |
38 | | - {{- end -}} |
| 36 | + 🔎 Compare: {{@compare_url}} |
| 37 | + {{- end -}} |
0 commit comments