Skip to content

Commit

Permalink
fix: remove labels define error (#86)
Browse files Browse the repository at this point in the history
* fix: remove labels define error

* chore: up dumi version

* chore: adjust app
  • Loading branch information
xrkffgg committed Sep 5, 2021
1 parent 207593c commit f83978e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 26 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Expand Up @@ -11294,14 +11294,14 @@ async function doRemoveAssignees(owner, repo, issueNumber, assignees) {

async function doRemoveLabels(owner, repo, issueNumber, labels) {
const dealLabels = dealStringToArr(labels);
for (label of dealLabels) {
for (const label of dealLabels) {
await octokit.issues.removeLabel({
owner,
repo,
issue_number: issueNumber,
name: label,
});
core.info(`Actions: [remove-labels-foreach][${label}] success!`);
core.info(`Actions: [remove-label][${label}] success!`);
}
core.info(`Actions: [remove-labels][${labels}] success!`);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"@umijs/fabric": "^2.5.6",
"@vercel/ncc": "^0.25.1",
"common-tags": "^1.8.0",
"dumi": "^1.1.18",
"dumi": "^1.1.26",
"gh-pages": "^3.1.0"
}
}
2 changes: 1 addition & 1 deletion src/app.ts
@@ -1,4 +1,4 @@
// Just for dumi style
// For dumi style
import '../less/main.less';
import '../less/markdown.less';
import '../less/dumi.less';
4 changes: 2 additions & 2 deletions src/base.js
Expand Up @@ -290,14 +290,14 @@ async function doRemoveAssignees(owner, repo, issueNumber, assignees) {

async function doRemoveLabels(owner, repo, issueNumber, labels) {
const dealLabels = dealStringToArr(labels);
for (label of dealLabels) {
for (const label of dealLabels) {
await octokit.issues.removeLabel({
owner,
repo,
issue_number: issueNumber,
name: label,
});
core.info(`Actions: [remove-labels-foreach][${label}] success!`);
core.info(`Actions: [remove-label][${label}] success!`);
}
core.info(`Actions: [remove-labels][${labels}] success!`);
}
Expand Down
42 changes: 22 additions & 20 deletions yarn.lock
Expand Up @@ -4876,10 +4876,10 @@
react-router-dom "5.2.0"
regenerator-runtime "0.13.5"

"@umijs/preset-dumi@1.1.18":
version "1.1.18"
resolved "https://registry.yarnpkg.com/@umijs/preset-dumi/-/preset-dumi-1.1.18.tgz#122740926fff0b3028dbaad2157cb597344ebb48"
integrity sha512-3G1RmOZP6YFw9dWza/RoXnlMZlrCjhUPftuQpjAe2EcpqrZ8J7jI1CSeCuINARY6+mTCQ65R/JS0RgNundhRvA==
"@umijs/preset-dumi@1.1.26":
version "1.1.26"
resolved "https://registry.yarnpkg.com/@umijs/preset-dumi/-/preset-dumi-1.1.26.tgz#864bb0b004816df6cb985ab1f1557646cc67e94f"
integrity sha512-z4Gh3K0oSobWdTAjZochy9c6J2qkWFTkPDLCPOiDfB9zUACErAFVqSJ+trKbC7UvdEQ18y2u2wY/j2Jf+5MQeg==
dependencies:
"@babel/core" "^7.7.2"
"@babel/generator" "^7.7.2"
Expand All @@ -4895,7 +4895,7 @@
copy-text-to-clipboard "^2.2.0"
deepmerge "^4.2.2"
dumi-assets-types "1.0.0"
dumi-theme-default "1.1.1"
dumi-theme-default "1.1.9"
enhanced-resolve "^4.1.1"
github-slugger "^1.3.0"
hast-util-has-property "^1.0.4"
Expand All @@ -4904,9 +4904,11 @@
hast-util-to-html "^7.1.1"
hast-util-to-string "^1.0.2"
hosted-git-info "^3.0.2"
ignore "^5.1.8"
js-yaml "^3.13.1"
lodash.throttle "^4.1.1"
lz-string "^1.4.4"
react-docgen-typescript "^1.20.5"
react-docgen-typescript-dumi-tmp "^1.22.1-0"
rehype-autolink-headings "^4.0.0"
rehype-mathjax "^3.1.0"
rehype-remove-comments "^4.0.2"
Expand Down Expand Up @@ -9662,21 +9664,21 @@ dumi-assets-types@1.0.0:
resolved "https://registry.yarnpkg.com/dumi-assets-types/-/dumi-assets-types-1.0.0.tgz#d5368cb11045b203bf1ef1080e553b2287a2ec81"
integrity sha512-7nhSeWM15vybbUAMPLZsdls2jKoHB2UU4P1RM6kLPucuS8eC/HSmufquFqTTYtX4oIDLHGtil/dVtMreNGwhdA==

dumi-theme-default@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/dumi-theme-default/-/dumi-theme-default-1.1.1.tgz#cfd9fcf93045a2e2469dce407a05616be9c7c8a5"
integrity sha512-yn2oA+opZpGW9s1FKtLI2JQBkULRx/KzGdUh36bXKcDC7+QUxzYF1HXaNNu4jL+/Y0F4lqHuzEsif5VPjh4ZDg==
dumi-theme-default@1.1.9:
version "1.1.9"
resolved "https://registry.yarnpkg.com/dumi-theme-default/-/dumi-theme-default-1.1.9.tgz#e7aad356b5ecafcd3a8e2e57ddd811197527e397"
integrity sha512-wO1+qDlW8ZOEiFI5ZS00X60vsJ++7aHd7CbxfyrF5eMAm7T37Izi0iKDNoQtKzZrb8OThNAkCh+DVubindfDXA==
dependencies:
prism-react-renderer "^1.1.1"
prismjs "^1.21.0"
rc-tabs "^11.7.1"

dumi@^1.1.18:
version "1.1.18"
resolved "https://registry.yarnpkg.com/dumi/-/dumi-1.1.18.tgz#2ed4eb2797753f5dc35ce9033d683280a4e2860e"
integrity sha512-x3biGoYYBcCfQWYt9WPRjeFI+p7XOw8NpvApQJHLiWL7thErmwXhpby8XoYGtbasp63IBnY/dNuXrSCBUGMRkw==
dumi@^1.1.26:
version "1.1.26"
resolved "https://registry.yarnpkg.com/dumi/-/dumi-1.1.26.tgz#7247ed9fd66ae7ac81b07e21c99d9fd89f5cf6a9"
integrity sha512-gnr8I4MhdeePEjg2Yt90jK90SJIDRC64wHqoN89c63aWWW2kNcs3c069uizBy8ZQcHqeRJxa3KJE0w+FslmVOA==
dependencies:
"@umijs/preset-dumi" "1.1.18"
"@umijs/preset-dumi" "1.1.26"
umi "^3.0.0"

duplexer2@0.0.2:
Expand Down Expand Up @@ -19410,6 +19412,11 @@ react-docgen-external-proptypes-handler@^1.0.2:
resolved "https://registry.yarnpkg.com/react-docgen-external-proptypes-handler/-/react-docgen-external-proptypes-handler-1.0.3.tgz#53ce11d4ec86c67596558da0464f0ec15b6e0d64"
integrity sha512-jWFA7NCdSnNs9Yr7xAhcUJEwH7qhIKxsyXF5yzzriFiBBfGIlkdzslGWRW4GFD5B8Fu24MTDM1G5q8M3L8+Qdw==

react-docgen-typescript-dumi-tmp@^1.22.1-0:
version "1.22.1-0"
resolved "https://registry.yarnpkg.com/react-docgen-typescript-dumi-tmp/-/react-docgen-typescript-dumi-tmp-1.22.1-0.tgz#6f452de05c5c114a6e1dd60b34930afaa7ae39a0"
integrity sha512-wjuAm1yj+ZZucovow2VF0MXkH2SGZ+squZxfNdnam3oyUbHy/xZaU1ZabCn7rY+13ZFx0/NLda+ZuBgF3g8vBA==

react-docgen-typescript-loader@^3.0.0-rc.0:
version "3.7.2"
resolved "https://registry.yarnpkg.com/react-docgen-typescript-loader/-/react-docgen-typescript-loader-3.7.2.tgz#45cb2305652c0602767242a8700ad1ebd66bbbbd"
Expand All @@ -19424,11 +19431,6 @@ react-docgen-typescript@^1.12.4, react-docgen-typescript@^1.15.0:
resolved "https://registry.yarnpkg.com/react-docgen-typescript/-/react-docgen-typescript-1.22.0.tgz#00232c8e8e47f4437cac133b879b3e9437284bee"
integrity sha512-MPLbF8vzRwAG3GcjdL+OHQlhgtWsLTXs+7uJiHfEeT3Ur7IsZaNYqRTLQ9sj2nB6M6jylcPCeCmH7qbszJmecg==

react-docgen-typescript@^1.20.5:
version "1.21.0"
resolved "https://registry.yarnpkg.com/react-docgen-typescript/-/react-docgen-typescript-1.21.0.tgz#3385dde81b63eb1d54f86a935bd4f65f96c821f6"
integrity sha512-E4y/OcXwHukgiVafCGlxwoNHr4BDmM70Ww7oimL/QkMo5dmGALhceewe/xmVjdMxxI7E5syOGOc9/tbHL742rg==

react-docgen@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/react-docgen/-/react-docgen-3.0.0.tgz#79c6e1b1870480c3c2bc1a65bede0577a11c38cd"
Expand Down

0 comments on commit f83978e

Please sign in to comment.