Skip to content

Commit 9cf2b18

Browse files
committed
feat(Slack): add repository info
1 parent 14e5d05 commit 9cf2b18

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/locale/en-us.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ export const LOCALE_EN_US: Locale = {
1818
'required.required': 'Required',
1919
'required.optional': 'Optional',
2020

21-
'button.goto-api-documentation': 'Go to API documentation'
21+
'button.goto-api-documentation': 'Go to API documentation',
22+
23+
repository: 'Repository'
2224
}

src/locale/ko-kr.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ export const LOCALE_KO_KR: Locale = {
1818
'required.required': '필수',
1919
'required.optional': '선택',
2020

21-
'button.goto-api-documentation': 'API 문서 바로가기'
21+
'button.goto-api-documentation': 'API 문서 바로가기',
22+
23+
repository: '저장소'
2224
}

src/services/slack.ts

+6
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ export class Slack {
150150
type: 'mrkdwn',
151151
text: `*${translate('endpoint.singular')}:*\n ${endpoint}`
152152
},
153+
{
154+
type: 'mrkdwn',
155+
text: `*${translate('repository')}: *\n<https://github.com/${
156+
this.githubConfig.repository
157+
}|${this.githubConfig.repository}>`
158+
},
153159
{
154160
type: 'mrkdwn',
155161
text: `*${translate('changed.parameters')} ${translate(

src/types/locale.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ export interface Locale {
1717
'required.optional': string
1818

1919
'button.goto-api-documentation': string
20+
21+
repository: string
2022
}

0 commit comments

Comments
 (0)