{"id":19606282,"url":"https://github.com/droath/robo-github","last_synced_at":"2025-07-25T00:03:01.321Z","repository":{"id":56972317,"uuid":"86952671","full_name":"droath/robo-github","owner":"droath","description":"Run GitHub remote commands from the Robo task runner.","archived":false,"fork":false,"pushed_at":"2017-11-11T21:45:51.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T03:01:49.567Z","etag":null,"topics":["github","robo","robo-tasks"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/droath.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":"2017-04-02T00:47:23.000Z","updated_at":"2017-07-27T03:05:51.000Z","dependencies_parsed_at":"2022-08-21T10:20:17.126Z","dependency_job_id":null,"html_url":"https://github.com/droath/robo-github","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2Frobo-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2Frobo-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2Frobo-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2Frobo-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droath","download_url":"https://codeload.github.com/droath/robo-github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251196338,"owners_count":21550941,"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":["github","robo","robo-tasks"],"created_at":"2024-11-11T10:04:08.647Z","updated_at":"2025-04-27T19:32:56.933Z","avatar_url":"https://github.com/droath.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robo GitHub\n\nRun GitHub commands from the Robo task runner.\n\n### Getting Started\n\nFirst, you'll need to download the Robo GibHub library using composer:\n\n```bash\ncomposer require droath/robo-github\n```\n\nNext, you'll need to create a personal access token on GitHub so you have access to your private repositories via a Robo task. Follow this [GitHub guide](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) to obtain your access token.\n\nOnce you've created your GitHub token you'll need to pass the access token along with the GitHub project user or organization and repository name, like the following:\n\n```php\n\u003c?php\n    $token = 'OJuJcqaYiX5uL72Ky';\n    $account = 'droath';\n    $repository = 'robo-github';\n\n    $response = $this\n        -\u003etaskGitHubIssueAssignees($token, $account, $repository)\n        ...\n        ...\n        -\u003erun();\n\n    var_dump($response);\n```\n\nThe GitHub account and repository arguments can also be defined using the set methods:\n\n```php\n\u003c?php\n    $response = $this\n        -\u003etaskGitHubIssueAssignees('OJuJcqaYiX5uL72Ky')\n        -\u003esetAccount('droath')\n        -\u003esetRepository('robo-github')\n        ...\n        -\u003erun();\n\n    var_dump($response);\n```\n\n### Example\n\n**Retrieve GitHub issues:**\n\n```php\n\u003c?php\n    $issues = $this-\u003etaskGitHubIssueList('OJuJcqaYiX5uL72Ky')\n        -\u003esetAccount('droath')\n        -\u003esetRepository('robo-github')\n        -\u003efilter('assigned')\n        -\u003estate('opened')\n        -\u003elabels(['bug', 'duplicates'])\n        ...\n        -\u003erun();\n\n    var_dump($issues);\n```\n\n**Assign a GitHub issue:**\n\n```php\n\u003c?php\n    // The GitHub issue number.\n    $number = 6;\n\n    // The GitHub user name to assign the issue too.\n    $assignee = 'droath';\n\n   $response = $this-\u003etaskGitHubIssueAssignees('OJuJcqaYiX5uL72Ky')\n        -\u003esetAccount('droath')\n        -\u003esetRepository('robo-github')\n        -\u003enumber($number)\n        -\u003eaddAssignee($assignee)\n        -\u003erun();\n```\n\n**Create repository statuses:**\n\n```php\n\u003c?php\n\n\t// GitHub commit sha reference.\n\t$sha = 'c70cc19bc1bc817971ad693e58a15ed5703b439d';\n\t\n\t// GitHub status state.\n\t$state = 'success';\n\t\n\t$this-\u003etaskGitHubIssueAssignees('OJuJcqaYiX5uL72Ky')\n        -\u003esetAccount('droath')\n        -\u003esetRepository('robo-github')\n        -\u003esetSha($sha)\n        -\u003esetParamState($state)\n        -\u003esetParamDescription('State description!')\n        -\u003esetParamContext('vendor/projctname')\n        -\u003erun();\n\n```\n\n\n### Support\n\nI'll be adding more GitHub commands as they're needed. Feel free to create a PR or an issue with any problems you're having.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroath%2Frobo-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroath%2Frobo-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroath%2Frobo-github/lists"}