docs: up 2.3.1

This commit is contained in:
元凛
2021-08-09 23:48:37 +08:00
parent db8ab69114
commit eb91a70ccc
12 changed files with 116 additions and 109 deletions

6
dist/index.js vendored
View File

@@ -11800,6 +11800,7 @@ async function doQueryIssues(owner, repo, labels, state, creator) {
let issues = [];
let issueNumbers = [];
if (res.length) {
const excludeLabelsArr = dealStringToArr(excludeLabels);
res.forEach(iss => {
const a = bodyIncludes ? iss.body.includes(bodyIncludes) : true;
const b = titleIncludes ? iss.title.includes(titleIncludes) : true;
@@ -11809,10 +11810,9 @@ async function doQueryIssues(owner, repo, labels, state, creator) {
* You can identify pull requests by the pull_request key.
*/
if (a && b && iss.pull_request === undefined) {
if (excludeLabels) {
const labels = dealStringToArr(excludeLabels);
if (excludeLabelsArr.length) {
for (let i = 0; i < iss.labels.length; i += 1) {
if (labels.includes(iss.labels[i].name)) return;
if (excludeLabelsArr.includes(iss.labels[i].name)) return;
}
}