Skip to content

Commit e91d295

Browse files
authored
chore: Added github action (#972)
* Updated .github/pull_request_template.md * Updated .github/workflows/pr-size.yml * Added pr checks config file * Added pr checks * changes
1 parent bc75c66 commit e91d295

10 files changed

+56
-0
lines changed

.github/pr-checks-config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pr_checks:
2+
title:
3+
- name: 'prefix_check'
4+
regex: '^(?i)(fix|feat|test|chore|refactor|build):'
5+
message_if_not_matching: 'PR title must start with "fix:", "feat:", "chore:", "refactor", or "test:" (case-insensitive)'
6+
7+
description:
8+
- name: 'clickup_check'
9+
regex: '(?i)app.clickup.com'
10+
message_if_not_matching: 'PR description must contain a link to a ClickUp (case-insensitive)'

.github/pull_request_template.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Description
2+
Please add PR description here, add screenshots if needed
3+
4+
## Clickup
5+
Please add link here
File renamed without changes.

.github/workflows/pr-checks.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
name: Strong PR Checks
3+
4+
on:
5+
pull_request:
6+
types: [opened, synchronize, edited]
7+
8+
permissions:
9+
pull-requests: write
10+
contents: read
11+
12+
jobs:
13+
pr_checks:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Run strong checks
17+
uses: fylein/fyle-pr-action@v1
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
config-file: .github/pr-checks-config.yml

.github/workflows/pr-size.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pull Request Labeling
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
size:
7+
runs-on: ubuntu-latest
8+
name: Label the PR size
9+
steps:
10+
- uses: "pascalgn/[email protected]"
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
with:
14+
sizes: >
15+
{
16+
"0": "XS",
17+
"20": "S",
18+
"50": "M",
19+
"250": "L",
20+
"800": "XL"
21+
}
File renamed without changes.

0 commit comments

Comments
 (0)