end-to-end/actions/example-pull-request/assert-contexts.sh

12 lines
332 B
Bash
Raw Normal View History

2023-10-28 22:29:04 +02:00
#!/bin/bash
set -ex
c=$d/contexts
2024-08-07 08:31:33 +02:00
test opened = "$(jq -r .event.action <$c/fork-org/pull_request/github)"
test opened = "$(jq -r .event.action <$c/fork-org/pull_request_target/github)"
2024-08-07 08:31:33 +02:00
test opened = "$(jq -r .event.action <$c/root/pull_request/github)"
test opened = "$(jq -r .event.action <$c/root/pull_request_target/github)"