diff --git a/CHANGELOG.md b/CHANGELOG.md index 09747b0f..90d3c20f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,16 @@ ### Fixed +## 1.2.0 + +### Added + +- Automatically create [flag links](https://docs.launchdarkly.com/home/organize/links) for flags modified in the pull request + +### Changed + +- Update dependencies + ## 1.1.1 ### Changed diff --git a/README.md b/README.md index 8c5b5c0a..f912e630 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Adds a comment to a pull request (PR) whenever a feature flag reference is found This action requires a [LaunchDarkly access token](https://docs.launchdarkly.com/home/account-security/api-access-tokens) with: * Read access for the designated `project-key` -* (Optional) `createFlagLink` action, if you have set the `create-flag-links` input to `true` +* (Optional) the `createFlagLink` action, if you have set the `create-flag-links` input to `true` Access tokens should be stored as an [encrypted secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets). @@ -34,7 +34,7 @@ jobs: name: Find LaunchDarkly feature flags in diff steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Find flags uses: launchdarkly/find-code-references-in-pull-request@v1 id: find-flags @@ -43,6 +43,7 @@ jobs: environment-key: production access-token: ${{ secrets.LD_ACCESS_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }} + create-flag-links: true ``` Use outputs in workflow: @@ -56,7 +57,7 @@ jobs: name: Find LaunchDarkly feature flags in diff steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Find flags uses: launchdarkly/find-code-references-in-pull-request@v1 id: find-flags @@ -105,7 +106,7 @@ This action does not support monorepos or searching for flags across LaunchDarkl | `max-flags` |
Maximum number of flags to find per PR
| `false` | `5` | | `base-uri` |The base URI for the LaunchDarkly server. Most members should use the default value.
| `false` | `https://app.launchdarkly.com` | | `check-extinctions` |Check if removed flags still exist in codebase
| `false` | `true` | -| `create-flag-links` |Create links to flags in LaunchDarkly. To use this feature you must use an access token with the createFlagLink
role.
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.