{"id":34993269,"url":"https://github.com/magebitcom/list-pr-action","last_synced_at":"2026-05-19T21:06:08.625Z","repository":{"id":268352203,"uuid":"904057077","full_name":"magebitcom/list-pr-action","owner":"magebitcom","description":"GitHub action that lists pull requests","archived":false,"fork":false,"pushed_at":"2024-12-16T08:01:51.000Z","size":279,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-16T08:38:14.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/magebitcom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-16T07:07:42.000Z","updated_at":"2024-12-16T08:01:55.000Z","dependencies_parsed_at":"2024-12-16T08:38:21.262Z","dependency_job_id":"6b38e8d5-ca84-4102-b6d0-319460696d5f","html_url":"https://github.com/magebitcom/list-pr-action","commit_stats":null,"previous_names":["magebitcom/list-pr-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/magebitcom/list-pr-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Flist-pr-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Flist-pr-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Flist-pr-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Flist-pr-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magebitcom","download_url":"https://codeload.github.com/magebitcom/list-pr-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Flist-pr-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33233158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2025-12-27T01:59:29.001Z","updated_at":"2026-05-19T21:06:08.620Z","avatar_url":"https://github.com/magebitcom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# List Pull Requests Action\n\nThis GitHub Action lists all pull requests targeting a specific branch or tag.\n\n## Inputs\n\n- `base`: The base branch to list pull requests for (default: 'master')\n- `github-token`: GitHub token for authentication (default: ${{ github.token }})\n- `state`: The state of the pull requests to list (default: 'open')\n- `hours_old`: Filter out PRs that are more than this many hours old (default: '0', meaning no filtering)\n\n## Outputs\n\n- `pull_requests_json`: JSON array containing the pull request data with the following structure:\n  ```json\n  {\n    \"number\": 123,\n    \"title\": \"PR Title\",\n    \"author\": \"username\",\n    \"url\": \"https://github.com/owner/repo/pull/123\",\n    \"created_at\": \"2023-12-16T00:00:00Z\",\n    \"updated_at\": \"2023-12-16T00:00:00Z\",\n    \"state\": \"open\",\n    \"draft\": false,\n    \"labels\": [\"bug\", \"enhancement\"],\n    \"reviewers\": {\n      \"users\": [\"reviewer1\", \"reviewer2\"],\n      \"teams\": [\"team-reviewers\"]\n    }\n  }\n  ```\n- `count`: Number of pull requests found\n\n## Usage\n\n```yaml\nname: List Pull Requests\non:\n  workflow_dispatch:\n    inputs:\n      base:\n        description: 'Base branch to check'\n        required: true\n        default: 'main'\n      hours:\n        description: 'Age limit in hours (PRs older than this will be filtered out)'\n        required: false\n        default: '0'\n\njobs:\n  list-prs:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Get list of pull requests\n        id: list-prs\n        uses: magebitcom/list-pr-action@v1.0.0\n        with:\n          base: ${{ github.event.inputs.base }}\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          hours_old: ${{ github.event.inputs.hours }}\n          \n      # Example: Use the outputs in subsequent steps\n      - name: Use PR Data\n        run: |\n          echo \"Found ${{ steps.list-prs.outputs.count }} pull requests\"\n          echo \"Pull Requests Data:\"\n          echo \"$JSON\" | jq '.[].url'\n        env:\n          JSON: ${{ steps.list-prs.outputs.pull_requests_json }}\n```\n\n## Example Output\n\nThe action will output information about each pull request found both in the logs and as structured data:\n\n```json\n{\n  \"pull_requests_json\": [\n    {\n      \"number\": 123,\n      \"title\": \"Add new feature\",\n      \"author\": \"octocat\",\n      \"url\": \"https://github.com/owner/repo/pull/123\",\n      \"created_at\": \"2023-12-16T00:00:00Z\",\n      \"updated_at\": \"2023-12-16T00:00:00Z\",\n      \"state\": \"open\",\n      \"draft\": false,\n      \"labels\": [\"enhancement\"],\n      \"reviewers\": {\n        \"users\": [\"reviewer1\", \"reviewer2\"],\n        \"teams\": [\"team-reviewers\"]\n      }\n    }\n  ],\n  \"count\": 1\n}\n```\n\nThe logs will also show:\n```\nFound 1 pull request(s) for base: main\n\n#123 - Add new feature\nAuthor: octocat\nURL: https://github.com/owner/repo/pull/123\nReviewers: reviewer1, reviewer2\nTeam Reviewers: team-reviewers\n---\n```\n\n## Development\n\n1. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n2. Build the action:\n   ```bash\n   npm run build\n   ```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagebitcom%2Flist-pr-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagebitcom%2Flist-pr-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagebitcom%2Flist-pr-action/lists"}