Skip to main content
Glama

mcp-google-sheets

delete-branch.ts893 B
import { createAction } from '@activepieces/pieces-framework'; import { githubAuth } from '../../index'; import { githubApiCall, githubCommon } from '../common'; import { HttpMethod } from '@activepieces/pieces-common'; export const githubDeleteBranchAction = createAction({ auth: githubAuth, name: 'delete_branch', displayName: 'Delete Branch', description: 'Deletes a branch from a repository.', props: { repository: githubCommon.repositoryDropdown, branch: githubCommon.branchDropdown('Branch', '', true), }, async run({ auth, propsValue }) { const { owner, repo } = propsValue.repository!; const branchName = propsValue.branch; const response = await githubApiCall({ accessToken: auth.access_token, method: HttpMethod.DELETE, resourceUri: `/repos/${owner}/${repo}/git/refs/heads/${branchName}`, }); 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