refactor: change to title-excludes

This commit is contained in:
xrkffgg
2021-03-21 17:57:14 +08:00
parent a66760a95f
commit 1d2d39036b
11 changed files with 1773 additions and 6189 deletions

View File

@@ -28,7 +28,7 @@ direction = direction === 'desc' ? 'desc' : 'asc';
const commentAuth = core.getInput('comment-auth');
const bodyIncludes = core.getInput('body-includes');
const titleIncludes = core.getInput('title-includes');
const titleRemove = core.getInput('title-remove');
const titleRemove = core.getInput('title-excludes');
const assigneeIncludes = core.getInput('assignee-includes');
let issueState = core.getInput('issue-state') || 'open';
@@ -221,9 +221,7 @@ async function doMonthStatistics(owner, repo, labels, assignees) {
});
}
}
let now = dayjs()
.utc()
.format('YYYY-MM-DD HH:mm:ss');
let now = dayjs().utc().format('YYYY-MM-DD HH:mm:ss');
let body = `
- Created time: ${now}

View File

@@ -110,11 +110,7 @@ async function getIssuesInMonth(owner, repo, thisMonth, page = 1) {
// **************************************************************************
function getCreatedMonth(d) {
return (
dayjs(d)
.utc()
.month() + 1
);
return dayjs(d).utc().month() + 1;
}
// **************************************************************************