Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Added actions #8

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading