{"id":46905602,"url":"https://github.com/connected-web/prnow","last_synced_at":"2026-03-11T01:10:05.120Z","repository":{"id":43203468,"uuid":"353990732","full_name":"connected-web/prnow","owner":"connected-web","description":"Command line tool to create a PR now - minimal fuss - automated commit, push, and PR using hub","archived":false,"fork":false,"pushed_at":"2025-07-01T23:10:25.000Z","size":566,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T05:49:18.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/connected-web.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":"2021-04-02T10:51:56.000Z","updated_at":"2025-07-01T23:09:47.000Z","dependencies_parsed_at":"2022-09-11T18:03:53.152Z","dependency_job_id":null,"html_url":"https://github.com/connected-web/prnow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/connected-web/prnow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fprnow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fprnow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fprnow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fprnow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connected-web","download_url":"https://codeload.github.com/connected-web/prnow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connected-web%2Fprnow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30365047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2026-03-11T01:10:03.859Z","updated_at":"2026-03-11T01:10:05.105Z","avatar_url":"https://github.com/connected-web.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Now\n\nCommand line tool to create a PR now - minimal fuss - automated commit, push, and PR using hub\n\nTaking the effort out of making pull requests, by linking together branch names, PR titles, and tickets by running one simple command.\n\n![Photo of broken glass reflecting light on the road](./images/prnow-background.jpg)\n\n## So what is PR Now?\n\nPR Now is a command line tool that automates a streamlined workflow for making pull requests in the blink of an eye. PR Now assumes your project uses github, and you have a Github issue or Jira ticket associated with the change you're working on. If that's the case, then amazing; you're in for one crazily optimised PR experience!\n\n## Prereqsuites\n\n- `node js \u003e 22` installed : https://nodejs.org/en/\n- `gh \u003e 2.x` installed : https://cli.github.com/\n- `git \u003e 2` installed : https://git-scm.com/downloads\n- A project checked out from `github` : https://github.com/\n\n## Environment Variables\n\n- `GITHUB_TOKEN` set on your environment to a developer key for `gh` to talk to `github`\n\n### Optional\n\n- `PRNOW_JIRA_BASE_URL` set on your environment to integrate with Jira e.g. `https://connected-web.atlassian.net`\n- `PRNOW_JIRA_API_KEY` set on your environment to use an API key with Jira\n- `PRNOW_JIRA_CLIENT_KEY` set on your environment to point a private key PEM for use with SSL header accesss to Jira\n\n## What does PR Now do?\n\nPR Now will attempt to:\n- Create a commit title out of the current arguments (if multiple arguments are supplied)\n- Look at the current branch name, and attempt to extract a ticket ID or issue number   \n- Try to find an issue from github based on the supplied ID and extract its title\n- Try and find a Jira ticket based on the supplied ID and extract its title\n- Create and checkout a branch based on the ticket ID\n- Commit any unstaged files with the equivalent message \"TICKET-24 Title of ticket\"\n- Push any changes to the remote branch; creating the remote branch if necessary\n- Use `gh` to create a PR in github with a title, and a link to the ticket in the description\n- Use `gh` to open a browser with the new PR so you can review and share with friends\n\nThat's a lot of things! Think through how you would normally create a Pull Request - write down all the steps.\n\nThat's what this tool is trying to do.\n\n## Basic Commands\n\nCreate a PR using a Github Issue:\n```\nprnow 12\n```\n\nCreate a PR using a Jira ticket:\n```\nprnow TICKET-123 \n```\n\nCreate a PR using a commit message:\n```\nprnow \"Update the README\"\n```\n\nTo reset to default branch and pull any changes from the remote:\n```\nprnow reset\n```\n\n## Quick setup\n\nBefore setting an alias you can just run:\n\n```\nnpx github:connected-web/prnow TICK-24\n```\n\n## Alias use\n\nModify your `~/.profile`, add:\n\n```\nalias prnow=\"npx github:connected-web/prnow\"\n```\n\nThen run `source ~/.profile` or restart your console.\n\nYou should then be able to use `prnow` from anywhere on the command line.\n\n## Jira Integration Setup\n\nFrom Jira's [basic-auth-for-rest-apis](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/#supply-basic-auth-headers):\n\n\u003e1. Generate an API token for Jira using your Atlassian Account.\n\u003e2. Build a string of the form useremail:api_token.\n\u003e3. BASE64 encode the string.\n\u003e    - `echo -n user@example.com:api_token_string | base64`\n\u003e4. Supply an Authorization header with content Basic followed by the encoded string.\n\nTo supply the authorization token, set: `PRNOW_JIRA_API_TOKEN` on your env; for example by editing `~/.profile` and reloading your terminal.\n\nAlso, you'll need to specify which Jira instance you are connected to.\n\nTo make this work set:\n- `PRNOW_JIRA_BASE_URL` e.g. for testing this project uses `https://connected-web.atlassian.net`\n\nExample `~/.profile` changes:\n\n```\nexport PRNOW_JIRA_BASE_URL=\"https://connected-web.atlassian.net\"\nexport PRNOW_JIRA_API_TOKEN=\"XYZabc123==\"\nalias prnow=\"npx github:connected-web/prnow\"\n```\n\nThere is currently no way to set up multiple access tokens based on project - if this is of interest to you; please raise an issue. One solution might be to makhee separate aliases for t command - setting the appropriate environment variables just prior to command execution.\n\n## Usage (TypeScript, no build step)\n\nYou can now run PR Now directly from TypeScript source using [tsx](https://npm.im/tsx):\n\n```sh\nnpx tsx cli.ts \u003cticket-or-issue\u003e [commit message]\n```\n\nFor example:\n\n```sh\nnpx tsx cli.ts TICKET-123 \"Add new feature\"\n```\n\nYou can also use all previous features and environment variables as before.\n\n## Examples\n\n### Example 1\n\n```\nprnow 14\n```\n\nThis would:\n- Find \"Add support for finding ticket info from github issues\" from https://github.com/connected-web/prnow/issues/14\n- Create and checkout the branch `#14/add-support-for-finding-ticket-info-from-github-issues` in the local repo\n- Commit all unsaved files with the message \"#14 Add support for finding ticket info from github issues\"\n- Create an upstream branch and push the changes\n- Create a draft Pull Request in Github with the title \"#14 Add support for finding ticket info from github issues\"\n- Open the Pull Request in your web browser for you to review\n\n### Example 2\n\n```\nOn branch: #14/add-support-for-finding-ticket-info-from-github-issues\nprnow\n```\n\nThis would:\n- Look at the current branch name, and extract `14` as the issue ID for this commit\n- Find \"Add support for finding ticket info from github issues\" from https://github.com/connected-web/prnow/issues/14\n- Create and checkout the branch `#14/add-support-for-finding-ticket-info-from-github-issues` in the local repo\n- Commit all unsaved files with the message \"#14 Add support for finding ticket info from github issues\"\n- Create an upstream branch and push the changes\n- Create a draft Pull Request in Github with the title \"#14 Add support for finding ticket info from github issues\"\n- Open the Pull Request in your web browser for you to review\n\n### Example 3\n\n``` \nOn default branch:\nprnow Update the README\n```\n\nThis would:\n- Create a commit title out of \"Update the README\"\n- Create and checkout the branch `Update/update-the-readme`\n- Commit all unsaved files with the message \"Update the README\"\n- Create an upstream branch and push the changes\n- Create a draft Pull Request in Github with the title \"Update the README\"\n- Open the Pull Request in your web browser for you to review\n\n### Example 4\n\n```\nOn branch WORKOP-123/a-recently-merged-feature\nprnow reset\n```\n\nThis would:\n- Checkout the local default branch\n- Pull and rebase any changes to update your local repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Fprnow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnected-web%2Fprnow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnected-web%2Fprnow/lists"}