{"id":18305090,"url":"https://github.com/jop-software/github-labels-as-code-action","last_synced_at":"2025-08-04T16:43:05.568Z","repository":{"id":65550400,"uuid":"594475630","full_name":"jop-software/github-labels-as-code-action","owner":"jop-software","description":"Store your issue labels as code in your repository.","archived":false,"fork":false,"pushed_at":"2023-02-03T19:28:41.000Z","size":339,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T16:27:03.235Z","etag":null,"topics":["actions","github-action","github-labels","project-management"],"latest_commit_sha":null,"homepage":"","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/jop-software.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}},"created_at":"2023-01-28T17:07:37.000Z","updated_at":"2023-01-28T20:45:01.000Z","dependencies_parsed_at":"2023-02-15T19:00:26.142Z","dependency_job_id":null,"html_url":"https://github.com/jop-software/github-labels-as-code-action","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"b5a1ff070b0822daa8cfbb3a3ddcf0b2dffab91b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jop-software/github-labels-as-code-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fgithub-labels-as-code-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fgithub-labels-as-code-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fgithub-labels-as-code-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fgithub-labels-as-code-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jop-software","download_url":"https://codeload.github.com/jop-software/github-labels-as-code-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fgithub-labels-as-code-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268723505,"owners_count":24296623,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["actions","github-action","github-labels","project-management"],"created_at":"2024-11-05T15:32:39.226Z","updated_at":"2025-08-04T16:43:05.543Z","avatar_url":"https://github.com/jop-software.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eGitHub labels as code Action\u003c/h1\u003e\n    \u003cp\u003eStore your issue labels as code in your repository.\u003c/p\u003e\n\u003c/div\u003e\n\n## Inputs\n\n| Name    | Description                                | Default                 |\n|---------|--------------------------------------------|-------------------------|\n| `token` | Token to use to authorize label changes. (See [_Github Tokens_](#github-tokens))   | `${{ github.token }}`   |\n| `file`  | Path to the file you store your labels in. | `./.github/labels.json` |\n\n## Example usage\n\n```yaml\nuses: jop-software/github-labels-as-code-action@v1.0\nwith:\n  token: \"${{ github.token }}\"\n  file: \"./.github/labels.json\"\n```\n\n**Note:** You need to execute this action *after* [actions/checkout](https://github.com/actions/checkout)\n\nIf you want to see a real example of this action, take a look at [the workflows from this repository](./.github/workflows/labels.yaml) 😉 \n\n### Github Tokens\n\nOn Feb. 2, 2023 GitHub announced in [a blog post](https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/) that new generated GHA Tokens in repository will be **read only by defaut**.  \nTherefore, when you add the action to a repository created after _2023-02-02_ you need to make sure to provide a GitHub token that has **write access** to update issue labels. This can be toggled in the [repository settings](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-default-github_token-permissions).  \nWhen you are using inheritence for repository permissions, please read the [GitHub Blog Post](https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/) explaining that change.\n\n## JSON Format\n\nThe expected JSON format follows the _Body parameters_ from the \n[Create a label](https://docs.github.com/de/rest/issues/labels?apiVersion=2022-11-28#create-a-label) GitHub Rest API endpoint.\n\nSee the following example:\n\n```json5\n[\n  {\n    \"name\": \"Bug\",                            // \u003c- String\n    \"description\": \"Something isn't working\", // \u003c- String (max 100 chars, optional)\n    \"color\": \"d73a4a\"                         // \u003c- String (hexadecimal color code without the leading #) \n  }\n  // ...\n]\n```\n\n## Professional Support \n\nProfessional support is available, contact [support@jop-software.de](mailto:support@jop-software.de) for more information.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cspan\u003e\u0026copy; 2023, jop-software Inh. Johannes Przymusinski\u003c/span\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fgithub-labels-as-code-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjop-software%2Fgithub-labels-as-code-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fgithub-labels-as-code-action/lists"}