danger / danger/peril

check_run event support

Open
#342 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
460
Forks
55
PR merge metrics
No merged PRs in 30d

Description

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
```javascript
{
"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
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.