Skip to content

Commit

Permalink
Merge pull request #3 from Satellite-im/luis/bots-2
Browse files Browse the repository at this point in the history
chore(cypress): more bots
  • Loading branch information
luisecm authored May 8, 2024
2 parents 3c769c2 + d92ebbc commit 4bfa4ac
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
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 == '' }}

0 comments on commit 4bfa4ac

Please sign in to comment.