Skip to main content Link Search Menu Expand Document (external link)

github_repo_api

Description

Type: Action

A generic action to make a request to the GitHub repository API.

Params

  • method: The HTTP method to use. Can be one of get, post, patch, put.
  • path: The relative path of the repo API endpoint. For example, /repos/{owner}/{repo}/contributors will be /contributors.
  • body: The body of the API request.

Result

No additional info is added to the global payload outputs.

Usage Example

Enabling discussions on the repo:

    - actionId: github_repo_api
      params:
        method: patch
        path: /
        body:
          has_discussions: true

Relevant Triggers

All triggers.