L2 Hub
Github
repo
List Issues

L2 Construct: list_issues

issues github

Description

ListIssues retrieves all issues from the specified GitHub repository.

L2 Data

  1. Provider: github
  2. Module: repo
  3. Action: list_issues

Example Step

{
  "name": "insert-your-step-name",
  "type": "l2",
  "l2_data": {
    "provider": "github",
    "module": "repo",
    "action": "list_issues",
    "metadata": {}
  }
}
 

Input

Example

{
  "owner": "octocat",
  "repo": "Hello-World",
  "state": "open"
}
 

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pontus.bpa/pkgs/l2/github/repo/list-issues-input",
  "$ref": "#/$defs/ListIssuesInput",
  "$defs": {
    "ListIssuesInput": {
      "properties": {
        "owner": {
          "type": "string"
        },
        "repo": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["owner", "repo"]
    }
  }
}
 

Output

Example

{
  "issues": [
    {
      "number": 1347,
      "title": "Found a bug",
      "state": "open",
      "created_at": "2011-04-22T13:33:48Z",
      "html_url": "https://github.com/octocat/Hello-World/issues/1347"
    }
  ]
}
 

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pontus.bpa/pkgs/l2/github/repo/list-issues-output",
  "$ref": "#/$defs/ListIssuesOutput",
  "$defs": {
    "IssueInfo": {
      "properties": {
        "number": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        },
        "html_url": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["number", "title", "state", "created_at", "html_url"]
    },
    "ListIssuesOutput": {
      "properties": {
        "issues": {
          "items": {
            "$ref": "#/$defs/IssueInfo"
          },
          "type": "array"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["issues"]
    }
  }
}