/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/api-core/src/hosting-github/mutators.ts
24 строки
583 B
Gergely Csécsey
Update the spelling of `GitHub` (#106208)
14 окт 2025, 18:12
Не верифицирован
14 окт 2025, 18:12
ecb417d
Код
Авторство
О чём код?
import { wpcom } from '../wpcom-fetcher'; import { CreateWorkflowRequest, CreateWorkflowResponse } from './types'; export async function saveGithubCredentials( accessToken: string ): Promise< void > { return await wpcom.req.post( { path: '/hosting/github/accounts', apiNamespace: 'wpcom/v2', }, { access_token: accessToken, } ); } export async function createGithubWorkflow( request: CreateWorkflowRequest ): Promise< CreateWorkflowResponse > { return wpcom.req.post( { path: '/hosting/github/workflows', apiNamespace: 'wpcom/v2', body: request, } ); }