Skip to content

Commit

Permalink
fix: slack message tweaks (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgangemi authored Oct 4, 2024
1 parent 65d6338 commit ff738e3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/dangernoodle/cpw/model/Deployment.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public record Deployment(UUID deploymentId, long timestamp, String status, Strin
public List<LayoutBlock> asSlackBlocks()
{
List<LayoutBlock> blocks = asBlocks(
header(header -> header.text(plainText("Deployment Info"))),
header(header -> header.text(plainText("Maven Central Deployment"))),
divider(),
section(section -> section.text(markdownText("*Deployment ID:*\n" + deploymentId))),
section(section -> section.text(markdownText("*Deployment Id:*\n" + deploymentId))),
section(section -> section.fields(asSectionFields(
markdownText("*Status:*\n" + formatStatus()),
markdownText("*Timestamp:*\n" + formatTimestamp()))
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/failed-slack-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "header",
"text": {
"type": "plain_text",
"text": "Deployment Info"
"text": "Maven Central Deployment"
}
},
{
Expand All @@ -13,7 +13,7 @@
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment ID:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
"text": "*Deployment Id:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/published-slack-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "header",
"text": {
"type": "plain_text",
"text": "Deployment Info"
"text": "Maven Central Deployment"
}
},
{
Expand All @@ -13,7 +13,7 @@
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment ID:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
"text": "*Deployment Id:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/publishing-slack-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "header",
"text": {
"type": "plain_text",
"text": "Deployment Info"
"text": "Maven Central Deployment"
}
},
{
Expand All @@ -13,7 +13,7 @@
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment ID:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
"text": "*Deployment Id:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/unknown-slack-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "header",
"text": {
"type": "plain_text",
"text": "Deployment Info"
"text": "Maven Central Deployment"
}
},
{
Expand All @@ -13,7 +13,7 @@
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment ID:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
"text": "*Deployment Id:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/validated-slack-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "header",
"text": {
"type": "plain_text",
"text": "Deployment Info"
"text": "Maven Central Deployment"
}
},
{
Expand All @@ -13,7 +13,7 @@
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment ID:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
"text": "*Deployment Id:*\nbd0aa1fe-96ea-4176-97e4-65404b5d584c"
}
},
{
Expand Down

0 comments on commit ff738e3

Please sign in to comment.