mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
ci: Reference title via environment variable (#10342)
Reference title via environment variable. Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
3
.github/workflows/pr-triage.yml
vendored
3
.github/workflows/pr-triage.yml
vendored
@@ -23,8 +23,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Validate pull request title
|
- name: Validate pull request title
|
||||||
|
env:
|
||||||
|
TITLE: ${{ github.event.pull_request.title }}
|
||||||
run: |
|
run: |
|
||||||
TITLE="${{ github.event.pull_request.title }}"
|
|
||||||
REGEX="^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\\(.+\\))?: .{1,72}$"
|
REGEX="^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\\(.+\\))?: .{1,72}$"
|
||||||
|
|
||||||
echo "Title: \"$TITLE\""
|
echo "Title: \"$TITLE\""
|
||||||
|
|||||||
Reference in New Issue
Block a user