Skip to content

check_run event support #342

@urkle

Description

@urkle

Now that peril is running under github's "check" system it would be nice to support the check_run.rerequested event/action.

This payload provides a list of pull requests, so it should be simple enough to map those to pull_request.recheck or something like that

abbreviated check_suite.rerequested payload

{
  "action": "rerequested",
  "check_run": {
    // other misc data
    "name": "Danger",
    "check_suite": {
       // check suite data
    },
    "app": {
      // app info
    },
    "pull_requests": [
      // list of pull requests to be retried
      {
        // pull request data
        "number": 2754,
        "head": {
          // head ref data
        },
        "base": {
          // base ref data
        }
      }
    ]
  },
  "repository": {
    // repository details
  },
  "organization": {
    // org details
  },
  "sender": {
    // sender details
  },
  "installation": {
    "id": 12345
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions