mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 07:43:46 +08:00
test: con
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
|
||||
let ICE: IIssueCoreEngine;
|
||||
export function initAdvancedICE(_ICE: IIssueCoreEngine) {
|
||||
console.log(_ICE)
|
||||
ICE = _ICE;
|
||||
}
|
||||
|
||||
|
@@ -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': {
|
||||
|
@@ -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}`);
|
||||
|
Reference in New Issue
Block a user