{"id":26605827,"url":"https://github.com/hamxabaig/new-github-pull-request-url","last_synced_at":"2025-04-09T19:22:57.613Z","repository":{"id":57310513,"uuid":"163104624","full_name":"hamxabaig/new-github-pull-request-url","owner":"hamxabaig","description":"Create a URL for new pull requests with prefilled title, body, assignee etc","archived":false,"fork":false,"pushed_at":"2020-03-20T04:37:28.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T21:16:28.555Z","etag":null,"topics":["automation","generate-urls","pull-request","url","url-generator"],"latest_commit_sha":null,"homepage":null,"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/hamxabaig.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":"2018-12-25T18:44:36.000Z","updated_at":"2022-07-03T01:59:45.000Z","dependencies_parsed_at":"2022-09-08T04:51:17.882Z","dependency_job_id":null,"html_url":"https://github.com/hamxabaig/new-github-pull-request-url","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamxabaig%2Fnew-github-pull-request-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamxabaig%2Fnew-github-pull-request-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamxabaig%2Fnew-github-pull-request-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamxabaig%2Fnew-github-pull-request-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamxabaig","download_url":"https://codeload.github.com/hamxabaig/new-github-pull-request-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248095736,"owners_count":21046901,"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":["automation","generate-urls","pull-request","url","url-generator"],"created_at":"2025-03-23T21:16:37.136Z","updated_at":"2025-04-09T19:22:57.586Z","avatar_url":"https://github.com/hamxabaig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# new-github-pull-request-url [![Build Status](https://travis-ci.com/hamxabaig/new-github-pull-request-url.svg?branch=master)](https://travis-ci.com/hamxabaig/new-github-pull-request-url)\n\n\u003e Create a URL for new pull requests in repo with prefilled title, body, assignee etc\n\n\n## Install\n\n```\n$ npm install new-github-pull-request-url\n```\n\n\n## Usage\n\n```js\nconst newGithubPullRequestUrl = require('new-github-pull-request-url');\n\nconst url = newGithubPullRequestUrl({\n  compareTo: 'rocket-branch',\n  repo: 'abc/foo-repo', \n  title: 'this-is-awesome'\n});\n//=\u003e https://github.com/abc/foo-repo/compare/master...rocket-branch?quick_pull=1\u0026title=this-is-awesome\n```\n\n\n## API\n\n### newGithubPullRequestUrl(options)\n\n#### options\n\nType: `Object`\n\n##### repo\n\nType: `string`\u003cbr\u003e\nRequired: `true`\n\nRepo handle of github e.g `foo/bar-repo`\n\n##### compareTo\n\nType: `string`\u003cbr\u003e\nRequired: `true`\n\nThe branch to compare with base branch. (This is your feature branch)\n\n##### title\n\nType: `string`\u003cbr\u003e\nRequired: `false`\n\nThe pull request title. If not provided, Github will automatically make the last commit as title\n\n##### base\n\nType: `string`\u003cbr\u003e\nDefault: `master`\n\nThe branch to which your feature branch will be merged.\n\n##### body\n\nType: `string`\u003cbr\u003e\n\nThe body of pull request.\n\n##### assignee\n\nType: `string`\u003cbr\u003e\n\nThe user to assign this pull request to.\n\n##### template\n\nType: `string`\u003cbr\u003e\n\nThe template to use for the body of pull request. If you have only 1 template, you don't need to provide this.\n\n## Reference\n\n[About-automation-for-issues-and-pull-requests-with-query-parameters](https://help.github.com/articles/about-automation-for-issues-and-pull-requests-with-query-parameters)\n\n\n## Related\n- [new-github-issue-url](https://github.com/sindresorhus/new-github-issue-url) - Generate a URL for opening a new GitHub issue with prefilled title, body, and other fields\n- [new-github-release-url](https://github.com/sindresorhus/new-github-release-url) - Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields\n\n\n## License\n\nMIT © Made with :heart: \u0026 :coffee: [Hamza Baig](http://hamxabaig.github.io)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamxabaig%2Fnew-github-pull-request-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamxabaig%2Fnew-github-pull-request-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamxabaig%2Fnew-github-pull-request-url/lists"}