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.

| `false` | `false` | +| `create-flag-links` |

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.

| `false` | `false` | ### Inputs diff --git a/action.yml b/action.yml index dbf7c27e..28b9a068 100644 --- a/action.yml +++ b/action.yml @@ -46,7 +46,7 @@ inputs: 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. + 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: 'false' diff --git a/internal/version/version.go b/internal/version/version.go index cedc13a3..15f26234 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "1.1.1" +const Version = "1.2.0"