Skip to content

Commit 964194b

Browse files
Add support for 'defaultBranch' parameter (#55)
Adding support for [`defaultBranch`](https://github.com/launchdarkly/ld-find-code-refs/blob/main/docs/CONFIGURATION.md?plain=1#L46) for GitHub Action.
1 parent b37be36 commit 964194b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ If the action fails, there may be a problem with your configuration. To investig
9999
| `repoName` | <p>The repository name. Defaults to the current GitHub repository.</p> | `false` | `""` |
100100
| `prune` | <p>There is a known issue where the GitHub Action will not prune deleted branch data in private repos. Only enable this if you are running the action in a public repo.</p> | `false` | `false` |
101101
| `subdirectory` | <p>The subdirectory to run the action in.</p> | `false` | `""` |
102+
| `defaultBranch` | <p>The default branch. The LaunchDarkly UI will default to this branch. If not provided, will fallback to 'main'.</p> | `false` | `""` |
102103
<!-- action-docs-inputs source="action.yml" -->

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ inputs:
4545
subdirectory:
4646
description: "The subdirectory to run the action in."
4747
required: false
48+
defaultBranch:
49+
description: "The default branch. The LaunchDarkly UI will default to this branch. If not provided, will fallback to 'main'."
50+
required: false
4851
runs:
4952
using: 'docker'
5053
image: 'Dockerfile'
@@ -60,3 +63,4 @@ runs:
6063
LD_LOOKBACK: ${{ inputs.lookback }}
6164
LD_PRUNE: ${{ inputs.prune }}
6265
LD_SUBDIRECTORY: ${{ inputs.subdirectory }}
66+
LD_DEFAULT_BRANCH: ${{ inputs.defaultBranch }}

0 commit comments

Comments
 (0)