Skip to content

Commit c01a826

Browse files
authored
Merge pull request #15 from jaychang99/release/v0.2.2-beta
Release/v0.2.2 beta
2 parents 087fec7 + 1eaa8f6 commit c01a826

File tree

9 files changed

+34
-12
lines changed

9 files changed

+34
-12
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
- name: Checkout
5757
id: checkout
5858
uses: actions/checkout@v4
59+
with:
60+
fetch-depth: 2 # must fetch FETCH_HEAD~1 and at least two commits are needed.
5961

6062
- name: Test Local Action And Capture Output
6163
id: test-action

badges/coverage.svg

+1-1
Loading

dist/index.js

+12-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locale/en-us.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ export const LOCALE_EN_US: Locale = {
2020

2121
'button.goto-api-documentation': 'Go to API documentation',
2222

23-
repository: 'Repository'
23+
repository: 'Repository',
24+
25+
'exception.missing-description': 'No description provided. Please add one'
2426
}

src/locale/ko-kr.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ export const LOCALE_KO_KR: Locale = {
2020

2121
'button.goto-api-documentation': 'API 문서 바로가기',
2222

23-
repository: '저장소'
23+
repository: '저장소',
24+
25+
'exception.missing-description': '설명이 없습니다. 추가해주세요'
2426
}

src/services/slack.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ export class Slack {
248248
elements: [
249249
{
250250
type: 'text',
251-
text: param.description
251+
text:
252+
param.description ||
253+
translate('exception.missing-description')
252254
}
253255
]
254256
},
@@ -311,6 +313,11 @@ export class Slack {
311313
changedResponseBody
312314
} = await this._sendEndpoint(diff)
313315

316+
console.log('thread_ts:', thread_ts)
317+
console.log('changedParameters:', changedParameters)
318+
console.log('changedRequestBody:', changedRequestBody)
319+
console.log('changedResponseBody:', changedResponseBody)
320+
314321
if (changedParameters.length > 0) {
315322
await this._sendDetailItem('parameters', changedParameters, thread_ts)
316323
}

src/types/locale.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ export interface Locale {
1919
'button.goto-api-documentation': string
2020

2121
repository: string
22+
23+
'exception.missing-description': string
2224
}

src/utils/validate-input.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export function validateInputAndSetConfig(): Config {
7676
let headFile: object
7777
if (isLocal) {
7878
baseFile = JSON.parse(
79-
fs.readFileSync('./.local/examples/openapi-base-aws.json').toString()
79+
fs.readFileSync('./.local/examples/openapi-base.json').toString()
8080
)
8181
headFile = JSON.parse(
82-
fs.readFileSync('./.local/examples/openapi-head-aws.json').toString()
82+
fs.readFileSync('./.local/examples/openapi-head.json').toString()
8383
)
8484
} else {
8585
// github env

0 commit comments

Comments
 (0)