Skip to main content
Glama

mcp-google-sheets

unlock-issue.ts989 B
import { githubAuth } from '../../index'; import { createAction, Property } from '@activepieces/pieces-framework'; import { githubApiCall, githubCommon } from '../common'; import { HttpMethod } from '@activepieces/pieces-common'; export const githubUnlockIssueAction = createAction({ auth: githubAuth, name: 'unlockIssue', displayName: 'Unlock issue', description: 'Unlocks the specified issue', props: { repository: githubCommon.repositoryDropdown, issue_number: Property.Number({ displayName: 'Issue Number', description: 'The number of the issue to be unlocked', required: true, }), }, async run({ auth, propsValue }) { const { issue_number } = propsValue; const { owner, repo } = propsValue.repository!; const response = await githubApiCall({ accessToken: auth.access_token, method: HttpMethod.DELETE, resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/lock`, }); 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