Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 2184aa3

Browse files
committed
add validation to respond action
1 parent 6308358 commit 2184aa3

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,16 @@ steps:
375375
description: Respond to a learner's successful PR
376376
event: pull_request.synchronize
377377
actions:
378+
- type: getFileContents
379+
action_id: fileContents
380+
filename: 'config.yml'
381+
- type: gate
382+
left: '/^ - type: respond(?!#).*$\n with: pr-opened.md(?!#).*$/gm'
383+
operator: test
384+
right: '%actions.fileContents%'
385+
else:
386+
- type: respond
387+
with: e-no-respond-action.md
378388
- type: respond
379389
with: add-descriptions.md
380390
- type: octokit

responses/no-respond-action.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I didn't find the response action with options.

0 commit comments

Comments
 (0)