{"id":20386676,"url":"https://github.com/bastiao/contributions","last_synced_at":"2026-04-20T06:31:43.689Z","repository":{"id":45089435,"uuid":"301168530","full_name":"bastiao/contributions","owner":"bastiao","description":"Application to fetch data/send instructions to phabricator, and jenkins (Phabricator + CI)","archived":false,"fork":false,"pushed_at":"2023-01-25T22:57:07.000Z","size":4357,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T23:27:50.559Z","etag":null,"topics":["differentials","jenkins","phabricator"],"latest_commit_sha":null,"homepage":"https://github.com/bastiao/contributions","language":"Go","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/bastiao.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":"2020-10-04T16:00:17.000Z","updated_at":"2023-01-22T14:01:30.000Z","dependencies_parsed_at":"2023-02-14T12:15:40.382Z","dependency_job_id":null,"html_url":"https://github.com/bastiao/contributions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bastiao/contributions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastiao%2Fcontributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastiao%2Fcontributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastiao%2Fcontributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastiao%2Fcontributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bastiao","download_url":"https://codeload.github.com/bastiao/contributions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastiao%2Fcontributions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["differentials","jenkins","phabricator"],"created_at":"2024-11-15T02:38:17.616Z","updated_at":"2026-04-20T06:31:43.658Z","avatar_url":"https://github.com/bastiao.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contributions: a few scripts for Phabricator/CI integration\n\nThe idea is to keep the communication between phabricator and jenkins in your command line, such as check pending differentials or run a build job in Jenkins.\n\n\n## List differentials\n\nThis is an example to list and watch for differential contributions. \n\nThe `watch` is an optional flag. \n\n\n```\n$ contributions arc --list --watch \n```\n\nResult: List of open differentials.\n\n```\n\n⭐ Starting pha-go with arc command.\n         List:  false\n         Watch:  true\n         Params:  \n\n🚒 Looking for the contributions for today. \n📃 Endpoint:  https://phabricator.localdomain\n⌛ Token:  cli-hash\n\n🚒 Watching. \n\n\n🎆 Open or pending differentials:\n        🐊 URI:  https://phabricator.localdomain/D100\n        Branch:  imp/example\n        StatusName:  Accepted\n        Repo:  rREPO01\n```\n\n\n## Build branch over CI\n\nHere, you can easily start a new build manually, by command-line. \n\nIt is easier to get the identifier queue address.\n\n```\n$ contributions jenkins --branch=branch_example_param --params-ci=\"linux_agent=linux04\"\n```\n\nThe result will be look for Jenkins and start a new job with a few parameters:\n\n\n```\n⭐ Starting pha-go with jenkins command.\n         List:  \n         Watch:  \n         Params:  code_branch=test/1.0.0,linux_agent=linux04\n         Revision:  0\n\n🏃 Jenkins mode.\n\n🙅 Jenkins Nodes:\n\n        📗 Node is online master\n        📗 Node is online windows09\n        📗 Node is online linux04\n        📗 Node is online linux20\n\n🎃 Latest job:\n\n\n         - Last Success Build: [] \n         - Duration:  912 seconds\n\n🎃 Current build:\n\n\n         - Params:  map[test/1.0.0,linux_agent=linux04]\n         📕 Jenkins Build Id:  6720\n         - Job:  \u0026{0xc000122a00 0xc000013560 /job/Pipeline}\n         - Building Number:  774\n         - Params:  [{linux_agent=linux04} {BranchDevops */master}]\n         - Duration:  0 seconds\n         - Running:  true\n         - Output:\n```\n\n\n## How to run for development? \n\nThere are only a few examples to make life easier for development: \n\n### CI/Jenkins\n\nRun a specific branch in the Jenkins\n\n```\nPHA_ARGS=\"jenkins --branch=branch_example_param --params-ci=linux_agent=linux04 --repo=example01 --revision=100\" make run\n```\n### Differentals \n\nRun in development mode: \n\n```\nPHA_ARGS=\"arc\" make run\n```\n\n\n### Documentations \n\nThis allow to check a list of studies with a specific keyword to match in the title.\nFor instance, it will look for pages with keyword \"Support\" and stop on find the date different than \"2020\", and check only the titles that match P1 or P2.\n\n```\n./bin/contributions docs --list --query=\"Support\" --filter=\"2020\" --match \"P1|P2\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastiao%2Fcontributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbastiao%2Fcontributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastiao%2Fcontributions/lists"}