We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cfa7e commit 73b4da1Copy full SHA for 73b4da1
2 files changed
README.md
@@ -349,7 +349,7 @@ require("tinygit").push {
349
forceWithLease = false,
350
createGitHubPr = false,
351
}
352
-require("tinygit").createGitHubPr()
+require("tinygit").createGitHubPr() -- to push before, use `.push { createGitHubPr = true }`
353
```
354
355
### File history
lua/tinygit/commands/push-pull.lua
@@ -60,8 +60,11 @@ local function pushCmd(opts)
60
if config.openReferencedIssues and not opts.forceWithLease then
61
openReferencedIssues(commitRange)
62
end
63
- if opts.createGitHubPr then createGitHubPr() end
64
updateStatusline()
+ if opts.createGitHubPr then
65
+ -- deferred to ensrue GitHub has registered the PR
66
+ vim.defer_fn(createGitHubPr, 1000)
67
+ end
68
end)
69
)
70
0 commit comments