Skip to main content
Glama

mcp-google-sheets

create-issue.ts1.47 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { githubAuth } from '../../'; import { githubApiCall, githubCommon } from '../common'; import { HttpMethod } from '@activepieces/pieces-common'; export const githubCreateIssueAction = createAction({ auth: githubAuth, name: 'github_create_issue', displayName: 'Create Issue', description: 'Create Issue in GitHub Repository', props: { repository: githubCommon.repositoryDropdown, title: Property.ShortText({ displayName: 'Title', description: 'The title of the issue', required: true, }), description: Property.LongText({ displayName: 'Description', description: 'The description of the issue', required: false, }), labels: githubCommon.labelDropDown(), assignees: githubCommon.assigneeDropDown(), }, async run({ auth, propsValue }) { const { title, assignees, labels, description } = propsValue; const { owner, repo } = propsValue.repository!; const issueFields: Record<string, any> = { title, body: description, }; if (labels) { issueFields['labels'] = labels; } if (assignees) { issueFields['assignees'] = assignees; } const response = await githubApiCall({ accessToken: auth.access_token, method: HttpMethod.POST, resourceUri: `/repos/${owner}/${repo}/issues`, body: issueFields, }); return response; }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server