mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 20:14:54 +12:00
parent
68031210f5
commit
02d196474a
1 changed files with 10 additions and 7 deletions
17
.github/workflows/pr-triage.yml
vendored
17
.github/workflows/pr-triage.yml
vendored
|
@ -7,19 +7,22 @@ on:
|
||||||
- reopened
|
- reopened
|
||||||
- synchronize
|
- synchronize
|
||||||
jobs:
|
jobs:
|
||||||
pr-triage:
|
label:
|
||||||
name: PR Triage
|
name: Label
|
||||||
|
if: github.event.action != 'edited'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Automatically label PR
|
- name: Label pull request
|
||||||
uses: actions/labeler@v5
|
uses: actions/labeler@v5
|
||||||
if: github.event.action != 'edited'
|
|
||||||
with:
|
with:
|
||||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
|
validate-title:
|
||||||
- name: Validate commit convention
|
name: Validate title
|
||||||
if: github.event.action != 'synchronize'
|
if: github.event.action != 'synchronize'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Validate pull request title
|
||||||
run: |
|
run: |
|
||||||
TITLE="${{ github.event.pull_request.title }}"
|
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}$"
|
||||||
|
|
Loading…
Reference in a new issue