-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c4dc1d
commit 9a7499e
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
# cr-flags | ||
# Code References PR Commenter | ||
|
||
Add changes | ||
Add this action for Pull Requests to receive a comment whenever a LaunchDarkly Feature Flag is referenced in any of the code changes. | ||
|
||
<img src="https://github.com/launchdarkly/cr-flags/raw/master/images/example-comment.png?raw=true" alt="Example comment" width="100%"> | ||
|
||
## Configuration | ||
PR Commenter has full support for Code Reference Aliases. If the project has an existing `.launchdarkly/coderefs.yaml` file it will use the aliases defined there. | ||
|
||
``` | ||
on: [pull_request] | ||
jobs: | ||
find_flags: | ||
runs-on: ubuntu-latest | ||
name: Test Find Flags | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Find Flags | ||
uses: ./ # Uses an action in the root directory | ||
id: find_flags | ||
with: | ||
projKey: default | ||
envKey: production | ||
accessToken: ${{ secrets.LD_ACCESS_TOKEN }} | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.