Skip to content

Commit

Permalink
update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
thellimist authored Dec 11, 2021
1 parent 2937804 commit c9a7d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c9a7d29

Please sign in to comment.