Issue Handler
@open-innovations
code:
data:privatelast updated:2 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
active
last updated:-last event:-
steps.
auth
auth
to use OAuth tokens and API keys in code via theauths object
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps) => {
1
2
3
4
5
6
7
8
9
}
10
// Reject request if origin not in defined list
const { origin } = event.headers;
const validOrigins = process.env.ISSUER_VALID_ORIGINS.split(/\s/);
console.dir({
  validOrigins,
  origin,
})
// Reject request if honeypot variables are set
steps.
info
auth
to use OAuth tokens and API keys in code via theauths object
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps) => {
1
2
3
4
5
6
7
8
}
9
const { org = 'open-innovations', repo } = event.query;
const { title, description } = event.body;
return({
  repo: `${org}/${repo}`,
  title,
  description,
})
steps.
create_issue

Create a new issue in a Gihub repo.

configure

The title of the issue.

 
Enter a value for Title

Optionally add details describing the issue (this field supports Github markdown).

 
Enter a value for Body

Optionally enter Github usernames to assign to this issue. Add one username per row or disable structured mode to pass an array of usernames in {{...}}. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise.

[0]:
 
Enter a value for Assignees