fix: Adjust action item of slack post message
This commit is contained in:
@@ -16,7 +16,11 @@ const postMessage = async (
|
|||||||
throw new Error(JSON.stringify(response.data));
|
throw new Error(JSON.stringify(response.data));
|
||||||
}
|
}
|
||||||
|
|
||||||
$.actionOutput.data.raw = response?.data?.message;
|
const message = {
|
||||||
|
raw: response?.data?.message,
|
||||||
|
};
|
||||||
|
|
||||||
|
$.setActionItem(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default postMessage;
|
export default postMessage;
|
||||||
|
@@ -69,7 +69,9 @@ const globalVariable = async (
|
|||||||
data: [],
|
data: [],
|
||||||
},
|
},
|
||||||
actionOutput: {
|
actionOutput: {
|
||||||
data: null,
|
data: {
|
||||||
|
raw: null,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
pushTriggerItem: (triggerItem: ITriggerItem) => {
|
pushTriggerItem: (triggerItem: ITriggerItem) => {
|
||||||
$.triggerOutput.data.push(triggerItem);
|
$.triggerOutput.data.push(triggerItem);
|
||||||
|
4
packages/types/index.d.ts
vendored
4
packages/types/index.d.ts
vendored
@@ -223,9 +223,7 @@ export interface IActionOutput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IActionItem {
|
export interface IActionItem {
|
||||||
raw: {
|
raw: IJSONObject;
|
||||||
data?: IJSONObject;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IAction {
|
export interface IAction {
|
||||||
|
Reference in New Issue
Block a user