Skip to content

Commit

Permalink
Make release notes title more concise so it's easier to read at a glance
Browse files Browse the repository at this point in the history
  • Loading branch information
rce committed Dec 2, 2024
1 parent 6fd484a commit 060ad02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci/publish-release-notes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {execSync} from 'node:child_process';

const REPOSITORY_NAME = "Opetushallitus/otuva"
const REPOSITORY_NAME = "otuva"
const SLACK_NOTIFICATIONS_CHANNEL_WEBHOOK_URL = process.env.SLACK_NOTIFICATIONS_CHANNEL_WEBHOOK_URL
const ENVIRONMENT_NAME = process.env.ENVIRONMENT_NAME

Expand Down Expand Up @@ -81,7 +81,7 @@ function generateReleaseNotes(): ReleaseNotes {
}

const date = parseDateTimeFromTag(tags[0])
const header = `🎁 Changes in ${REPOSITORY_NAME} ${ENVIRONMENT_NAME} deployment on ${date}`
const header = `🎁 ${REPOSITORY_NAME} ${ENVIRONMENT_NAME} deployment on ${date}`

const releaseNotes: string[] = [];
let prevTag = tags[0];
Expand All @@ -94,7 +94,7 @@ function generateReleaseNotes(): ReleaseNotes {
const space = logLine.indexOf(' ')
const hash = logLine.substring(0, space)
const message = linkifyMessage(logLine.substring(space + 1))
releaseNotes.push(`\`<https://github.com/${REPOSITORY_NAME}/commit/${hash}|${hash}>\` ${message}`)
releaseNotes.push(`\`<https://github.com/Opetushallitus/${REPOSITORY_NAME}/commit/${hash}|${hash}>\` ${message}`)
}
}
prevTag = currentTag;
Expand Down

0 comments on commit 060ad02

Please sign in to comment.