Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
InTheCloudDan committed Apr 18, 2021
1 parent 4c4dc1d commit 9a7499e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions README.md
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 }}
```
Binary file added images/example-comment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9a7499e

Please sign in to comment.