Skip to content

Get the number the next pull request will be assigned for a public GitHub repository.

License

Notifications You must be signed in to change notification settings

ichard26/next-pr-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next PR Number

Next PR Number is a web tool that allows you to quickly and easily know what number your PR will be assigned before opening it. Forget guessing the number or checking afterhand.

Features:

  • Sharable URLs that autofill the repository - Want your project's contributors to use Next PR Number? Give them a link that autofills and queries your repository for them for a seamless experience. Here's an example.
  • Lightweight - Next PR Number is built with pure HTML, JS, CSS. There's no dependencies that slow down page load (except for analytics provided by a self-hosted Plausible instance)

In all seriousness, this exists to make changelog entry enforcement easier and a smoother experience for everyone. When I maintained black and bandersnatch, writing a release changelog takes time, time that could've been better spent elsewhere. So a policy was introduced where (substantial) PRs must have an changelog entry... and the PR number. While that reduced the administrative workload, it merely pushed the workload onto the contributors, who must now get the PR number somehow.

This website was created to give contributors a fast and painless way to get that PR number so they can focus on writing good code.

Note: Next PR Number only supports public GitHub repositories

Privacy statement

Next PR Number to subject to the privacy statement on my personal website.

Contributing

Contributions of all sorts are welcomed, even feedback if it's constructive! Opening an issue to check with me before working on a changeset is highly recommended.

In terms of technical tips, I recommend that you use Python's built-in webserver to test locally while iterating on your changes:

example-user@example-desktop:~$ cd next-pr-number
example-user@example-desktop:~/next-pr-number$ python -m http.server 4000
Serving HTTP on 0.0.0.0 port 4000 (http://0.0.0.0:4000/) ...

Please note that this project to also my excuse to learn web development. So I'm sure I'm doing a ton of things wrong in this project :) I'm open to feedback in this regard too.

Finally, don't forget to add yourself to the AUTHORS list below. You made a contribution and you deserve the thanks!

SQLite3 Schema

CREATE TABLE "queries" (
    "datetime"   TEXT PRIMARY KEY NOT NULL,
    "owner"      TEXT NOT NULL,
    "name"       TEXT NOT NULL,
    "result"     INTEGER NOT NULL
);

Authors

Glued together by Richard Si (@ichard26).

  • Jaap Roes
  • Marc Mueller (@cdce8p)
  • your name here perhaps?