Skip to content

Commit

Permalink
fix: make discord message title look nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Dec 1, 2023
1 parent 8739899 commit c1495c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord-webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ async function run() {
const targetText = createTargetText(refType, env.REF, permRef, env.REPO)
const suiteRefType = ignorePrecoded(env.SUITE_REF_TYPE)
const suiteRef = ignorePrecoded(env.SUITE_REF)
const titleText = `${env.SUITE}${suiteRefType ? ` ${suiteRefType}` : ''}${
suiteRef ? ` ${suiteRef}` : ''
}`
const titlePostfix =
suiteRefType && suiteRef ? ` (${suiteRefType}: ${suiteRef})` : ''
const titleText = `${env.SUITE}${titlePostfix}`

const webhookContent = {
username: `rspack-ecosystem-ci (${env.WORKFLOW_NAME})`,
Expand Down

0 comments on commit c1495c2

Please sign in to comment.