Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/merlinstardust/pr-count
https://github.com/merlinstardust/pr-count
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/merlinstardust/pr-count
- Owner: merlinstardust
- Created: 2024-03-01T02:26:37.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-01T18:11:25.000Z (11 months ago)
- Last Synced: 2024-11-12T18:48:36.170Z (2 months ago)
- Language: TypeScript
- Size: 57.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pull Request Count
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```## API
To call the API directly, go to [http://localhost:3000/api/pull-requests?owner=lodash&repo=lodash](http://localhost:3000/api/pull-requests?owner=lodash&repo=lodash)
This will show you the number of pull requests for the lodash repo.
Parameters are:
- owner
- required
- the username or org that owns the repo
- repo
- the repository you wish to count pull requests for
- state
- optional, defaults to `all`
- options are `all`', `open`, `closed`To see the pull requests for any repo, change owner to the owner of a repo and change repo to the name of the repo
## GUI
Alternatively, you can use the GUI on the main page.
Open [http://localhost:3000](http://localhost:3000)
To use the GUI, type in the owner and repo with a slash `/` in between (eg `owner/repo`) and change the state by clicking any of the buttons