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

Commit 7e8dda7

Browse files
Parth ShahParth Shah
authored andcommitted
fix uncomment validation
1 parent 6cf6da5 commit 7e8dda7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,17 @@ steps:
235235
left: '%payload.ref%'
236236
operator: ===
237237
right: refs/heads/changes
238+
- type: getFileContents
239+
action_id: fileContents
240+
filename: 'src/App.jsx'
241+
- type: gate
242+
left: '/^\s*if\s*\(\s*this.state.buttonClicked\s*===\s*"grades"\)\s*{\s*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*}\s*\n/gm'
243+
operator: test
244+
right: '%actions.fileContents%'
245+
else:
246+
- type: respond
247+
with: bad-uncomment.md
248+
issue: Changes
238249
- type: createReview
239250
event: APPROVE
240251
body: approve.md

0 commit comments

Comments
 (0)