Skip to content

Commit

Permalink
VER 2.3.4
Browse files Browse the repository at this point in the history
^@ fk-git-commit-msg-std
  • Loading branch information
ForkKILLET committed Jul 19, 2021
1 parent faff7ca commit e9b8547
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/

14 changes: 1 addition & 13 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,5 @@ inputs:

runs:
using: node12
steps:
- run: |
yarn add -D fk-git-commit-msg-std
shell: bash
- run: |
node << 'CODE'
const { S, I } = require("fk-git-commit-msg-std/check.js")
const A = require(".gitmsgrc.js")
const M = JSON.parse(process.env.INPUT_MSGS)
const F = I(M, A)
process.exit(F)
CODE
shell: bash
main: check.js

7 changes: 7 additions & 0 deletions check.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,10 @@ const I = (msgs, args) => {

module.exports = { S, C, I }

if (process.env.INPUT_MSGS) {
const A = require(".gitmsgrc.js")
const M = JSON.parse(process.env.INPUT_MSGS)
const F = I(M, A)
process.exit(F)
}

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"main": "check.js",
"repository": "https://github.com/ForkFG/FkGitCommitInfoStd.git",
"author": "ForkΨKILLET <fork_killet@qq.com>",
"license": "MIT"
"license": "MIT",
"dependencies": {
"@actions/core": "^1.4.0",
"@actions/github": "^5.0.0"
}
}
153 changes: 153 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"@actions/core@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524"
integrity sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg==

"@actions/github@^5.0.0":
version "5.0.0"
resolved "https://registry.nlark.com/@actions/github/download/@actions/github-5.0.0.tgz#1754127976c50bd88b2e905f10d204d76d1472f8"
integrity sha1-F1QSeXbFC9iLLpBfENIE120Ucvg=
dependencies:
"@actions/http-client" "^1.0.11"
"@octokit/core" "^3.4.0"
"@octokit/plugin-paginate-rest" "^2.13.3"
"@octokit/plugin-rest-endpoint-methods" "^5.1.1"

"@actions/http-client@^1.0.11":
version "1.0.11"
resolved "https://registry.nlark.com/@actions/http-client/download/@actions/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0"
integrity sha1-xYsS6aqLFZ7jnn3Wy9DpHZBWM8A=
dependencies:
tunnel "0.0.6"

"@octokit/auth-token@^2.4.4":
version "2.4.5"
resolved "https://registry.npm.taobao.org/@octokit/auth-token/download/@octokit/auth-token-2.4.5.tgz#568ccfb8cb46f36441fac094ce34f7a875b197f3"
integrity sha1-VozPuMtG82RB+sCUzjT3qHWxl/M=
dependencies:
"@octokit/types" "^6.0.3"

"@octokit/core@^3.4.0":
version "3.5.1"
resolved "https://registry.nlark.com/@octokit/core/download/@octokit/core-3.5.1.tgz#8601ceeb1ec0e1b1b8217b960a413ed8e947809b"
integrity sha1-hgHO6x7A4bG4IXuWCkE+2OlHgJs=
dependencies:
"@octokit/auth-token" "^2.4.4"
"@octokit/graphql" "^4.5.8"
"@octokit/request" "^5.6.0"
"@octokit/request-error" "^2.0.5"
"@octokit/types" "^6.0.3"
before-after-hook "^2.2.0"
universal-user-agent "^6.0.0"

"@octokit/endpoint@^6.0.1":
version "6.0.12"
resolved "https://registry.nlark.com/@octokit/endpoint/download/@octokit/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658"
integrity sha1-O01HpLDnmxAn+4111CIZKLLQVlg=
dependencies:
"@octokit/types" "^6.0.3"
is-plain-object "^5.0.0"
universal-user-agent "^6.0.0"

"@octokit/graphql@^4.5.8":
version "4.6.4"
resolved "https://registry.nlark.com/@octokit/graphql/download/@octokit/graphql-4.6.4.tgz#0c3f5bed440822182e972317122acb65d311a5ed"
integrity sha1-DD9b7UQIIhgulyMXEirLZdMRpe0=
dependencies:
"@octokit/request" "^5.6.0"
"@octokit/types" "^6.0.3"
universal-user-agent "^6.0.0"

"@octokit/openapi-types@^8.3.0":
version "8.3.0"
resolved "https://registry.nlark.com/@octokit/openapi-types/download/@octokit/openapi-types-8.3.0.tgz?cache=0&sync_timestamp=1626197737942&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40octokit%2Fopenapi-types%2Fdownload%2F%40octokit%2Fopenapi-types-8.3.0.tgz#8bc912edae8c03e002882cf1e29b595b7da9b441"
integrity sha1-i8kS7a6MA+ACiCzx4ptZW32ptEE=

"@octokit/plugin-paginate-rest@^2.13.3":
version "2.14.0"
resolved "https://registry.nlark.com/@octokit/plugin-paginate-rest/download/@octokit/plugin-paginate-rest-2.14.0.tgz?cache=0&sync_timestamp=1625273249581&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40octokit%2Fplugin-paginate-rest%2Fdownload%2F%40octokit%2Fplugin-paginate-rest-2.14.0.tgz#f469cb4a908792fb44679c5973d8bba820c88b0f"
integrity sha1-9GnLSpCHkvtEZ5xZc9i7qCDIiw8=
dependencies:
"@octokit/types" "^6.18.0"

"@octokit/plugin-rest-endpoint-methods@^5.1.1":
version "5.4.1"
resolved "https://registry.nlark.com/@octokit/plugin-rest-endpoint-methods/download/@octokit/plugin-rest-endpoint-methods-5.4.1.tgz#540ec90bb753dcaa682ee9f2cd6efdde9132fa90"
integrity sha1-VA7JC7dT3KpoLunyzW793pEy+pA=
dependencies:
"@octokit/types" "^6.18.1"
deprecation "^2.3.1"

"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0":
version "2.1.0"
resolved "https://registry.nlark.com/@octokit/request-error/download/@octokit/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677"
integrity sha1-nhUDV4Mb/HiNE6T9SxkT1gx01nc=
dependencies:
"@octokit/types" "^6.0.3"
deprecation "^2.0.0"
once "^1.4.0"

"@octokit/request@^5.6.0":
version "5.6.0"
resolved "https://registry.nlark.com/@octokit/request/download/@octokit/request-5.6.0.tgz#6084861b6e4fa21dc40c8e2a739ec5eff597e672"
integrity sha1-YISGG25Poh3EDI4qc57F7/WX5nI=
dependencies:
"@octokit/endpoint" "^6.0.1"
"@octokit/request-error" "^2.1.0"
"@octokit/types" "^6.16.1"
is-plain-object "^5.0.0"
node-fetch "^2.6.1"
universal-user-agent "^6.0.0"

"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.18.0", "@octokit/types@^6.18.1":
version "6.19.0"
resolved "https://registry.nlark.com/@octokit/types/download/@octokit/types-6.19.0.tgz?cache=0&sync_timestamp=1626197730431&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40octokit%2Ftypes%2Fdownload%2F%40octokit%2Ftypes-6.19.0.tgz#e2b6fedb10c8b53cf4574aa5d1a8a5611295297a"
integrity sha1-4rb+2xDItTz0V0ql0ailYRKVKXo=
dependencies:
"@octokit/openapi-types" "^8.3.0"

before-after-hook@^2.2.0:
version "2.2.2"
resolved "https://registry.nlark.com/before-after-hook/download/before-after-hook-2.2.2.tgz#a6e8ca41028d90ee2c24222f201c90956091613e"
integrity sha1-pujKQQKNkO4sJCIvIByQlWCRYT4=

deprecation@^2.0.0, deprecation@^2.3.1:
version "2.3.1"
resolved "https://registry.npm.taobao.org/deprecation/download/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919"
integrity sha1-Y2jL20Cr8zc7UlrIfkomDDpwCRk=

is-plain-object@^5.0.0:
version "5.0.0"
resolved "https://registry.nlark.com/is-plain-object/download/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
integrity sha1-RCf1CrNCnpAl6n1S6QQ6nvQVk0Q=

node-fetch@^2.6.1:
version "2.6.1"
resolved "https://registry.nlark.com/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&sync_timestamp=1626684812087&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI=

once@^1.4.0:
version "1.4.0"
resolved "https://registry.nlark.com/once/download/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
dependencies:
wrappy "1"

tunnel@0.0.6:
version "0.0.6"
resolved "https://registry.nlark.com/tunnel/download/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha1-cvExSzSlsZLbASMk3yzFh8pH+Sw=

universal-user-agent@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/universal-user-agent/download/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee"
integrity sha1-M4H4UDslHA2c0hvB3pOeyd9UgO4=

wrappy@1:
version "1.0.2"
resolved "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=

0 comments on commit e9b8547

Please sign in to comment.