chore(block): add warning message when both heading & label are empty #21881
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adopted from an action that is no longer maintained | |
# https://github.com/deepakputhraya/action-pr-title | |
name: PR title is not truncated (...) | |
on: | |
pull_request: | |
types: [opened, synchronize, edited, reopened] | |
jobs: | |
truncation-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
const action = require('${{ github.workspace }}/.github/scripts/validatePullRequestTitle.js') | |
await action({github, context, core}) |