diff --git a/.coderabbit.yaml b/.coderabbit.yaml deleted file mode 100644 index 9e82aec..0000000 --- a/.coderabbit.yaml +++ /dev/null @@ -1,29 +0,0 @@ -language: "ja" -early_access: false -reviews: - request_changes_workflow: false - high_level_summary: true - poem: true - review_status: true - collapse_walkthrough: false - path_filters: - - "!**/.xml" - path_instructions: - - path: "**/*.js" - instructions: "Review the JavaScript code for conformity with the Google JavaScript style guide, highlighting any deviations." - - path: "tests/**/*" - instructions: | - "Assess the unit test code employing the Mocha testing framework. Confirm that: - - The tests adhere to Mocha's established best practices. - - Test descriptions are sufficiently detailed to clarify the purpose of each test." - auto_review: - enabled: true - ignore_title_keywords: - - "WIP" - - "DO NOT MERGE" - drafts: false - base_branches: - - "develop" - - "feat/.*" -chat: - auto_reply: true \ No newline at end of file diff --git a/.github/workflows/mention-to-chatwork.yml b/.github/workflows/mention-to-chatwork.yml index 9f9a5bd..f9fc152 100644 --- a/.github/workflows/mention-to-chatwork.yml +++ b/.github/workflows/mention-to-chatwork.yml @@ -15,14 +15,14 @@ jobs: mention-to-chatwork: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" - name: Cache npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/release-latest-tag.yml b/.github/workflows/release-latest-tag.yml index d8eb710..5137bdd 100644 --- a/.github/workflows/release-latest-tag.yml +++ b/.github/workflows/release-latest-tag.yml @@ -10,21 +10,21 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" - name: Checkout release run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" git checkout release git merge origin/main --no-commit --no-ff - name: Cache npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} @@ -40,8 +40,4 @@ jobs: git diff-index --quiet HEAD || (git commit -m"update build ${{ github.run_number }}" && git tag latest -f) - name: Push changes run: | - git push \ - "https://${{ github.actor }}:${{ secrets.MY_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" \ - HEAD:release \ - -f \ - --tags + git push origin release -f --tags diff --git a/.github/workflows/reviewer.yml b/.github/workflows/reviewer.yml index 7fa469e..4228e00 100644 --- a/.github/workflows/reviewer.yml +++ b/.github/workflows/reviewer.yml @@ -8,14 +8,14 @@ jobs: notify: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" - name: Cache npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7a76d7..f04e738 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,12 +17,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" - name: Cache npm - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} diff --git a/.tool-versions b/.tool-versions index ac59663..feec184 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -nodejs 18.12.1 +nodejs 20.9.0 diff --git a/LICENSE b/LICENSE index d2cc4f2..cd7c6d7 100644 --- a/LICENSE +++ b/LICENSE @@ -2,6 +2,7 @@ MIT License Copyright (c) 2020 abeyuya Copyright (c) 2023 shikajiro +Copyright (c) 2024 Chatwork Co., Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c909802..7d94425 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Run - uses: shikajiro/actions-mention-to-chatwork@v0 + uses: chatwork/actions-mention-to-chatwork@v0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} api-token: ${{ secrets.CHATWORK_API_TOKEN }} diff --git a/action.yml b/action.yml index 2da046d..9ee6c34 100644 --- a/action.yml +++ b/action.yml @@ -23,7 +23,7 @@ inputs: deprecationMessage: "not use." required: false runs: - using: "node16" + using: "node20" main: "dist/index.js" branding: icon: "message-square" diff --git a/package-lock.json b/package-lock.json index ea4b993..8b28c26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "@types/lodash": "4.14.194", "@typescript-eslint/eslint-plugin": "5.59.0", "@typescript-eslint/parser": "5.59.0", - "@zeit/ncc": "0.22.3", + "@vercel/ncc": "^0.38.1", "eslint": "8.38.0", "jest": "29.5.0", "ts-jest": "29.1.0", @@ -1738,11 +1738,10 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@zeit/ncc": { - "version": "0.22.3", - "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.3.tgz", - "integrity": "sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==", - "deprecated": "@zeit/ncc is no longer maintained. Please use @vercel/ncc instead.", + "node_modules/@vercel/ncc": { + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -6577,10 +6576,10 @@ "eslint-visitor-keys": "^3.3.0" } }, - "@zeit/ncc": { - "version": "0.22.3", - "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.3.tgz", - "integrity": "sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==", + "@vercel/ncc": { + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", + "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", "dev": true }, "acorn": { diff --git a/package.json b/package.json index e11f994..fd6f834 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@types/lodash": "4.14.194", "@typescript-eslint/eslint-plugin": "5.59.0", "@typescript-eslint/parser": "5.59.0", - "@zeit/ncc": "0.22.3", + "@vercel/ncc": "^0.38.1", "eslint": "8.38.0", "jest": "29.5.0", "ts-jest": "29.1.0", @@ -31,12 +31,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/shikajiro/actions-mention-to-chatwork.git" + "url": "git+https://github.com/chatwork/actions-mention-to-chatwork.git" }, "author": "", "license": "ISC", "bugs": { - "url": "https://github.com/shikajiro/actions-mention-to-chatwork/issues" + "url": "https://github.com/chatwork/actions-mention-to-chatwork/issues" }, - "homepage": "https://github.com/shikajiro/actions-mention-to-chatwork#readme" + "homepage": "https://github.com/chatwork/actions-mention-to-chatwork#readme" } diff --git a/src/domain/chatwork.ts b/src/domain/chatwork.ts index 951027c..968611f 100644 --- a/src/domain/chatwork.ts +++ b/src/domain/chatwork.ts @@ -61,4 +61,4 @@ export const buildChatworkErrorMessage = ( ].join("\n"); }; const openIssueLink = - "https://github.com/shikajiro/actions-mention-to-chatwork/issues/new"; + "https://github.com/chatwork/actions-mention-to-chatwork/issues/new";