Skip to content

Support specifying github actions in mergit.yml #227

@brandon-leapyear

Description

@brandon-leapyear

GitHub actions are represented in the GitHub API separately from the Commit statuses API. So we should support both.

# .mergit.yaml
expected:
  statuses:
    - ci/circleci: asdf
  workflows:
    "My workflow":
      - build
      - test

(transition: top-level statuses alias for expected: { statuses: ... })

Graphql query:

query {
  repository(...) {
    object(...) {
      ... on Commit {
        status {
          # "ci/circleci: asdf"
          contexts { context }
        }
        checkSuites(...) {
          nodes {
            workflowRun {
              # "My workflow"
              workflow { name }
            }
            checkRuns(...) {
              # "build" + status
              nodes { name, status }
            }
          }
        }
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions