diff --git a/.github/workflows/config/ticket-check-config.yml b/.github/workflows/config/ticket-check-config.yml new file mode 100644 index 0000000..afa779b --- /dev/null +++ b/.github/workflows/config/ticket-check-config.yml @@ -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] ' + - '[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). diff --git a/.github/workflows/ticket-check.yml b/.github/workflows/ticket-check.yml new file mode 100644 index 0000000..daaebbf --- /dev/null +++ b/.github/workflows/ticket-check.yml @@ -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