Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe), packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier (CLI app), vendor/zapier-platform, and research/zapier vendor corpus. Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
38
vendor/zapier-platform/example-apps/github/creates/issue.js
vendored
Normal file
38
vendor/zapier-platform/example-apps/github/creates/issue.js
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
const sample = require('../samples/sample_issue');
|
||||
|
||||
const createIssue = (z, bundle) => {
|
||||
const responsePromise = z.request({
|
||||
method: 'POST',
|
||||
url: `https://api.github.com/repos/${bundle.inputData.repo}/issues`,
|
||||
body: {
|
||||
title: bundle.inputData.title,
|
||||
body: bundle.inputData.body,
|
||||
},
|
||||
});
|
||||
return responsePromise.then((response) => response.data);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
key: 'issue',
|
||||
noun: 'Issue',
|
||||
|
||||
display: {
|
||||
label: 'Create Issue',
|
||||
description: 'Creates an issue.',
|
||||
},
|
||||
|
||||
operation: {
|
||||
inputFields: [
|
||||
{
|
||||
key: 'repo',
|
||||
label: 'Repo',
|
||||
required: true,
|
||||
dynamic: 'repo.full_name.full_name',
|
||||
},
|
||||
{ key: 'title', label: 'Title', required: true },
|
||||
{ key: 'body', label: 'Body', required: false },
|
||||
],
|
||||
perform: createIssue,
|
||||
sample: sample,
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue