Giter Site home page Giter Site logo

configcat / github-action-feature-flag-cleanup Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 58 KB

ConfigCat's official repo fro Feature Flag Cleanup GitHub Action. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.

Home Page: https://configcat.com

License: MIT License

Dockerfile 100.00%
configcat github-action feature-flags feature-management feature-toggles remote-config code-cleanup clean-code clean-coder

github-action-feature-flag-cleanup's Introduction

ConfigCat Feature Flag Cleanup for GitHub Actions [archived]

This repository has been archived. The project became obsolate after the release of ConfigCat's Scan Repository GitHub Action.

This GitHub Action is a utility that discovers ConfigCat feature flag usages in your source code and validates them against your own feature flags on the ConfigCat Dashboard. Documentation: https://github.com/configcat/feature-flag-reference-validator

Installation

  1. Get your SDK Key from ConfigCat Dashboard and store it as a GitHub secret under the name CONFIG_CAT_SDK_KEY.

  2. Create a new Actions workflow in your GitHub repo.

    • If you already have an action.yml file: Copy and paste the ConfigCatFeatureFlagCleanup job declaration below into the jobs section in your action.yml file.
    • If you don't already have a workflow file: Create a new file titled action.yml in the .github/workflows directory of your repository. Copy and paste the following code to action.yml.
    on: push
    name: Example Workflow
    jobs:
      ConfigCatFeatureFlagCleanup:
        name: ConfigCat Feature Flag Cleanup
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v1
        - name: ConfigCat Feature Flag Cleanup
          uses: configcat/[email protected]
          with:
            configcat-sdk-key: ${{ secrets.CONFIG_CAT_SDK_KEY }}
            fail-on-warnings: false

We strongly recommend that you update the second uses attribute value to reference the latest tag in the configcat/github-action-feature-flag-cleanup repository. This pins your workflow to a latest version of the action.

  1. Commit & push action.yml.

Usage

Feature Flag Cleanup Action will run on any push event.

Will not block PR approvals until you set fail-on-warnings: true.

Configuration options

Add these to the with section to enable more functionality.

Parameter Description Default
configcat-sdk-key The SDK Key for your feature flags & settings. CONFIG_CAT_SDK_KEY
scan-directory The directory to run flag validations on. .
configcat-cdn-server To set a custom ConfigCat CDN server. cdn.configcat.com
fail-on-warnings Show warnings or stop on a build error when validation fails. false
debug More verbose logging. false

github-action-feature-flag-cleanup's People

Contributors

sigewuzhere avatar z4kn4fein avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.