Authentication

This provider requires authentication.

  • access_token: GitHub Access Token (required: True, sensitive: True)

In workflows

This provider can be used in workflows.

As “step” to query data, example:

steps:
    - name: Query github
      provider: github
      config: "{{ provider.my_provider_name }}"
      with:
        repository: {value}  
        previous_stars_count: {value}  
        last_stargazer: {value}  

As “action” to make changes or update data, example:

actions:
    - name: Query github
      provider: github
      config: "{{ provider.my_provider_name }}"
      with:
        run_action: {value}  # The action to run.
        workflow: {value}  # The workflow to run.
        repo_name: {value}  # The repository name.
        repo_owner: {value}  # The repository owner.
        ref: {value}  # The ref to use.
        inputs: {value}  # The inputs to use.

Check the following workflow examples:

Provider Methods

The provider exposes the following Provider Methods. They are available in the AI Assistant.

  • get_last_commits Get the N last commits from a GitHub repository (view, scopes: no additional scopes)

    • repository: The GitHub repository to get the commits from.
    • n: The number of commits to get.
  • get_last_releases Get the N last releases and their changelog from a GitHub repository (view, scopes: no additional scopes)

    • repository: The GitHub repository to get the releases from.
    • n: The number of releases to get.

Connecting with the Provider

  1. Go to your GitHub account and navigate to Settings > Developer Settings > Personal Access Tokens.
  2. Generate a token with the required permissions (e.g., repo, workflow, etc.).
  3. Copy the token and provide it as github_token in the provider configuration.

-GitHub REST API Documentation