Skip to content

Commit

Permalink
small requested formatting changes (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnider21 authored Dec 9, 2021
1 parent 1e6c27f commit e4e3826
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The parameters will be passed to the action through `with`
| build | build number - passed as github-provided env var | Required |
| webhook | webhook url for slack app | Required |
| repo | name of github repo | Required |
| version | release version of the service | Optional |

## Usage

Expand Down
6 changes: 3 additions & 3 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ def message_builder(outcome, project, build, repo, version):
if version == "none":
service_info = service
else:
service_info = f"{service} {version}"
service_info = f"{service} `{version}`"
message = [
{
"color": color,
"blocks": [
{
"type": "section",
"text": {"type": "mrkdwn", "text": f"outcome: {outcome}"},
"text": {"type": "mrkdwn", "text": f"Service: {service_info}"},
},
{
"type": "section",
"text": {"type": "mrkdwn", "text": f"Service: {service_info}"},
"text": {"type": "mrkdwn", "text": f"Outcome: {outcome.capitalize()}"},
},
{"type": "divider"},
{
Expand Down

0 comments on commit e4e3826

Please sign in to comment.