{"id":24531945,"url":"https://github.com/julbme/gh-action-manage-label","last_synced_at":"2025-04-14T19:12:58.571Z","repository":{"id":65155553,"uuid":"463098890","full_name":"julbme/gh-action-manage-label","owner":"julbme","description":"GitHub Action to manage labels in a repository","archived":false,"fork":false,"pushed_at":"2022-12-03T21:04:29.000Z","size":685,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T19:12:52.672Z","etag":null,"topics":["ci","github-action","label"],"latest_commit_sha":null,"homepage":"https://julbme.github.io/gh-action-manage-label/","language":"Java","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/julbme.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}},"created_at":"2022-02-24T10:10:23.000Z","updated_at":"2022-11-08T00:57:49.000Z","dependencies_parsed_at":"2023-01-04T12:32:36.155Z","dependency_job_id":null,"html_url":"https://github.com/julbme/gh-action-manage-label","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.33333333333333337","last_synced_commit":"720ca5fdc1456adcb710c5126b645c3c19fb77be"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-manage-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-manage-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-manage-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-manage-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julbme","download_url":"https://codeload.github.com/julbme/gh-action-manage-label/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943461,"owners_count":21186958,"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":["ci","github-action","label"],"created_at":"2025-01-22T09:16:55.961Z","updated_at":"2025-04-14T19:12:58.552Z","avatar_url":"https://github.com/julbme.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/julbme/gh-action-manage-label/actions/workflows/maven-build.yml/badge.svg)](https://github.com/julbme/gh-action-manage-label/actions/workflows/maven-build.yml)\n[![Lint Commit Messages](https://github.com/julbme/gh-action-manage-label/actions/workflows/commitlint.yml/badge.svg)](https://github.com/julbme/gh-action-manage-label/actions/workflows/commitlint.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=julbme_gh-action-manage-label\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=julbme_gh-action-manage-label)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/julbme/gh-action-manage-label)\n\n# GitHub Action to manage labels\n\nThe GitHub Action for managing labels of the GitHub repository from a provided file.\nIt is particularly helpful when you want to setup the same labels for all your repositories.\n\n## Usage\n\n### Example Workflow file\n\n- Synchronize labels from a YAML file:\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n\n      - name: Synchronize labels\n        uses: julbme/gh-action-manage-label@v1\n        with:\n          from: .github/config/labels.yml\n          skip_delete: false\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n- Synchronize labels from multiple YAML files:\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n\n      - name: Synchronize labels\n        uses: julbme/gh-action-manage-label@v1\n        with:\n          from: |\n            https://raw.githubusercontent.com/my-org/my-repositorty/path-to-folder-with/common-labels.yml\n            .github/config/labels.yml\n            .github/config/other-labels.yml\n          skip_delete: false\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n- Label configuration structure in YAML file:\n\n```yaml\n- name: \"bug\"\n  color: \"D73A4A\"\n  description: \"Something isn't working\"\n\n- name: \"critical\"\n  color: \"FF1493\"\n  description: \"High urgency label\"\n\n- name: \"docs\"\n  color: \"808000\"\n  description: \"Improvements or additions to documentation\"\n```\n\n### Inputs\n\n|     Name      |  Type   |           Default           |                                                                       Description                                                                        |\n|---------------|---------|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `from`        | string  | `.github/config/labels.yml` | Path of the file containing the labels. Can be `.yml`, `.yaml` or `.json`. A HTTP/HTTPS URL can be provided if the file is stored in another repository. |\n| `skip_delete` | boolean | `false`                     | If `true`, the process will not delete existing labels that are not defined in the file.                                                                 |\n\n\u003e **Note** : the `from` field also accepts a multi-line parameter in order to accept multiple source files. If there is an overlap on the labels between the files, the last one will take over the others.\n\n### Outputs\n\nNo output.\n\n## Contributing\n\nThis project is totally open source and contributors are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulbme%2Fgh-action-manage-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulbme%2Fgh-action-manage-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulbme%2Fgh-action-manage-label/lists"}