-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
41 lines (41 loc) · 1.54 KB
/
action.yaml
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
33
34
35
36
37
38
39
40
41
name: migrator-conflicts
author: PrashantRaj18198
description: |
Check if migrations in your branch aren't conflicting with the base branch when you
raise a pull request.
inputs:
github_token:
description: Github token, required to comment on pull requests
required: true
base_branch:
description: Base branch to compare current migrations against
required: false
current_branch:
description: Current branch to compare against the base branch
required: false
mention_author:
description: Tag the author in comment if 'mention_author' is marked 'true'
required: false
default: "false"
migration_delimiter:
description: |
Delimiter to use for the files to get the migration version.
If your migrations files are named with '_' delimiter,
for example 'migrations/20220702213559_initial_migration.sql' here the delimiter is
'_'. Delimiter is used to fetch the migration version for a file. In the above
example the migration version is 20220702213559.
required: false
default: _
migration_directories:
description: |
List of migration directories to compare for conflicts. Each directory in
'current_branch' is compared against the 'base_branch' for migration conflicts.
For example, if migration_directories = ['users/migrations', 'orders/migrations'],
'users/migrations' of current_branch is compared against 'users/migrations' of base_branch.
required: true
runs:
using: node16
main: lib/index.js
branding:
icon: check-circle
color: green