Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

[WEAV-000] CD 워크플로우 수정 Revert #671

[WEAV-000] CD 워크플로우 수정 Revert

[WEAV-000] CD 워크플로우 수정 Revert #671

Workflow file for this run

name: Pull Request Validator
on:
pull_request:
branches:
- main
permissions:
pull-requests: write
jobs:
pr-validation:
runs-on: ubuntu-latest
name: Validate PR format
steps:
- uses: actions/checkout@v3
- name: Check PR title format
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const pull_number = context.issue.number
const owner = context.repo.owner
const repo = context.repo.repo
const { data: pull } = await github.rest.pulls.get({
owner,
repo,
pull_number,
})
const titlePattern = /^\[WEAV-\d+\]/
if (!titlePattern.test(pull.title)) {
core.setFailed(`PR 제목이 [WEAV-번호] 형식을 따르지 않습니다.\nPR Title: ${pull.title}`)
return
}