Skip to content

Commit

Permalink
Create check-pull-request-title-by-comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli authored Feb 28, 2021
1 parent b44722b commit 62826ad
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check-pull-request-title-by-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

name: 'Check-Pull-Request-Title-By-Comment'

on:
pull_request:
types: [opened, edited, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: MeilCli/regex-match@master
id: regex
with:
regex_pattern: 'test: .*'
regex_option: 'g'
search_string: ${{ github.event.pull_request.title }}
- uses: MeilCli/hidable-comment-action@master
with:
number: ${{ github.event.pull_request.number }}
show: ${{ steps.regex.outputs.matched == 'false' }}
id: 'title-lint'
body: |
title lint
- test1
- test2
- test3

0 comments on commit 62826ad

Please sign in to comment.