Skip to content

Commit ffc6c00

Browse files
authored
release v1.2.0 (#99)
1 parent e218a18 commit ffc6c00

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66

77
### Fixed
88

9+
## 1.2.0
10+
11+
### Added
12+
13+
- Automatically create [flag links](https://docs.launchdarkly.com/home/organize/links) for flags modified in the pull request
14+
15+
### Changed
16+
17+
- Update dependencies
18+
919
## 1.1.1
1020

1121
### Changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Adds a comment to a pull request (PR) whenever a feature flag reference is found
1010
This action requires a [LaunchDarkly access token](https://docs.launchdarkly.com/home/account-security/api-access-tokens) with:
1111

1212
* Read access for the designated `project-key`
13-
* (Optional) `createFlagLink` action, if you have set the `create-flag-links` input to `true`
13+
* (Optional) the `createFlagLink` action, if you have set the `create-flag-links` input to `true`
1414

1515
Access tokens should be stored as an [encrypted secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets).
1616

@@ -34,7 +34,7 @@ jobs:
3434
name: Find LaunchDarkly feature flags in diff
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838
- name: Find flags
3939
uses: launchdarkly/find-code-references-in-pull-request@v1
4040
id: find-flags
@@ -43,6 +43,7 @@ jobs:
4343
environment-key: production
4444
access-token: ${{ secrets.LD_ACCESS_TOKEN }}
4545
repo-token: ${{ secrets.GITHUB_TOKEN }}
46+
create-flag-links: true
4647
```
4748
4849
Use outputs in workflow:
@@ -56,7 +57,7 @@ jobs:
5657
name: Find LaunchDarkly feature flags in diff
5758
steps:
5859
- name: Checkout
59-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
6061
- name: Find flags
6162
uses: launchdarkly/find-code-references-in-pull-request@v1
6263
id: find-flags
@@ -65,6 +66,7 @@ jobs:
6566
environment-key: production
6667
access-token: ${{ secrets.LD_ACCESS_TOKEN }}
6768
repo-token: ${{ secrets.GITHUB_TOKEN }}
69+
create-flag-links: true
6870

6971
# Add or remove labels on PRs if any flags have changed
7072
- name: Add label
@@ -105,7 +107,7 @@ This action does not support monorepos or searching for flags across LaunchDarkl
105107
| `max-flags` | <p>Maximum number of flags to find per PR</p> | `false` | `5` |
106108
| `base-uri` | <p>The base URI for the LaunchDarkly server. Most members should use the default value.</p> | `false` | `https://app.launchdarkly.com` |
107109
| `check-extinctions` | <p>Check if removed flags still exist in codebase</p> | `false` | `true` |
108-
| `create-flag-links` | <p>Create links to flags in LaunchDarkly. To use this feature you must use an access token with the <code>createFlagLink</code> role.</p> | `false` | `false` |
110+
| `create-flag-links` | <p>Create links to flags in LaunchDarkly. To use this feature you must use an access token with the <code>createFlagLink</code> role. To learn more, read <a href="https://docs.launchdarkly.com/home/organize/links">Flag links</a>.</p> | `false` | `false` |
109111
<!-- action-docs-inputs action="action.yml" -->
110112
### Inputs
111113

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ inputs:
4646
required: false
4747
default: 'true'
4848
create-flag-links:
49-
description: Create links to flags in LaunchDarkly. To use this feature you must use an access token with the `createFlagLink` role.
49+
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).
5050
required: false
5151
default: 'false'
5252

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package version
22

3-
const Version = "1.1.1"
3+
const Version = "1.2.0"

0 commit comments

Comments
 (0)