{"id":15791291,"url":"https://github.com/levonet/ansible-ci-github-rm-branch","last_synced_at":"2026-02-12T10:31:31.126Z","repository":{"id":67322350,"uuid":"150728124","full_name":"levonet/ansible-ci-github-rm-branch","owner":"levonet","description":"Remove branch from github repository","archived":false,"fork":false,"pushed_at":"2019-02-06T17:30:37.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-21T00:32:24.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/levonet/ci_github_rm_branch","language":null,"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/levonet.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":"2018-09-28T11:07:57.000Z","updated_at":"2019-07-03T13:48:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8cafbd9-533e-4d2c-a708-b6c00bd65a2e","html_url":"https://github.com/levonet/ansible-ci-github-rm-branch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/levonet/ansible-ci-github-rm-branch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-github-rm-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-github-rm-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-github-rm-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-github-rm-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levonet","download_url":"https://codeload.github.com/levonet/ansible-ci-github-rm-branch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levonet%2Fansible-ci-github-rm-branch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: 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":[],"created_at":"2024-10-04T23:00:41.218Z","updated_at":"2026-02-12T10:31:31.109Z","avatar_url":"https://github.com/levonet.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CI: Remove branch from github repository.\n\nThis role is useful in CI pipeline after merging Pull Request.\n\n## Role Variables\n\n- `ci_github_api` (default: https://api.github.com)\n- `ci_github_username` (required): Github username.\n- `ci_github_password` (required): [Github access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).\n- `ci_github_owner` (required): Github owner or organisation name.\n- `ci_github_repo` (required): Github project repository name.\n- `ci_github_ref` (required): Github ref name.\n- `ci_github_ignore_error` (default: yes): Ignore any errors.\n\n## Example Playbook\n\n```yaml\n- hosts: 127.0.0.1\n  connection: local\n  gather_facts: no\n  vars:\n    ci_github_username: ci-bot\n    ci_github_password: secret\n    ci_github_owner: myorg\n    ci_github_repo: myapp\n    ci_github_ref: \"heads/{{ github_branch }}\"\n  roles:\n    - role: levonet.ci_github_rm_branch\n```\n\nAnd run in Jenkins:\n\n```bash\nansible-playbook myplaybook.yml -e github_branch=\"${X_GH_BRANCH}\"\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\n## Author Information\n\nThis role was created by [Pavlo Bashynskyi](https://github.com/levonet)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevonet%2Fansible-ci-github-rm-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevonet%2Fansible-ci-github-rm-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevonet%2Fansible-ci-github-rm-branch/lists"}