From c9a7d29c9bfb155af364ba957fd4c2a6da1ae974 Mon Sep 17 00:00:00 2001 From: Kan Yilmaz Date: Sat, 11 Dec 2021 12:04:17 +0800 Subject: [PATCH] update regex --- src/pr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pr.ts b/src/pr.ts index b6dad6b..856a71e 100644 --- a/src/pr.ts +++ b/src/pr.ts @@ -10,7 +10,7 @@ import {Options} from './options' */ export function validate(event: PullRequestEvent, options: Options): boolean { const {project} = options - const re = RegExp(`${project}-[0-9]+`) + const re = RegExp(`^{project}-[0-9]+`) core.info('author ' + event.pull_request.user.login.toLowerCase()) core.info('title ' + event.pull_request.title)