Commit f9186f9b18

f9186f9b18ffa1febd2953d5635d220821c35ca9

parent: 342dc57981

Unsigned

Alicia Sykes <alicia@omg.lol> 路 2022-07-26 11:34 UTC

Adds action to validate issue title

Layout: unified 路 split

.github/workflows/config/ticket-check-config.yml added +33
@@ -0,0 +1,33 @@
1# The config used to check that issues + PRs have valid-looking title
2
3checkTemplate: true
4excludeUsers: [ liss-bot ]
5miniTitleLength: 16
6labelToAdd: needs-more-info
7reactions: [ eyes ]
8
9issue:
10 badTitles:
11 - '[ADDITION] <title>'
12 - '[AMENDMENT] <title>'
13 - '[FEEDBACK] <title>'
14 - '[QUESTION] <title>'
15 - '[REMOVAL] <title>'
16 badTitleComment: |
17 Hello @{{ author }} 馃憢
18 Please update your title to be more descriptive
19 badBodyComment: |
20 Hello @{{ author }} 馃憢
21 Please be sure to follow the issue template, and provide all requested fields
22
23pullRequest:
24 badTitles:
25 - Update README.md
26 badTitleComment: |
27 Hello @{{ author }} 馃憢
28 Please be sure to give your pull request a short but descriptive title. For example _"Adds Firefox under Browsers"_.
29 For more info, you should reference the [Contributing Guidelines](https://github.com/Lissy93/awesome-privacy/blob/main/.github/CONTRIBUTING.md)
30 badBodyComment: |
31 Hello @{{ author }} 馃憢
32 Thank you for your submission! So that it can be dealt with efficiently, please ensure that it contains all the required info.
33 Your pull request must conform to the guidelines within the [Contributing Docs](https://github.com/Lissy93/awesome-privacy/blob/main/.github/CONTRIBUTING.md).
.github/workflows/ticket-check.yml added +15
@@ -0,0 +1,15 @@
1# Validates that newly opened issues contain enough info
2name: 馃帿 Ticket Compliance
3on:
4 issues:
5 types: [opened]
6 pull_request:
7 types: [opened]
8jobs:
9 issue-check:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: wow-actions/needs-more-info@v1
13 with:
14 GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
15 CONFIG_FILE: .github/workflows/config/ticket-check-config.yml