Skip to content

Commit e9141cf

Browse files
authored
Fix: Use path instead of oldpath as fallback for unrenamed files (#496)
1 parent f5fbab4 commit e9141cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/lua.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ jobs:
4646
neovim: true
4747
version: ${{ matrix.nvim_version }}
4848
- name: Install luajit
49-
uses: leafo/gh-actions-lua@v10
49+
uses: leafo/gh-actions-lua@v11
5050
with:
5151
luaVersion: "luajit-openresty"
5252
- name: Install luarocks
53-
uses: leafo/gh-actions-luarocks@v4
53+
uses: leafo/gh-actions-luarocks@v5
54+
with:
55+
luarocksVersion: "3.8.0"
5456
- name: Run tests
5557
shell: bash
5658
run: |

lua/gitlab/reviewer/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ end
240240
---@return string|nil
241241
M.get_current_file_oldpath = function()
242242
local file_data = M.get_current_file_data()
243-
return file_data and file_data.oldpath
243+
return file_data and file_data.oldpath or file_data.path
244244
end
245245

246246
---Tell whether current file is renamed or not

0 commit comments

Comments
 (0)