Skip to main content
Glama

mcp-google-sheets

add-labels-to-issue.ts1.03 kB
import { githubAuth } from '../../index'; import { createAction } from '@activepieces/pieces-framework'; import { githubApiCall, githubCommon } from '../common'; import { HttpMethod } from '@activepieces/pieces-common'; export const githubAddLabelsToIssueAction = createAction({ auth: githubAuth, name: 'add_labels_to_issue', displayName: 'Add Labels to Issue', description: 'Adds labels to an existing issue.', props: { repository: githubCommon.repositoryDropdown, issue_number: githubCommon.issueDropdown(true), labels: githubCommon.labelDropDown(true), }, async run({ auth, propsValue }) { const { owner, repo } = propsValue.repository!; const issue_number = propsValue.issue_number; const labels = propsValue.labels; const response = await githubApiCall({ accessToken: auth.access_token, method: HttpMethod.POST, resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/labels`, body: { labels: labels, }, }); 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