Skip to content

Commit

Permalink
fixup messaging format
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Oct 8, 2024
1 parent da8bae7 commit a27c484
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions src/templatebot/services/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,7 @@ async def create_project_from_template( # noqa: PLR0912 PLR0915 C901
reply_blocks: list[SlackBlock] = []
reply_blocks.append(
SlackSectionBlock(
fields=[
SlackMrkdwnTextObject(text="Your new project is ready!")
]
text=SlackMrkdwnTextObject(text="Your new project is ready!")
)
)
if ltd_slug is not None:
Expand All @@ -342,28 +340,24 @@ async def create_project_from_template( # noqa: PLR0912 PLR0915 C901
)
reply_blocks.append(
SlackSectionBlock(
fields=[
SlackMrkdwnTextObject(
text=(
"_The homepage link may return a 404 error "
"until the site has been built._"
)
),
]
text=SlackMrkdwnTextObject(
text=(
"_The homepage link may return a 404 error "
"until the site has been built._"
)
)
)
)
if template.name in ("technote_rst", "technote_md"):
reply_blocks.append(
SlackSectionBlock(
fields=[
SlackMrkdwnTextObject(
text=(
"To learn how to write a Rubin technote "
"visit "
"https://documenteer.lsst.io/technotes/"
)
),
]
text=SlackMrkdwnTextObject(
text=(
"To learn how to write a Rubin technote "
"visit "
"https://documenteer.lsst.io/technotes/"
)
),
)
)
else:
Expand Down

0 comments on commit a27c484

Please sign in to comment.