Skip to content

Commit 0ede1c1

Browse files
committed
Rearrange high prio comment text
1 parent d278500 commit 0ede1c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,11 @@ high_priority_labels = ["high-priority", "urgent"]
254254

255255
When a PR has any of these labels, the comment will look like this:
256256
```
257+
❗High Prio❗
258+
257259
Codeowners approval required for this PR:
258260
- @user1
259261
- @user2
260-
❗High Prio❗
261262
```
262263

263264
## CLI Tool

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (a *App) processApprovalsAndReviewers() (bool, string, error) {
218218
if err != nil {
219219
fmt.Fprintf(WarningBuffer, "WARNING: Error checking high priority labels: %v\n", err)
220220
} else if hasHighPriority {
221-
comment += "\n❗High Prio❗"
221+
comment = "❗High Prio❗\n\n" + comment
222222
}
223223
if maxReviewsMet {
224224
comment += "\n\n"

0 commit comments

Comments
 (0)