Skip to content

Commit

Permalink
feat: Add GitHub PR Checks Workflow (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek1234321 authored Sep 19, 2024
1 parent c948e73 commit 8327817
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/pr_checks_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pr_checks:
title:
- name: 'prefix_check'
regex: '^(?i)(fix|feat|test|chore|refactor|build):'
message_if_not_matching: 'PR title must start with "fix:", "feat:", "chore:", "refactor", or "test:" (case-insensitive)'

description:
- name: 'clickup_check'
regex: '(?i)app.clickup.com'
message_if_not_matching: 'PR description must contain a link to a ClickUp (case-insensitive)'
19 changes: 19 additions & 0 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Strong PR Checks

on:
pull_request:
types: [opened, synchronize, edited]

permissions:
pull-requests: write
contents: read

jobs:
pr_checks:
runs-on: ubuntu-latest
steps:
- name: Run strong checks
uses: fylein/fyle-pr-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/pr_checks_config.yml

0 comments on commit 8327817

Please sign in to comment.