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(cypress): more bots #3

Merged
merged 2 commits into from
May 8, 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
9 changes: 9 additions & 0 deletions .github/workflows/add-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: delivery-much/actions-assigner@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: christianvuerings/add-labels@v1
with:
labels: |
Missing dev review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: mschilde/auto-label-merge-conflicts@master
with:
CONFLICT_LABEL_NAME: "missing fixing conflict"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_RETRIES: 5
WAIT_MS: 5000
26 changes: 0 additions & 26 deletions .github/workflows/fix-typos.yml

This file was deleted.

23 changes: 21 additions & 2 deletions .github/workflows/lint-PR-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,34 @@ jobs:
id: regex-match
with:
text: ${{ github.event.pull_request.title }}
regex: '(?:add|update|screenobject|chore|test|fix)\([a-z-A-Z]+\):\s.+'
regex: '(?:add|update|task|chore|feat|fix|refactor)\([a-z-A-Z]+\):\s.+'

- uses: actions-ecosystem/action-create-comment@v1
if: ${{ steps.regex-match.outputs.match == '' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
:warning: The title of this PR is invalid.
Please make the title match the regex `(?:add|update|screenobject|chore|test|fix)\([a-z-A-Z]+\):\s.+`.
Please make the title match the regex `(?:add|update|task|chore|feat|fix|refactor)\([a-z-A-Z]+\):\s.+`.
e.g.) `add(cli): enable --verbose flag`, `fix(api): avoid unexpected error in handler`

- name: Add invalid PR title label if regex is not matching
if: ${{ steps.regex-match.outputs.match == '' }}
uses: buildsville/add-remove-label@v2.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
invalid PR title
type: add

- name: Remove label if regex is matching
if: ${{ steps.regex-match.outputs.match != '' }}
uses: buildsville/add-remove-label@v2.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: |
invalid PR title
type: remove

- run: exit 1
if: ${{ steps.regex-match.outputs.match == '' }}
Loading