Skip to content

Commit

Permalink
inlining github_pr_comment from tulle
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman authored and zeme-wana committed Nov 29, 2022
1 parent fcb2acf commit a5146a0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion nix/cells/cloud/actions.nix
Expand Up @@ -24,7 +24,37 @@
task = "benchmark";
io = ''
// Two inputs need to match: PR sync event & issue comment creation event
#lib.io.github_pr_comment & {
// WIP: Currently inlining lib.io.github_pr_comment
// #lib.io.github_pr_comment &
//
{
#input: string | *"GitHub PR comment to \(#repo)"
#repo: =~"^[^/]+/[^/]+$"
#comment: string
inputs: {
"\(#input)": match: {
github_event: "issue_comment"
github_body: {
action: "created"
repository: full_name: #repo
issue: pull_request: {}
comment: body: =~#comment
}
}
}
let _body = inputs["\(#input)"].value.github_body
_repo: _body.repository.full_name
_comment: _body.comment.body
_number: _body.issue.number
#target: "zeme-iohk/benchmarking"
#input: "${cell.library.actions.benchmark.commentInput}"
#prInput: "${cell.library.actions.benchmark.prInput}"
Expand Down

0 comments on commit a5146a0

Please sign in to comment.