GitHub Attempts API

The Attempts API from GitHub — 3 operation(s) for attempts.

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/ https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations

Specifications

Other Resources

OpenAPI Specification

github-attempts-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  version: 1.1.4
  title: GitHub Application About Attempts API
  description: 'Use the REST API to retrieve information about GitHub Apps and GitHub App

    installations.'
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  x-github-plan: ghes
  x-github-release: 3.9
servers:
- url: '{protocol}://{hostname}/api/v3'
  variables:
    hostname:
      description: Self-hosted Enterprise Server hostname
      default: HOSTNAME
    protocol:
      description: Self-hosted Enterprise Server protocol
      default: http
tags:
- name: Attempts
paths:
  /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}:
    get:
      summary: GitHub Get Workflow Run Attempt
      description: 'Gets a specific workflow run attempt.


        Anyone with read access to the repository can use this endpoint.


        OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.'
      tags:
      - Attempts
      operationId: getWorkflowRunAttempt
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/actions/workflow-runs#get-a-workflow-run-attempt
      parameters:
      - $ref: '#/components/parameters/owner'
      - $ref: '#/components/parameters/repo'
      - $ref: '#/components/parameters/run-id'
      - $ref: '#/components/parameters/attempt-number'
      - $ref: '#/components/parameters/exclude-pull-requests'
      - in: header
        name: Authorization
        schema:
          type: string
        example: example_value
      - in: header
        name: X-GitHub-Api-Version
        schema:
          type: string
          default: '2022-11-28'
        example: example_value
      - in: header
        name: Accept
        schema:
          type: string
          default: application/vnd.github+json
        example: example_value
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflow-run'
              examples:
                default:
                  $ref: '#/components/examples/workflow-run'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: actions
        subcategory: workflow-runs
      security:
      - bearerHttpAuthentication: []
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs:
    get:
      summary: GitHub List Jobs for Workflow Run Attempt
      description: 'Lists jobs for a specific workflow run attempt. You can use parameters to narrow the list of results. For more information

        about using parameters, see [Parameters](https://docs.github.com/enterprise-server@3.9/rest/guides/getting-started-with-the-rest-api#parameters).


        Anyone with read access to the repository can use this endpoint.


        OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint  with a private repository.'
      tags:
      - Attempts
      operationId: listJobsForWorkflowRunAttempt
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt
      parameters:
      - $ref: '#/components/parameters/owner'
      - $ref: '#/components/parameters/repo'
      - $ref: '#/components/parameters/run-id'
      - $ref: '#/components/parameters/attempt-number'
      - $ref: '#/components/parameters/per-page'
      - $ref: '#/components/parameters/page'
      - in: header
        name: Authorization
        schema:
          type: string
        example: example_value
      - in: header
        name: X-GitHub-Api-Version
        schema:
          type: string
          default: '2022-11-28'
        example: example_value
      - in: header
        name: Accept
        schema:
          type: string
          default: application/vnd.github+json
        example: example_value
      responses:
        '200':
          description: Response
          content:
            application/json:
              schema:
                type: object
                required:
                - total_count
                - jobs
                properties:
                  total_count:
                    type: integer
                  jobs:
                    type: array
                    items:
                      $ref: '#/components/schemas/job'
              examples:
                default:
                  $ref: '#/components/examples/job-paginated'
          headers:
            Link:
              $ref: '#/components/headers/link'
        '404':
          $ref: '#/components/responses/not_found'
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: actions
        subcategory: workflow-jobs
      security:
      - bearerHttpAuthentication: []
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs:
    get:
      summary: GitHub Download Workflow Run Attempt Logs
      description: 'Gets a redirect URL to download an archive of log files for a specific workflow run attempt. This link expires after

        1 minute. Look for `Location:` in the response header to find the URL for the download.


        Anyone with read access to the repository can use this endpoint.


        If the repository is private, OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.'
      tags:
      - Attempts
      operationId: downloadWorkflowRunAttemptLogs
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-server@3.9/rest/actions/workflow-runs#download-workflow-run-attempt-logs
      parameters:
      - $ref: '#/components/parameters/owner'
      - $ref: '#/components/parameters/repo'
      - $ref: '#/components/parameters/run-id'
      - $ref: '#/components/parameters/attempt-number'
      - in: header
        name: Authorization
        schema:
          type: string
        example: example_value
      - in: header
        name: X-GitHub-Api-Version
        schema:
          type: string
          default: '2022-11-28'
        example: example_value
      - in: header
        name: Accept
        schema:
          type: string
          default: application/vnd.github+json
        example: example_value
      responses:
        '302':
          description: Response
          headers:
            Location:
              example: https://pipelines.actions.githubusercontent.com/ab1f3cCFPB34Nd6imvFxpGZH5hNlDp2wijMwl2gDoO0bcrrlJj/_apis/pipelines/1/runs/19/signedlogcontent?urlExpires=2020-01-22T22%3A44%3A54.1389777Z&urlSigningMethod=HMACV1&urlSignature=2TUDfIg4fm36OJmfPy6km5QD5DLCOkBVzvhWZM8B%2BUY%3D
              schema:
                type: string
      x-github:
        githubCloudOnly: false
        enabledForGitHubApps: true
        category: actions
        subcategory: workflow-runs
      security:
      - bearerHttpAuthentication: []
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  responses:
    not_found:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/basic-error'
  examples:
    job-paginated:
      value:
        total_count: 1
        jobs:
        - id: 399444496
          run_id: 29679449
          run_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/29679449
          node_id: MDEyOldvcmtmbG93IEpvYjM5OTQ0NDQ5Ng==
          head_sha: f83a356604ae3c5d03e1b46ef4d1ca77d64a90b0
          url: https://api.github.com/repos/octo-org/octo-repo/actions/jobs/399444496
          html_url: https://github.com/octo-org/octo-repo/runs/29679449/jobs/399444496
          status: completed
          conclusion: success
          started_at: '2020-01-20T17:42:40Z'
          completed_at: '2020-01-20T17:44:39Z'
          created_at: '2020-01-20T17:44:39Z'
          name: build
          steps:
          - name: Set up job
            status: completed
            conclusion: success
            number: 1
            started_at: '2020-01-20T09:42:40.000-08:00'
            completed_at: '2020-01-20T09:42:41.000-08:00'
          - name: Run actions/checkout@v2
            status: completed
            conclusion: success
            number: 2
            started_at: '2020-01-20T09:42:41.000-08:00'
            completed_at: '2020-01-20T09:42:45.000-08:00'
          - name: Set up Ruby
            status: completed
            conclusion: success
            number: 3
            started_at: '2020-01-20T09:42:45.000-08:00'
            completed_at: '2020-01-20T09:42:45.000-08:00'
          - name: Run actions/cache@v3
            status: completed
            conclusion: success
            number: 4
            started_at: '2020-01-20T09:42:45.000-08:00'
            completed_at: '2020-01-20T09:42:48.000-08:00'
          - name: Install Bundler
            status: completed
            conclusion: success
            number: 5
            started_at: '2020-01-20T09:42:48.000-08:00'
            completed_at: '2020-01-20T09:42:52.000-08:00'
          - name: Install Gems
            status: completed
            conclusion: success
            number: 6
            started_at: '2020-01-20T09:42:52.000-08:00'
            completed_at: '2020-01-20T09:42:53.000-08:00'
          - name: Run Tests
            status: completed
            conclusion: success
            number: 7
            started_at: '2020-01-20T09:42:53.000-08:00'
            completed_at: '2020-01-20T09:42:59.000-08:00'
          - name: Deploy to Heroku
            status: completed
            conclusion: success
            number: 8
            started_at: '2020-01-20T09:42:59.000-08:00'
            completed_at: '2020-01-20T09:44:39.000-08:00'
          - name: Post actions/cache@v3
            status: completed
            conclusion: success
            number: 16
            started_at: '2020-01-20T09:44:39.000-08:00'
            completed_at: '2020-01-20T09:44:39.000-08:00'
          - name: Complete job
            status: completed
            conclusion: success
            number: 17
            started_at: '2020-01-20T09:44:39.000-08:00'
            completed_at: '2020-01-20T09:44:39.000-08:00'
          check_run_url: https://api.github.com/repos/octo-org/octo-repo/check-runs/399444496
          labels:
          - self-hosted
          - foo
          - bar
          runner_id: 1
          runner_name: my runner
          runner_group_id: 2
          runner_group_name: my runner group
          workflow_name: CI
          head_branch: main
    workflow-run:
      value:
        id: 30433642
        name: Build
        node_id: MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==
        check_suite_id: 42
        check_suite_node_id: MDEwOkNoZWNrU3VpdGU0Mg==
        head_branch: main
        head_sha: acb5820ced9479c074f688cc328bf03f341a511d
        path: .github/workflows/build.yml@main
        run_number: 562
        event: push
        display_title: Update README.md
        status: queued
        conclusion: success
        workflow_id: 159038
        url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642
        html_url: https://github.com/octo-org/octo-repo/actions/runs/30433642
        pull_requests: []
        created_at: '2020-01-22T19:33:08Z'
        updated_at: '2020-01-22T19:33:08Z'
        actor:
          login: octocat
          id: 1
          node_id: MDQ6VXNlcjE=
          avatar_url: https://github.com/images/error/octocat_happy.gif
          gravatar_id: ''
          url: https://api.github.com/users/octocat
          html_url: https://github.com/octocat
          followers_url: https://api.github.com/users/octocat/followers
          following_url: https://api.github.com/users/octocat/following{/other_user}
          gists_url: https://api.github.com/users/octocat/gists{/gist_id}
          starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
          subscriptions_url: https://api.github.com/users/octocat/subscriptions
          organizations_url: https://api.github.com/users/octocat/orgs
          repos_url: https://api.github.com/users/octocat/repos
          events_url: https://api.github.com/users/octocat/events{/privacy}
          received_events_url: https://api.github.com/users/octocat/received_events
          type: User
          site_admin: false
        run_attempt: 1
        referenced_workflows:
        - path: octocat/Hello-World/.github/workflows/deploy.yml@main
          sha: 86e8bc9ecf7d38b1ed2d2cfb8eb87ba9b35b01db
          ref: refs/heads/main
        - path: octo-org/octo-repo/.github/workflows/report.yml@v2
          sha: 79e9790903e1c3373b1a3e3a941d57405478a232
          ref: refs/tags/v2
        - path: octo-org/octo-repo/.github/workflows/secure.yml@1595d4b6de6a9e9751fb270a41019ce507d4099e
          sha: 1595d4b6de6a9e9751fb270a41019ce507d4099e
        run_started_at: '2020-01-22T19:33:08Z'
        triggering_actor:
          login: octocat
          id: 1
          node_id: MDQ6VXNlcjE=
          avatar_url: https://github.com/images/error/octocat_happy.gif
          gravatar_id: ''
          url: https://api.github.com/users/octocat
          html_url: https://github.com/octocat
          followers_url: https://api.github.com/users/octocat/followers
          following_url: https://api.github.com/users/octocat/following{/other_user}
          gists_url: https://api.github.com/users/octocat/gists{/gist_id}
          starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
          subscriptions_url: https://api.github.com/users/octocat/subscriptions
          organizations_url: https://api.github.com/users/octocat/orgs
          repos_url: https://api.github.com/users/octocat/repos
          events_url: https://api.github.com/users/octocat/events{/privacy}
          received_events_url: https://api.github.com/users/octocat/received_events
          type: User
          site_admin: false
        jobs_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/jobs
        logs_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/logs
        check_suite_url: https://api.github.com/repos/octo-org/octo-repo/check-suites/414944374
        artifacts_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/artifacts
        cancel_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/cancel
        rerun_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/rerun
        previous_attempt_url: https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/attempts/1
        workflow_url: https://api.github.com/repos/octo-org/octo-repo/actions/workflows/159038
        head_commit:
          id: acb5820ced9479c074f688cc328bf03f341a511d
          tree_id: d23f6eedb1e1b9610bbc754ddb5197bfe7271223
          message: Create linter.yaml
          timestamp: '2020-01-22T19:33:05Z'
          author:
            name: Octo Cat
            email: octocat@github.com
          committer:
            name: GitHub
            email: noreply@github.com
        repository:
          id: 1296269
          node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
          name: Hello-World
          full_name: octocat/Hello-World
          owner:
            login: octocat
            id: 1
            node_id: MDQ6VXNlcjE=
            avatar_url: https://github.com/images/error/octocat_happy.gif
            gravatar_id: ''
            url: https://api.github.com/users/octocat
            html_url: https://github.com/octocat
            followers_url: https://api.github.com/users/octocat/followers
            following_url: https://api.github.com/users/octocat/following{/other_user}
            gists_url: https://api.github.com/users/octocat/gists{/gist_id}
            starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
            subscriptions_url: https://api.github.com/users/octocat/subscriptions
            organizations_url: https://api.github.com/users/octocat/orgs
            repos_url: https://api.github.com/users/octocat/repos
            events_url: https://api.github.com/users/octocat/events{/privacy}
            received_events_url: https://api.github.com/users/octocat/received_events
            type: User
            site_admin: false
          private: false
          html_url: https://github.com/octocat/Hello-World
          description: This your first repo!
          fork: false
          url: https://api.github.com/repos/octocat/Hello-World
          archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
          assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user}
          blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
          branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch}
          collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
          comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number}
          commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha}
          compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
          contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path}
          contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors
          deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments
          downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads
          events_url: https://api.github.com/repos/octocat/Hello-World/events
          forks_url: https://api.github.com/repos/octocat/Hello-World/forks
          git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
          git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
          git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
          git_url: git:github.com/octocat/Hello-World.git
          issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
          issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number}
          issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number}
          keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id}
          labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name}
          languages_url: https://api.github.com/repos/octocat/Hello-World/languages
          merges_url: https://api.github.com/repos/octocat/Hello-World/merges
          milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number}
          notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
          pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number}
          releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id}
          ssh_url: git@github.com:octocat/Hello-World.git
          stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers
          statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha}
          subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers
          subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription
          tags_url: https://api.github.com/repos/octocat/Hello-World/tags
          teams_url: https://api.github.com/repos/octocat/Hello-World/teams
          trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
          hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks
        head_repository:
          id: 217723378
          node_id: MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=
          name: octo-repo
          full_name: octo-org/octo-repo
          private: true
          owner:
            login: octocat
            id: 1
            node_id: MDQ6VXNlcjE=
            avatar_url: https://github.com/images/error/octocat_happy.gif
            gravatar_id: ''
            url: https://api.github.com/users/octocat
            html_url: https://github.com/octocat
            followers_url: https://api.github.com/users/octocat/followers
            following_url: https://api.github.com/users/octocat/following{/other_user}
            gists_url: https://api.github.com/users/octocat/gists{/gist_id}
            starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo}
            subscriptions_url: https://api.github.com/users/octocat/subscriptions
            organizations_url: https://api.github.com/users/octocat/orgs
            repos_url: https://api.github.com/users/octocat/repos
            events_url: https://api.github.com/users/octocat/events{/privacy}
            received_events_url: https://api.github.com/users/octocat/received_events
            type: User
            site_admin: false
          html_url: https://github.com/octo-org/octo-repo
          description: ''
          fork: false
          url: https://api.github.com/repos/octo-org/octo-repo
          forks_url: https://api.github.com/repos/octo-org/octo-repo/forks
          keys_url: https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}
          collaborators_url: https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}
          teams_url: https://api.github.com/repos/octo-org/octo-repo/teams
          hooks_url: https://api.github.com/repos/octo-org/octo-repo/hooks
          issue_events_url: https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}
          events_url: https://api.github.com/repos/octo-org/octo-repo/events
          assignees_url: https://api.github.com/repos/octo-org/octo-repo/assignees{/user}
          branches_url: https://api.github.com/repos/octo-org/octo-repo/branches{/branch}
          tags_url: https://api.github.com/repos/octo-org/octo-repo/tags
          blobs_url: https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}
          git_tags_url: https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}
          git_refs_url: https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}
          trees_url: https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}
          statuses_url: https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}
          languages_url: https://api.github.com/repos/octo-org/octo-repo/languages
          stargazers_url: https://api.github.com/repos/octo-org/octo-repo/stargazers
          contributors_url: https://api.github.com/repos/octo-org/octo-repo/contributors
          subscribers_url: https://api.github.com/repos/octo-org/octo-repo/subscribers
          subscription_url: https://api.github.com/repos/octo-org/octo-repo/subscription
          commits_url: https://api.github.com/repos/octo-org/octo-repo/commits{/sha}
          git_commits_url: https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}
          comments_url: https://api.github.com/repos/octo-org/octo-repo/comments{/number}
          issue_comment_url: https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}
          contents_url: https://api.github.com/repos/octo-org/octo-repo/contents/{+path}
          compare_url: https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}
          merges_url: https://api.github.com/repos/octo-org/octo-repo/merges
          archive_url: https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}
          downloads_url: https://api.github.com/repos/octo-org/octo-repo/downloads
          issues_url: https://api.github.com/repos/octo-org/octo-repo/issues{/number}
          pulls_url: https://api.github.com/repos/octo-org/octo-repo/pulls{/number}
          milestones_url: https://api.github.com/repos/octo-org/octo-repo/milestones{/number}
          notifications_url: https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}
          labels_url: https://api.github.com/repos/octo-org/octo-repo/labels{/name}
          releases_url: https://api.github.com/repos/octo-org/octo-repo/releases{/id}
          deployments_url: https://api.github.com/repos/octo-org/octo-repo/deployments
  schemas:
    pull-request-minimal:
      title: Pull Request Minimal
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 42
        number:
          type: integer
          example: 42
        url:
          type: string
          example: https://api.github.com/repos/octocat/Hello-World
        head:
          type: object
          properties:
            ref:
              type: string
            sha:
              type: string
            repo:
              type: object
              properties:
                id:
                  type: integer
                  format: int64
                url:
                  type: string
                name:
                  type: string
              required:
              - id
              - url
              - name
          required:
          - ref
          - sha
          - repo
        base:
          type: object
          properties:
            ref:
              type: string
            sha:
              type: string
            repo:
              type: object
              properties:
                id:
                  type: integer
                  format: int64
                url:
                  type: string
                name:
                  type: string
              required:
              - id
              - url
              - name
          required:
          - ref
          - sha
          - repo
      required:
      - id
      - number
      - url
      - head
      - base
    code-of-conduct:
      title: Code Of Conduct
      description: Code Of Conduct
      type: object
      properties:
        key:
          type: string
          example: contributor_covenant
        name:
          type: string
          example: Contributor Covenant
        url:
          type: string
          format: uri
          example: https://api.github.com/codes_of_conduct/contributor_covenant
        body:
          type: string
          example: "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                  to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                  posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n"
        html_url:
          type: string
          format: uri
          example: https://api.github.com/repos/octocat/Hello-World
      required:
      - url
      - html_url
      - key
      - name
    basic-error:
      title: Basic Error
      description: Basic Error
      type: object
      properties:
        message:
          type: string
          example: Example body text
        documentation_url:
          type: string
          example: https://api.github.com/repos/octocat/Hello-World
        url:
          type: string
          example: https://api.github.com/repos/octocat/Hello-World
        status:
          type: string
          example: open
    job:
      title: Job
      description: Information of a job execution in a workflow run
      type: object
      properties:
        id:
          description: The id of the job.
          example: 21
          type: integer
        run_id:
          description: The id of the associated workflow run.
          example: 5
          type: integer
        run_url:
          type: string
          example: https://api.github.com/repos/github/hello-world/actions/runs/5
        run_attempt:
          type: integer
          description: Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
          example: 1
        node_id:
          type: string
          example: MDg6Q2hlY2tSdW40
        head_sha:
          description: The SHA of the commit that is being run.
          example: 009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d
          type: string
        url:
          type: string
          example: https://api.github.com/repos/github/hello-world/actions/jobs/21
        html_url:
          type: string
          example: https://github.com/github/hello-world/runs/4
        status:
          description: The phase of the lifecycle that the job is currently in.
          example: queued
          type: string
          enum:
          - queued
          - in_progress
          - completed
          - waiting
          - requested
          - pending
        conclusion:
          description: The outcome of the job.
          example: success
          type: string
          enum:
          - success
          - failure
          - neutral
          - cancelled
          - skipped
          - timed_out
          - action_required
 

# --- truncated at 32 KB (660 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/github-attempts-api-openapi.yml