{"id":26514863,"url":"https://github.com/devcyclehq/feature-flag-code-usage-action","last_synced_at":"2025-03-21T05:29:37.839Z","repository":{"id":37953068,"uuid":"465773224","full_name":"DevCycleHQ/feature-flag-code-usage-action","owner":"DevCycleHQ","description":"DevCycle - Feature Flag Code Usages Action","archived":false,"fork":false,"pushed_at":"2025-03-12T20:40:25.000Z","size":1368,"stargazers_count":19,"open_issues_count":3,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-12T21:29:35.890Z","etag":null,"topics":["continuous-delivery","continuous-deployment","devcycle","devops","feature-flags","feature-toggles","openfeature"],"latest_commit_sha":null,"homepage":"https://docs.devcycle.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevCycleHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-03T15:21:48.000Z","updated_at":"2024-12-17T21:12:33.000Z","dependencies_parsed_at":"2023-02-14T23:46:21.921Z","dependency_job_id":"df676192-48c7-4a35-80ac-cc75063c2a3f","html_url":"https://github.com/DevCycleHQ/feature-flag-code-usage-action","commit_stats":{"total_commits":24,"total_committers":8,"mean_commits":3.0,"dds":"0.29166666666666663","last_synced_commit":"35722cf822341b1e2ff6e2129b92662fc57e183a"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevCycleHQ%2Ffeature-flag-code-usage-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevCycleHQ%2Ffeature-flag-code-usage-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevCycleHQ%2Ffeature-flag-code-usage-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevCycleHQ%2Ffeature-flag-code-usage-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevCycleHQ","download_url":"https://codeload.github.com/DevCycleHQ/feature-flag-code-usage-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745200,"owners_count":20503040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-delivery","continuous-deployment","devcycle","devops","feature-flags","feature-toggles","openfeature"],"created_at":"2025-03-21T05:29:37.201Z","updated_at":"2025-03-21T05:29:37.834Z","avatar_url":"https://github.com/DevCycleHQ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nWith this Github action, your [DevCycle](https://devcycle.com/) dashboard will be updated to display code snippets for each DevCycle variable usage within your project.\n\nNote: This is intended to run when pushing changes to your main branch\n\n### Example Output\n\n![Example Output](https://raw.githubusercontent.com/DevCycleHQ/feature-flag-code-usage-action/main/example_output.png)\n\n### Usage\nCreate a new Actions workflow in your GitHub repository (e.g. devcycle-usages.yml) in the .github/workflows directory. In your new file, paste the following code:\n\n```yaml\non:\n  push:\n    branches: [main]\n\njobs:\n  dvc-code-usages:\n    runs-on: ubuntu-latest\n    name: Fetch DevCycle Code Usages\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          fetch-depth: 0\n      - uses: DevCycleHQ/feature-flag-code-usage-action@1.2.0\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          client-id: ${{ secrets.DVC_CLIENT_ID }}\n          client-secret: ${{ secrets.DVC_CLIENT_SECRET }}\n          project-key: app-devcycle-com\n```\n\nYour DevCycle API credentials and project token are required to update the DevCycle dashboard.\n\nWhen referencing your API client ID and secret, we recommend using [GitHub Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) to store your credentials securely.\n\n### Inputs\n\n| input | required | description |\n| ----- | -------- | ----------- |\n| `github-token` | yes | The GitHub Actions token e.g. `secrets.GITHUB_TOKEN` |\n| `project-key` | yes | Your DevCycle project key, see [Projects](https://app.devcycle.com/r/projects) |\n| `client-id` | yes | Your organization's API client ID, see [Organization Settings](https://app.devcycle.com/r/settings) |\n| `client-secret` | yes | Your organization's API client secret, see [Organization Settings](https://app.devcycle.com/r/settings) |\n\n### Configuration\nThe patterns used to identify references to variables in your code are fully customizable.\nThis action uses the [DevCycle CLI](https://github.com/DevCycleHQ/cli) under the hood, for details on how to configure the pattern matcher see the [CLI configuration](https://github.com/DevCycleHQ/cli#configuration).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcyclehq%2Ffeature-flag-code-usage-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcyclehq%2Ffeature-flag-code-usage-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcyclehq%2Ffeature-flag-code-usage-action/lists"}