Supported Providers
GitHub
GitHub provider allows integration with GitHub for managing repositories, issues, pull requests, and more.
Inputs
repo
: str : The name of the repository (e.g.,user/repo-name
)action
: str : The action to perform (e.g.,create_issue
,close_pr
)issue_title
: str (optional) : The title for a new issue (required forcreate_issue
action)issue_body
: str (optional) : The body content for the issue (optional but recommended forcreate_issue
)pr_number
: int (optional) : The pull request number (required forclose_pr
action)
Outputs
result
: The result of the GitHub API call, returned as a dictionary.
Authentication Parameters
github_token
: A personal access token (PAT) from GitHub to authenticate API requests.- You can generate a token at GitHub Tokens.
Connecting with the Provider
- Go to your GitHub account and navigate to Settings > Developer Settings > Personal Access Tokens.
- Generate a token with the required permissions (e.g.,
repo
,workflow
, etc.). - Copy the token and provide it as
github_token
in the provider configuration.
Example of usage
workflow:
id: github-example
description: GitHub example
triggers:
- type: manual
actions:
- name: github
provider:
type: github
config: "{{ providers.githubtest }}"
with:
repo: "user/repo-name"
action: "create_issue"
issue_title: "New Issue Title"
issue_body: "Description of the issue."
## Useful Links
-[GitHub REST API Documentation](https://docs.github.com/en/rest?apiVersion=2022-11-28)