Skip to content

Commit 997d3e0

Browse files
committed
Release auto update version
1 parent a77880e commit 997d3e0

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM launchdarkly/ld-find-code-refs-github-action:2.5.7
1+
FROM launchdarkly/ld-find-code-refs-github-action:2.6.1
22

33
LABEL com.github.actions.name="LaunchDarkly Code References"
44
LABEL com.github.actions.description="Find references to feature flags in your code."

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ jobs:
2222
name: LaunchDarkly Code References
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
with:
2727
fetch-depth: 10 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions
2828
- name: LaunchDarkly Code References
29-
uses: launchdarkly/find-code-references@v2.5.7
29+
uses: launchdarkly/find-code-references@v2.6.1
3030
with:
3131
accessToken: ${{ secrets.LD_ACCESS_TOKEN }}
3232
projKey: LD_PROJECT_KEY
3333
```
3434
3535
We strongly recommend that you update the second `uses` attribute value to reference the latest tag in the [launchdarkly/find-code-references repository](https://github.com/launchdarkly/find-code-references). This will pin your workflow to a particular version of the `launchdarkly/find-code-references` action. Also, make sure to change `projKey` to the key of the LaunchDarkly project associated with this repository.
3636

37-
Commit this file under a new branch. Submit as a PR to your code reviewers to be merged into your master branch. You do not need to have this branch merged into the master for code references to appear in the LaunchDarkly UI for your flags; code references will appear for this newly created branch.
37+
Commit this file under a new branch. Submit as a PR to your code reviewers to be merged into your default branch. You do not need to have this branch merged into the default branch for code references to appear in the LaunchDarkly UI for your flags; code references will appear for this newly created branch.
3838

3939
As shown in the above example, the workflow should run on the `push` event, and contain an action provided by the [launchdarkly/find-code-references repository](https://github.com/launchdarkly/find-code-references). The `LD_ACCESS_TOKEN` configured in the previous step should be included as a secret, as well as a new environment variable containing your LaunchDarkly project key.
4040

@@ -57,11 +57,11 @@ jobs:
5757
name: LaunchDarkly Code References
5858
runs-on: ubuntu-latest
5959
steps:
60-
- uses: actions/checkout@v2
60+
- uses: actions/checkout@v3
6161
with:
6262
fetch-depth: 10 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions
6363
- name: LaunchDarkly Code References
64-
uses: launchdarkly/find-code-references@v2.5.7
64+
uses: launchdarkly/find-code-references@v2.6.1
6565
with:
6666
accessToken: ${{ secrets.LD_ACCESS_TOKEN }}
6767
projKey: LD_PROJECT_KEY

action.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,35 @@ inputs:
99
description: 'Key of the LaunchDarkly project associated with this repository. Found under Account Settings -> Projects in the LaunchDarkly dashboard. Cannot be combined with `projects` block in configuration file.'
1010
required: false
1111
accessToken:
12-
description: 'Token with write access to LaunchDarkly project.'
12+
description: 'A token with write access to the LaunchDarkly project.'
1313
required: true
1414
repoName:
15-
description: 'Sets the repository name for this project. This is useful if you have a single monorepo containing multiple YAML configurations each mapping to its own projKey. Each YAML configuration must have a unique LD_PROJ_KEY and LD_REPO_NAME combination so it displays correctly in the LaunchDarkly dashboard. Defaults to the current Github repository.'
15+
description: 'The repository name. Defaults to the current GitHub repository.'
16+
required: false
1617
baseUri:
17-
description: 'Set the base URL of the LaunchDarkly server for this configuration.'
18+
description: 'The base URL of the LaunchDarkly server for this configuration.'
1819
default: 'https://app.launchdarkly.com'
20+
required: false
1921
contextLines:
20-
description:
21-
The number of context lines above and below a code reference for the job to send to LaunchDarkly. By default, the flag finder will not send any context lines to LaunchDarkly. If < 0, no source code will be sent to LaunchDarkly. If 0, only the lines containing flag references will be sent. If > 0, will send that number of context lines above and below the flag reference. A maximum of 5 context lines may be provided.
22-
default: 2
22+
description: 'The number of context lines above and below a code reference for the job to send to LaunchDarkly. By default, the flag finder will not send any context lines to LaunchDarkly. If < 0, no source code will be sent to LaunchDarkly. If 0, only the lines containing flag references will be sent. If > 0, will send that number of context lines above and below the flag reference. A maximum of 5 context lines may be provided.'
23+
default: '2'
24+
required: false
2325
allowTags:
24-
description: Enables storing references for tags. The tag will be listed as a branch.
25-
default: false
26+
description: Enable storing references for tags. The tag will be listed as a branch.
27+
default: 'false'
28+
required: false
2629
debug:
27-
description: Enables verbose debug logging.
28-
default: false
30+
description: Enable verbose debug logging.
31+
default: 'false'
32+
required: false
2933
ignoreServiceErrors:
30-
description: If enabled, the scanner will terminate with exit code 0 when the LaunchDarkly API is unreachable or returns an unexpected response.
31-
default: false
34+
description: 'If enabled, the scanner will terminate with exit code 0 when the LaunchDarkly API is unreachable or returns an unexpected response.'
35+
default: 'false'
36+
required: false
3237
lookback:
33-
description: 'Sets the number of Git commits to search in history for
34-
whether a feature flag was removed from code. May be set to 0 to disabled this feature. Setting this option to a high value will increase search time.'
35-
default: 10
38+
description: 'Set the number of commits to search in history for whether you removed a feature flag from code. You may set to 0 to disable this feature. Setting this option to a high value will increase search time.'
39+
default: '10'
40+
required: false
3641
runs:
3742
using: 'docker'
3843
image: 'Dockerfile'

0 commit comments

Comments
 (0)