test: con

This commit is contained in:
元凛
2022-02-10 10:49:12 +08:00
parent 3523cc98b0
commit 20dffb5f1d
4 changed files with 8 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ import {
let ICE: IIssueCoreEngine;
export function initAdvancedICE(_ICE: IIssueCoreEngine) {
console.log(_ICE)
ICE = _ICE;
}

View File

@@ -112,7 +112,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
}
public async doExeAction(action: TAction) {
const { owner, repo, issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this;
const { issueNumber, emoji, labels, assignees, title, body, updateMode, state, ctx } = this;
switch (action) {
// ---[ Base Begin ]--->>>
case 'add-assignees': {

View File

@@ -9,8 +9,10 @@ import type { TAction } from './types';
async function main() {
try {
const actions = core.getInput('actions', { required: true }) as string;
console.log(actions)
const IHE = new IssueHelperEngine(github.context);
for (const action of dealStringToArr(actions)) {
console.log(action)
await IHE.doExeAction(action as TAction);
}
core.baseInfo(`\n${THANKS}`);