github/issue-create
githubRead-writeCreate a GitHub issue
github.com
Last 7 days
0
Last 30 days
0
All time
0
github/issue-create.js
/* @meta
{
"name": "github/issue-create",
"description": "Create a GitHub issue",
"domain": "github.com",
"args": {
"repo": {"required": true, "description": "owner/repo format"},
"title": {"required": true, "description": "Issue title"},
"body": {"required": false, "description": "Issue body (markdown)"}
},
"capabilities": ["network"],
"readOnly": false,
"example": "tap site github/issue-create vaayne/tap-sites --title \"[reddit/me] returns empty\" --body \"Description here\""
}
*/
async function(args) {
if (!args.repo) return {error: 'Missing argument: repo'};
if (!args.title) return {error: 'Missing argument: title'};
const resp = await fetch('https://api.github.com/repos/' + args.repo + '/issues', {
method: 'POST',
credentials: 'include',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({title: args.title, body: args.body || ''})
});
if (!resp.ok) {
const status = resp.status;
if (status === 401 || status === 403) return {error: 'HTTP ' + status, hint: 'Not logged in to GitHub'};
if (status === 404) return {error: 'Repo not found: ' + args.repo};
return {error: 'HTTP ' + status};
}
const issue = await resp.json();
return {
number: issue.number,
title: issue.title,
url: issue.html_url,
state: issue.state
};
}
Updated Mar 31, 2026Created Mar 31, 2026SHA-256: 3f69b3690b2a…