{"id":18626369,"url":"https://github.com/drbarnabus/label-sync","last_synced_at":"2026-02-14T18:02:19.847Z","repository":{"id":96004923,"uuid":"529333591","full_name":"DrBarnabus/label-sync","owner":"DrBarnabus","description":"Github Action to sync labels in a particular repo with a yaml file for easy cross repo configuration.","archived":false,"fork":false,"pushed_at":"2025-03-09T10:48:57.000Z","size":1085,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T13:46:23.585Z","etag":null,"topics":["actions","github","github-action","github-actions","labels","sync","synchronization"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrBarnabus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2022-08-26T16:39:00.000Z","updated_at":"2025-02-20T22:53:30.000Z","dependencies_parsed_at":"2024-11-07T04:40:20.438Z","dependency_job_id":"3070fa35-aff7-46c2-a294-8f57ea8da46b","html_url":"https://github.com/DrBarnabus/label-sync","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DrBarnabus/label-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBarnabus%2Flabel-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBarnabus%2Flabel-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBarnabus%2Flabel-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBarnabus%2Flabel-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrBarnabus","download_url":"https://codeload.github.com/DrBarnabus/label-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrBarnabus%2Flabel-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29451924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","github-action","github-actions","labels","sync","synchronization"],"created_at":"2024-11-07T04:37:49.997Z","updated_at":"2026-02-14T18:02:19.819Z","avatar_url":"https://github.com/DrBarnabus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# label-sync\n\nGithub Action to sync labels in a particular repo with a yaml file for easy cross repo configuration.\n\n## Example\n\n`.github/labels.yml`\n```yaml\nlabels:\n- name: bug\n  description: 'Label for a bug'\n  color: 'd73a4a'\n- name: feature\n  color: '00ff00'\n```\n\n`.github/workflows/label-sync.yml`\n```yaml\nname: 'Label Sync'\non:\n  push:\n    branches:\n    - main\n    paths:\n    - .github/workflows/label-sync.yml\n    - .github/labels.yml\n\njobs:\n  label-sync:\n    name: 'Sync Labels'\n    runs-on: ubuntu-latest\n    steps:\n    - uses: DrBarnabus/label-sync@v1\n      with:\n        github-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Workflow Parameters\n\n__github-token__ - The GitHub API Token, for example `${{ secrets.GITHUB_TOKEN }}`\n__config-path__ - Optional override for the path to the configuration file. Defaults to `.github/labels.yml`\n__owner__ - Optional override for the repo owner to apply to (if not appling to this repo)\n__repo__ - Optional override for the repo to apply to (if not appling to this repo)\n\n## Applying to multiple repos\n\nAlthough recommended to have a `labels.yml` in each repository you are managing. In an advanced use case, you may want to have a global configuration for your labels and apply to many repos in the same organization/user (or even across multiple organizations/users).\n\nTo achieve this you must provide a PAT (Personal access token) for a github account with access to all repos. You can the use a workflow configuration similar to below to run the step for all repos listed.\n\n`.github/workflows/label-sync.yml`\n```yaml\nname: 'Label Sync'\non:\n  push:\n    branches:\n    - main\n    paths:\n    - .github/workflows/label-sync.yml\n    - .github/labels.yml\n\njobs:\n  label-sync:\n    name: 'Sync Labels'\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        repo: ['repo-one', 'repo-two', 'repo-three']\n    steps:\n    - uses: DrBarnabus/label-sync@v1\n      with:\n        github-token: ${{ secrets.GITHUB_PAT }}\n        owner: 'DrBarnabus'\n        repo: ${{ matrix.repo }}\n```\n\n_To sync to multiple organizations/users add more jobs with the appropriate repositories listed._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbarnabus%2Flabel-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrbarnabus%2Flabel-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrbarnabus%2Flabel-sync/lists"}