Skip to content

Commit

Permalink
ci(root): add feature flag checker (#5642)
Browse files Browse the repository at this point in the history
* Add LaunchDarkly flag finder workflow

A new Github Actions workflow for finding LaunchDarkly feature flags was added to the codebase. Now we have better visibility regarding any feature flags that get introduced or removed with any PRs, helping maintain code quality. The spell check step has been temporarily disabled.

* Add team membership check to workflow

The commit adds a new step to the GitHub Actions workflow that checks if the creator of a pull request (PR) is a member of the specified team. If the PR creator is a team member, the workflow step for running the spell checker is skipped. This check is done using the GitHub API and the 'jq' command-line tool.
  • Loading branch information
Cliftonz authored and SokratisVidros committed Jun 13, 2024
1 parent 1c62465 commit d115f5b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ jobs:
if: env.SKIP_STEP == 'false'
uses: streetsidesoftware/cspell-action@v5

find-flags:
runs-on: ubuntu-latest
name: Find LaunchDarkly feature flags in diff
environment: Linting
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Find flags
uses: launchdarkly/find-code-references-in-pull-request@v2
id: find-flags
with:
project-key: default
environment-key: production
access-token: ${{ secrets.LD_ACCESS_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

get-affected:
name: Get Affected Packages
runs-on: ubuntu-latest
Expand Down

0 comments on commit d115f5b

Please sign in to comment.