Contract: pass approval option warnings, omit threadId on host pushes
This commit is contained in:
1 parent
7ad1045be4
commit
21215210e3
6 files changed
+12
-10
No files matched your search
@@ -64,7 +64,7 @@ function pendingRequest(thread: ThreadShell, turnItems: BoundedThread["projectio
|
||||
);
|
||||
if (item && isApprovalRequest(item)) {
|
||||
const options = item.options?.length
|
||||
? item.options.map(({ decision, label }) => ({ decision, label }))
|
||||
? item.options.map(({ decision, label, warning }) => ({ decision, label, ...(warning ? { warning } : {}) }))
|
||||
: [
|
||||
{ decision: "accept" as const, label: "Allow" },
|
||||
{ decision: "decline" as const, label: "Deny" },
|
||||
|
||||
Reference in new issue
Block a user