-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
76 lines (76 loc) · 3.01 KB
/
action.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# action.yml
name: 'LaunchDarkly Code References in Pull Request'
description: 'Find references to feature flags in your pull request'
runs:
using: 'docker'
image: 'Dockerfile'
env:
LD_PROJ_KEY: ${{ inputs.project-key }}
LD_ACCESS_TOKEN: ${{ inputs.access-token }}
LD_BASE_URI: ${{ inputs.base-uri }}
LD_ENV_KEY: ${{ inputs.environment-key }}
GITHUB_TOKEN: ${{ inputs.repo-token }}
inputs:
repo-token:
description: 'Token to use to authorize comments on PR. Typically the `GITHUB_TOKEN` secret or equivalent `github.token`.'
required: true
access-token:
description: LaunchDarkly access token
required: true
project-key:
description: LaunchDarkly project key
required: false
default: 'default'
environment-key:
description: LaunchDarkly environment key for creating flag links
required: false
default: 'production'
placeholder-comment:
description: Comment on PR when no flags are found. If flags are found in later commits, this comment will be updated.
required: false
default: 'false'
include-archived-flags:
description: Scan for archived flags
required: false
default: 'true'
max-flags:
description: Maximum number of flags to find per PR
required: false
default: '5'
base-uri:
description: The base URI for the LaunchDarkly server. Most members should use the default value.
required: false
default: 'https://app.launchdarkly.com'
check-extinctions:
description: Check if removed flags still exist in codebase
required: false
default: 'true'
create-flag-links:
description: Create links to flags in LaunchDarkly. To use this feature you must use an access token with the `createFlagLink` role. To learn more, read [Flag links](https://docs.launchdarkly.com/home/organize/links).
required: false
default: 'true'
outputs:
any-modified:
description: Returns true if any flags have been added or modified in PR
modified-flags:
description: Space-separated list of flags added or modified in PR
modified-flags-count:
description: Number of flags added or modified in PR
any-removed:
description: Returns true if any flags have been removed in PR
removed-flags:
description: Space-separated list of flags removed in PR
removed-flags-count:
description: Number of flags removed in PR
any-changed:
description: Returns true if any flags have been changed in PR
changed-flags:
description: Space-separated list of flags changed in PR
changed-flags-count:
description: Number of flags changed in PR
any-extinct:
description: Returns true if any flags have been removed in PR and no longer exist in codebase. Only returned if `check-extinctions` is true.
extinct-flags:
description: Space-separated list of flags removed in PR and no longer exist in codebase. Only returned if `check-extinctions` is true.
extinct-flags-count:
description: Number of flags removed in PR and no longer exist in codebase. Only returned if `check-extinctions` is true.