From 057323ec5ecec6f986981b15ae6ad2fa201999c8 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Wed, 2 Oct 2024 10:29:17 -0500 Subject: [PATCH] Add test files for mergify schema --- .../hooks/negative/mergify/example-pr-rules.yaml | 9 +++++++++ .../hooks/positive/mergify/example-pr-rules.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/example-files/hooks/negative/mergify/example-pr-rules.yaml create mode 100644 tests/example-files/hooks/positive/mergify/example-pr-rules.yaml diff --git a/tests/example-files/hooks/negative/mergify/example-pr-rules.yaml b/tests/example-files/hooks/negative/mergify/example-pr-rules.yaml new file mode 100644 index 000000000..37fc894c3 --- /dev/null +++ b/tests/example-files/hooks/negative/mergify/example-pr-rules.yaml @@ -0,0 +1,9 @@ +pull_request_rules: + name: add label when author is jd + description: jd needs his own label because reasons + conditions: + - author = jd + actions: + label: + add: + - jd diff --git a/tests/example-files/hooks/positive/mergify/example-pr-rules.yaml b/tests/example-files/hooks/positive/mergify/example-pr-rules.yaml new file mode 100644 index 000000000..30fe2f7e1 --- /dev/null +++ b/tests/example-files/hooks/positive/mergify/example-pr-rules.yaml @@ -0,0 +1,9 @@ +pull_request_rules: + - name: add label when author is jd + description: jd needs his own label because reasons + conditions: + - author = jd + actions: + label: + add: + - jd