Skip to main content
Glama

mcp-google-sheets

create-comment-on-a-issue.ts1.28 kB
import { githubAuth } from '../../index'; import { createAction, Property } from '@activepieces/pieces-framework'; import { githubApiCall, githubCommon } from '../common'; import { HttpMethod } from '@activepieces/pieces-common'; export const githubCreateCommentOnAIssue = createAction({ auth: githubAuth, name: 'createCommentOnAIssue', displayName: 'Create comment on a issue', description: 'Adds a comment to the specified issue (also works with pull requests)', props: { repository: githubCommon.repositoryDropdown, issue_number: Property.Number({ displayName: 'Issue number', description: 'The number of the issue to comment on', required: true, }), comment: Property.LongText({ displayName: 'Comment', description: 'The comment to add to the issue', required: true, }), }, async run({ auth, propsValue }) { const issue_number = propsValue.issue_number; const { owner, repo } = propsValue.repository!; const response = await githubApiCall({ accessToken: auth.access_token, method: HttpMethod.POST, resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/comments`, body: { body: propsValue.comment, }, }); 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