Skip to content

Commit

Permalink
prep release
Browse files Browse the repository at this point in the history
  • Loading branch information
jazanne committed Mar 1, 2024
1 parent e218a18 commit 6a92401
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -105,7 +106,7 @@ This action does not support monorepos or searching for flags across LaunchDarkl
| `max-flags` | <p>Maximum number of flags to find per PR</p> | `false` | `5` |
| `base-uri` | <p>The base URI for the LaunchDarkly server. Most members should use the default value.</p> | `false` | `https://app.launchdarkly.com` |
| `check-extinctions` | <p>Check if removed flags still exist in codebase</p> | `false` | `true` |
| `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` |
| `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` |
<!-- action-docs-inputs action="action.yml" -->
### Inputs

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version

const Version = "1.1.1"
const Version = "1.2.0"

0 comments on commit 6a92401

Please sign in to comment.