{"id":20463216,"url":"https://github.com/devwithkrishna/github-create-and-add-labels-all-repos-using-python","last_synced_at":"2025-03-05T11:50:32.996Z","repository":{"id":244544321,"uuid":"802595479","full_name":"devwithkrishna/github-create-and-add-labels-all-repos-using-python","owner":"devwithkrishna","description":"Create and add GitHub labels to repositories which can be later used for pull requests and issuead ","archived":false,"fork":false,"pushed_at":"2024-09-25T20:35:55.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-16T00:55:52.020Z","etag":null,"topics":["dependabot","github","github-action","github-workflow","poetry","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/devwithkrishna.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}},"created_at":"2024-05-18T18:28:39.000Z","updated_at":"2024-09-25T20:35:17.000Z","dependencies_parsed_at":"2025-01-16T00:48:35.625Z","dependency_job_id":null,"html_url":"https://github.com/devwithkrishna/github-create-and-add-labels-all-repos-using-python","commit_stats":null,"previous_names":["devwithkrishna/github-create-and-add-labels-all-repos-using-python"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devwithkrishna","download_url":"https://codeload.github.com/devwithkrishna/github-create-and-add-labels-all-repos-using-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023192,"owners_count":20059297,"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":["dependabot","github","github-action","github-workflow","poetry","python"],"created_at":"2024-11-15T13:09:55.411Z","updated_at":"2025-03-05T11:50:32.959Z","avatar_url":"https://github.com/devwithkrishna.png","language":"Python","readme":"# github-create-and-add-labels-all-repos-using-python\nCreate and add GitHub labels to repositories which can be later used for pull requests and issues \n\n# How code works\n\n* we use _**GitHub REST API**_ to programatically create Labels\n* The program `create_new_labels.py` have 2 parts \n    1. It uses GitHub endpoint for listing repos under an organization to list all repositories\n    2. It uses create labels end point to create labels in repos\n* Proper logs (*error* OR *success messgaes*) are displayed\n\n\n# Authentication method used\n\n`I am using fine grained personal access token`\n\n \n* The fine-grained token must have at least one of the following permission sets:\n\n    * \"Issues\" repository permissions (write)\n    * \"Pull requests\" repository permissions (write)\n\n# Reference\n\n[Create Github Labels](https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#create-a-label)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fgithub-create-and-add-labels-all-repos-using-python/lists"}