The Get Repository action retrieves details of specific GitHub repository.

Overview

The Get Repository action retrieves the details of a GitHub repository using the owner name and repository name. The retrieved data includes the repository ID, name, full name, owner, visibility, description, number of fork and issues, default branch, API URL, HTML URL, and created, updated, and pushed timestamps. The action requires an active GitHub session to authenticate the request.

Settings

The Get Repository action contains the following settings:

Note: All the input fields support string variables. You can create a string variable to hold the appropriate text string and select it in the applicable setting.
Session name

Specifies the GitHub session name that the Connect action creates. Use one of the following options to specify the session name:

  • Session name: Enter the session name as text directly or select the string variable that holds the session name text. Automation 360 sets Default as the default session name.
  • Variable: Select the GitHub session variable that the Connect action creates.
Owner name
Specifies the name of the GitHub repository owner. The owner can be an organization or a user account. You can either enter the name directly as text or select the applicable string variable.
Repository name
Specifies the name of the GitHub repository to retrieve. You can either enter the repository name directly as text or select the applicable string variable.
Assign output to variable
Specifies the variable in which the action stores the response data. The response data includes the following fields:
  • id: The unique identifier of the repository.
  • name : The name of the repository.
  • fullName : The full name of the repository that includes the owner details in the following format: organization name/repository name.
  • owner : The owner of the repository.
  • private : The visibility setting that indicates whether the repository is private.
  • description : The description of the repository.
  • fork : The fork setting that indicates whether the repository is a fork of another repository.
  • hasIssues : The issues setting that indicates whether the repository has open issues.
  • defaultBranch : The default branch of the repository.
  • url : The API URL of the repository.
  • htmlUrl : The HTML URL of the repository.
  • createdAt : The timestamp indicating when the repository was created.
  • updatedAt : The timestamp indicating when the repository was last updated.
  • pushedAt : The timestamp indicating when the last pull request was merged to the main branch.
Use one of the following options to assign the output:
  • Multiple variables: Create and specify individual variables to store specific response data.

    Use the Add variable mapping option to specify the key and corresponding variable type to store the specific response data.

  • Dictionary: Create and specify a dictionary variable to store the entire response data. You can also select an existing dictionary variable.