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

Commit 5a1635a

Browse files
committed
validate the step title
1 parent 1bc8aff commit 5a1635a

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
@@ -219,6 +219,16 @@ steps:
219219
description: Name your first step and give it a description
220220
event: pull_request.synchronize
221221
actions:
222+
- type: getFileContents
223+
action_id: fileContents
224+
filename: 'config.yml'
225+
- type: gate
226+
left: '/^\s{2}description:([^#]\w)+.*$/gm'
227+
operator: test
228+
right: '%actions.fileContents%'
229+
else:
230+
- type: respond
231+
with: e-no-step-title.md
222232
- type: respond
223233
with: add-trigger.md
224234
- type: octokit

responses/e-no-step-title.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
There's no title for your step.

0 commit comments

Comments
 (0)