{"id":17641664,"url":"https://github.com/rogeriopvl/pullhub","last_synced_at":"2025-05-06T21:44:45.444Z","repository":{"id":48398154,"uuid":"88261642","full_name":"rogeriopvl/pullhub","owner":"rogeriopvl","description":"📋 Get pull requests from one or more github repos filtered by labels","archived":false,"fork":false,"pushed_at":"2021-07-28T06:05:33.000Z","size":212,"stargazers_count":6,"open_issues_count":6,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-21T16:51:55.725Z","etag":null,"topics":["github","labels","node","npm","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rogeriopvl.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":"2017-04-14T11:19:07.000Z","updated_at":"2023-03-10T09:18:37.000Z","dependencies_parsed_at":"2022-09-06T03:52:07.044Z","dependency_job_id":null,"html_url":"https://github.com/rogeriopvl/pullhub","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogeriopvl%2Fpullhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogeriopvl%2Fpullhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogeriopvl%2Fpullhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogeriopvl%2Fpullhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogeriopvl","download_url":"https://codeload.github.com/rogeriopvl/pullhub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252681909,"owners_count":21787764,"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","labels","node","npm","pull-requests"],"created_at":"2024-10-23T07:07:29.600Z","updated_at":"2025-05-06T21:44:45.415Z","avatar_url":"https://github.com/rogeriopvl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pullhub [![Build Status](https://travis-ci.org/rogeriopvl/pullhub.svg?branch=master)](https://travis-ci.org/rogeriopvl/pullhub)\n\n## About\n\nPullhub is a cli and lib tool that lists all pull requests from one or more repos. It supports filtering by label.\n\n## Install\n\n    npm install --save pullhub\n\n## Authentication\n\nPullhub authenticates the user via a github token. To get your token visit this [github help page](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).\n\nFor public repos the token is optional but recommended. Private repos need token to enable access.\n\nYou can set the token in your shell enviroment, just add to your `.bashrc`, `.zshrc` etc. the following line:\n\n    export GH_TOKEN=mypersonaltoken\n\nThis will work for both cli and lib usage.\n\n## Cli usage\n\n```shell\npullhub \u003crepos\u003e [--labels] [--version] [--help]\n\n  \u003crepos\u003e            space separated repos in the user/repo format\n  --user \u003cusername\u003e  search all repos for given username\n  --labels           comma separated labels to filter PRs by\n  --version          show version info\n  --help             show this usage info\n```\n\n### Examples\n\n- Get all open pull requests from two repos\n\n```shell\npullhub user/repo1 user/repo2\n```\n\n- Get all open pull requests labeled \"needs review\" from two repos\n\n```shell\npullhub user/repo1 user/repo2 --labels \"needs review\"\n```\n\n- Get all open pull requests labeled \"in progress\" and \"reviewed\" from one repo\n\n```shell\npullhub user/repo1 --labels \"in progress,reviewed\"\n```\n\n- Get all open pull requests from all the repos of a user\n\n```shell\npullhub --user rogeriopvl\n```\n\n## Lib usage\n\nYou can use pullhub as a library, and what it will allow you to get all PRs in given repositories with given labels.\n\nYou can use promises:\n\n```javascript\nconst pullhub = require('pullhub')\n\npullhub(['rogeriopvl/http.cat'], 'needs review,reviewed')\n  .then((prs) =\u003e console.log(prs))\n  .catch(err) =\u003e console.error(err)\n```\nOr callbacks:\n\n```javascript\nconst pullhub = require('pullhub')\n\npullhub(['rogeriopvl/http.cat'], 'needs review', function (err, repos) {\n  console.log(err, repos)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogeriopvl%2Fpullhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogeriopvl%2Fpullhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogeriopvl%2Fpullhub/lists"}