Skip to content

Commit

Permalink
refa: refactor to koishi v4
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Dec 11, 2024
1 parent 405acd6 commit e9399f7
Show file tree
Hide file tree
Showing 28 changed files with 127 additions and 5,040 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
insert_final_newline = true
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

39 changes: 0 additions & 39 deletions .eslintrc.yml

This file was deleted.

9 changes: 7 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Auto detect text files and perform LF normalization
* text=auto
* text eol=lf

*.png -text
*.jpg -text
*.ico -text
*.gif -text
*.webp -text
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
lib
dist
external

yarn.lock
node_modules/
node_modules
npm-debug.log
yarn-debug.log
yarn-error.log
package-lock.json
tsconfig.tsbuildinfo

.eslintcache
.DS_Store
.idea
.vscode
Expand Down
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# [koishi-plugin-github-webhook](https://koishi.js.org/plugins/other/github-webhook)
# koishi-plugin-github-webhook

Using GitHub Webhooks with Koishi.
[![npm](https://img.shields.io/npm/v/koishi-plugin-github-webhook?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-github-webhook)

github webhook
17 changes: 0 additions & 17 deletions jest.config.js

This file was deleted.

60 changes: 21 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,36 @@
{
"name": "koishi-plugin-github-webhook",
"description": "GitHub webhook plugin for Koishi",
"version": "1.0.0-alpha.1",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"description": "github webhook",
"version": "2.0.2",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
"lib",
"dist"
],
"author": "Shigma <[email protected]>",
"license": "MIT",
"scripts": {
"lint": "eslint src --ext .ts",
"prepack": "tsc -b"
},
"repository": {
"type": "git",
"url": "git+https://github.com/koishijs/plugin-github-webhook.git"
},
"bugs": {
"url": "https://github.com/koishijs/plugin-github-webhook/issues"
},
"homepage": "https://koishi.js.org/plugins/other/github-webhook",
"keywords": [
"bot",
"qqbot",
"cqhttp",
"coolq",
"chatbot",
"koishi",
"plugin",
"github",
"webhook"
"plugin"
],
"koishi": {
"service": {
"required": [
"server"
]
}
},
"peerDependencies": {
"@koishijs/plugin-server": "^3.2.4",
"koishi": "^4.18.0"
},
"devDependencies": {
"@types/jest": "^24.9.0",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest": "^24.9.0",
"ts-jest": "^24.3.0",
"koishi-test-utils": "^2.1.0",
"typescript": "^3.7.5"
"@koishijs/plugin-server": "^3.2.4",
"@koishijs/plugin-event-server": "^0.0.1",
"koishi": "^4.18.0"
},
"dependencies": {
"@octokit/webhooks": "^7.0.0",
"koishi-core": "^1.6.0"
"@octokit/webhooks-types": "^7.6.1"
}
}
Loading

0 comments on commit e9399f7

Please sign in to comment.