mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-10-14 15:53:55 +08:00
test: con
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -14622,6 +14622,7 @@ const util_1 = __nccwpck_require__(9604);
|
|||||||
const base_1 = __nccwpck_require__(8824);
|
const base_1 = __nccwpck_require__(8824);
|
||||||
let ICE;
|
let ICE;
|
||||||
function initAdvancedICE(_ICE) {
|
function initAdvancedICE(_ICE) {
|
||||||
|
console.log(_ICE);
|
||||||
ICE = _ICE;
|
ICE = _ICE;
|
||||||
}
|
}
|
||||||
exports.initAdvancedICE = initAdvancedICE;
|
exports.initAdvancedICE = initAdvancedICE;
|
||||||
@@ -15301,7 +15302,7 @@ class IssueHelperEngine {
|
|||||||
}
|
}
|
||||||
doExeAction(action) {
|
doExeAction(action) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
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) {
|
switch (action) {
|
||||||
// ---[ Base Begin ]--->>>
|
// ---[ Base Begin ]--->>>
|
||||||
case 'add-assignees': {
|
case 'add-assignees': {
|
||||||
@@ -15905,8 +15906,10 @@ function main() {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const actions = core.getInput('actions', { required: true });
|
const actions = core.getInput('actions', { required: true });
|
||||||
|
console.log(actions);
|
||||||
const IHE = new helper_1.IssueHelperEngine(github.context);
|
const IHE = new helper_1.IssueHelperEngine(github.context);
|
||||||
for (const action of (0, actions_util_1.dealStringToArr)(actions)) {
|
for (const action of (0, actions_util_1.dealStringToArr)(actions)) {
|
||||||
|
console.log(action);
|
||||||
yield IHE.doExeAction(action);
|
yield IHE.doExeAction(action);
|
||||||
}
|
}
|
||||||
core.baseInfo(`\n${actions_util_1.THANKS}`);
|
core.baseInfo(`\n${actions_util_1.THANKS}`);
|
||||||
|
@@ -19,6 +19,7 @@ import {
|
|||||||
|
|
||||||
let ICE: IIssueCoreEngine;
|
let ICE: IIssueCoreEngine;
|
||||||
export function initAdvancedICE(_ICE: IIssueCoreEngine) {
|
export function initAdvancedICE(_ICE: IIssueCoreEngine) {
|
||||||
|
console.log(_ICE)
|
||||||
ICE = _ICE;
|
ICE = _ICE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ export class IssueHelperEngine implements IIssueHelperEngine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async doExeAction(action: TAction) {
|
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) {
|
switch (action) {
|
||||||
// ---[ Base Begin ]--->>>
|
// ---[ Base Begin ]--->>>
|
||||||
case 'add-assignees': {
|
case 'add-assignees': {
|
||||||
|
@@ -9,8 +9,10 @@ import type { TAction } from './types';
|
|||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
const actions = core.getInput('actions', { required: true }) as string;
|
const actions = core.getInput('actions', { required: true }) as string;
|
||||||
|
console.log(actions)
|
||||||
const IHE = new IssueHelperEngine(github.context);
|
const IHE = new IssueHelperEngine(github.context);
|
||||||
for (const action of dealStringToArr(actions)) {
|
for (const action of dealStringToArr(actions)) {
|
||||||
|
console.log(action)
|
||||||
await IHE.doExeAction(action as TAction);
|
await IHE.doExeAction(action as TAction);
|
||||||
}
|
}
|
||||||
core.baseInfo(`\n${THANKS}`);
|
core.baseInfo(`\n${THANKS}`);
|
||||||
|
Reference in New Issue
Block a user