forked from appsmithorg/appsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 941 Bytes
/
pr-labeler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Label PRs based on title
on:
pull_request:
branches: [release]
types: [opened, reopened, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: appsmithorg/labeler@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Get changed files using defaults
id: changed-files
uses: trilom/file-changes-action@v1.2.3
continue-on-error: true
- name: Run step when a file changes
uses: actions-ecosystem/action-create-comment@v1
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: |
contains(steps.changed-files.outputs.files_modified, 'cypress') == false &&
contains(steps.changed-files.outputs.files_modified, 'test') == false
with:
github_token: ${{ secrets.github_token }}
body: |
Unable to find test scripts. Please add necessary tests to the PR.