-
Notifications
You must be signed in to change notification settings - Fork 1
🌈 TEST 💩 PR 🚀 😎 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Problem: `M.filename_line_to_diff_line` and `M.diff_line_to_filename_line` get out of sync. Solution: Drop them.
|
hey |
| { desc = 'Request PR changes', noremap = true, silent = true, callback = pr_commands.request_changes_pr } | ||
| ) | ||
| end | ||
| utils.buf_keymap(buf, 'n', config.s.keymaps.diff.open_file, 'Open file', open_file_from_diff('edit')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test comment line 101 diff.lua
| -- XXX fucking hack because Vim creates new buffer after (re)naming it. | ||
| bufs[feat][tostring(prnum)] = buf | ||
| return buf | ||
| -- end | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test comment state.lua lines 47-51
wefa
ewf
awe
fa
wef
code sample:
print('')| { desc = 'Request PR changes', noremap = true, silent = true, callback = pr_commands.request_changes_pr } | ||
| ) | ||
| end | ||
| utils.buf_keymap(buf, 'n', config.s.keymaps.diff.open_file, 'Open file', open_file_from_diff('edit')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test diff.lua line 101
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another comment on diff.lua line 101
|
|
||
| vim.bo[buf].buftype = 'nofile' | ||
| vim.bo[buf].readonly = false | ||
| vim.bo[buf].modifiable = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test diff.lua line 87
| buf, | ||
| 'PR Diff: ' .. selected_pr.number .. ' (' .. os.date('%Y-%m-%d %H:%M:%S') .. ')' | ||
| ) | ||
| buf = state.try_set_buf_name(buf, 'diff', selected_pr.number) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test diff.lua line 82
| M.buf_keymap(buf, 'n', key_binding, '', capture_input_and_close) | ||
| M.buf_keymap(buf, 'i', key_binding, '', capture_input_and_close) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test comment utils.lua
| { desc = 'View the PR diff', noremap = true, silent = true } | ||
| ) | ||
| end | ||
| utils.buf_keymap(buf, 'n', config.s.keymaps.pr.approve, 'Approve PR', M.approve_pr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test comment around line 200 in pr_commands.lua
No description provided.