{"id":16004230,"url":"https://github.com/kristijanhusak/vim-create-pr","last_synced_at":"2025-06-28T22:37:01.435Z","repository":{"id":39220848,"uuid":"190939273","full_name":"kristijanhusak/vim-create-pr","owner":"kristijanhusak","description":"Open link to create PR directly from (neo)vim","archived":false,"fork":false,"pushed_at":"2022-06-11T11:52:32.000Z","size":7,"stargazers_count":6,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T04:04:07.363Z","etag":null,"topics":["bitbucket","git","github","gitlab","neovim","plugin","vim","viml"],"latest_commit_sha":null,"homepage":null,"language":"Vim script","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/kristijanhusak.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":"2019-06-08T22:01:54.000Z","updated_at":"2025-05-26T15:32:56.000Z","dependencies_parsed_at":"2022-09-04T22:13:39.488Z","dependency_job_id":null,"html_url":"https://github.com/kristijanhusak/vim-create-pr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kristijanhusak/vim-create-pr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-create-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-create-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-create-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-create-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristijanhusak","download_url":"https://codeload.github.com/kristijanhusak/vim-create-pr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-create-pr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262507992,"owners_count":23321973,"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":["bitbucket","git","github","gitlab","neovim","plugin","vim","viml"],"created_at":"2024-10-08T10:42:00.946Z","updated_at":"2025-06-28T22:37:01.386Z","avatar_url":"https://github.com/kristijanhusak.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-create-pr\n\nOpen link to new pull request with provided/current branch directly from (neo)vim.\n\nWorks with `Github`, `Bitbucket` and `Gitlab` out of the box. Can be [extended](#customization).\n\n## Installation\n\nUsing [vim-packager](https://github.com/kristijanhusak/vim-packager)\n\n```vimL\nfunction! PackagerInit() abort\n  packadd vim-packager\n  call packager#init()\n  call packager#add('kristijanhusak/vim-packager', { 'type': 'opt' })\n  call packager#add('kristijanhusak/vim-create-pr')\n\n  \"Optional packages, but highly recommended\n  call packager#add('sodapopcan/vim-twiggy')\n  call packager#add('tpope/vim-fugitive')\nendfunction\n```\n\n## Usage\n\nThrough command line (Can be autocompleted):\n\n```\n:PR branchname\n```\n\nOr if you want to use current branch, just omit the branch name\n\n```\n:PR\n```\n\nIf you are using [vim-twiggy](https://github.com/sodapopcan/vim-twiggy),\nselect a branch from list and press `pr`.\n\n\nIf you want to open only repository page in browser, run this:\n```\n:RepoPage\n```\n\n## Customization\n\n### Additional git services\n\nTo add your custom git service to the list, add `g:create_pr_git_services`\nvariable to your vimrc, using example below:\n\n```vimL\nlet g:create_pr_git_services = {\n\\ 'my.gitlab.com': 'https://my.gitlab.com/{{owner}}/{{repository}}/merge_requests/new?merge_request[source_branch]={{branch_name}}'\n\\ }\n```\n\nMake sure key name (`my.gitlab.com` in example above) is part of the string returned from this command:\n\n```\ngit config --get remote.origin.url\n```\n\n### Custom browser\n\nDefault browser is used by default, when available (`xdg-open`, `open` on mac).\nTo use custom browser, add `g:create_pr_browser` to your vimrc with executable name.\n\nExample:\n\n```vimL\nlet g:create_pr_browser = 'firefox'\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristijanhusak%2Fvim-create-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristijanhusak%2Fvim-create-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristijanhusak%2Fvim-create-pr/lists"}