1
0
Fork 0

Adds action to validate issue title

This commit is contained in:
Alicia Sykes 2022-07-26 12:34:20 +01:00
parent 342dc57981
commit f9186f9b18
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# The config used to check that issues + PRs have valid-looking title
checkTemplate: true
excludeUsers: [ liss-bot ]
miniTitleLength: 16
labelToAdd: needs-more-info
reactions: [ eyes ]
issue:
badTitles:
- '[ADDITION] <title>'
- '[AMENDMENT] <title>'
- '[FEEDBACK] <title>'
- '[QUESTION] <title>'
- '[REMOVAL] <title>'
badTitleComment: |
Hello @{{ author }} 👋
Please update your title to be more descriptive
badBodyComment: |
Hello @{{ author }} 👋
Please be sure to follow the issue template, and provide all requested fields
pullRequest:
badTitles:
- Update README.md
badTitleComment: |
Hello @{{ author }} 👋
Please be sure to give your pull request a short but descriptive title. For example _"Adds Firefox under Browsers"_.
For more info, you should reference the [Contributing Guidelines](https://github.com/Lissy93/awesome-privacy/blob/main/.github/CONTRIBUTING.md)
badBodyComment: |
Hello @{{ author }} 👋
Thank you for your submission! So that it can be dealt with efficiently, please ensure that it contains all the required info.
Your pull request must conform to the guidelines within the [Contributing Docs](https://github.com/Lissy93/awesome-privacy/blob/main/.github/CONTRIBUTING.md).

15
.github/workflows/ticket-check.yml vendored Normal file
View file

@ -0,0 +1,15 @@
# Validates that newly opened issues contain enough info
name: 🎫 Ticket Compliance
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
issue-check:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/needs-more-info@v1
with:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
CONFIG_FILE: .github/workflows/config/ticket-check-config.yml