Skip to content

Release/v0.2.2 beta #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2 # must fetch FETCH_HEAD~1 and at least two commits are needed.

- name: Test Local Action And Capture Output
id: test-action
Expand Down
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/locale/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ export const LOCALE_EN_US: Locale = {

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

repository: 'Repository'
repository: 'Repository',

'exception.missing-description': 'No description provided. Please add one'
}
4 changes: 3 additions & 1 deletion src/locale/ko-kr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ export const LOCALE_KO_KR: Locale = {

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

repository: '저장소'
repository: '저장소',

'exception.missing-description': '설명이 없습니다. 추가해주세요'
}
9 changes: 8 additions & 1 deletion src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ export class Slack {
elements: [
{
type: 'text',
text: param.description
text:
param.description ||
translate('exception.missing-description')
}
]
},
Expand Down Expand Up @@ -311,6 +313,11 @@ export class Slack {
changedResponseBody
} = await this._sendEndpoint(diff)

console.log('thread_ts:', thread_ts)
console.log('changedParameters:', changedParameters)
console.log('changedRequestBody:', changedRequestBody)
console.log('changedResponseBody:', changedResponseBody)

if (changedParameters.length > 0) {
await this._sendDetailItem('parameters', changedParameters, thread_ts)
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ export interface Locale {
'button.goto-api-documentation': string

repository: string

'exception.missing-description': string
}
4 changes: 2 additions & 2 deletions src/utils/validate-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export function validateInputAndSetConfig(): Config {
let headFile: object
if (isLocal) {
baseFile = JSON.parse(
fs.readFileSync('./.local/examples/openapi-base-aws.json').toString()
fs.readFileSync('./.local/examples/openapi-base.json').toString()
)
headFile = JSON.parse(
fs.readFileSync('./.local/examples/openapi-head-aws.json').toString()
fs.readFileSync('./.local/examples/openapi-head.json').toString()
)
} else {
// github env
Expand Down
Loading