Skip to content

Commit

Permalink
added actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-fyle committed Oct 8, 2024
1 parent 417f862 commit 1313635
Show file tree
Hide file tree
Showing 4 changed files with 56 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)'
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description
Please add PR description here, add screenshots if needed

## Clickup
Please add link here
20 changes: 20 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

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
21 changes: 21 additions & 0 deletions .github/workflows/pr-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pull Request Labeling

on: [pull_request]

jobs:
size:
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"250": "L",
"800": "XL"
}

0 comments on commit 1313635

Please sign in to comment.