Skip to content

Commit d540ee5

Browse files
hiveerHiveerLi
andauthored
Add original file name to commit options in EditFile feature (#1047)
* Draft MR * Add original file name to commit options in EditFile feature --------- Co-authored-by: HiveerLi <[email protected]>
1 parent 0b9c302 commit d540ee5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/components/shared/EditFile.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
const sha = ref('')
7676
7777
const fileName = ref(props.currentPath)
78+
const originalFileName = props.currentPath
7879
const commitTitle = ref('')
7980
const commitDesc = ref('')
8081
const new_branch = ref('main')
@@ -118,7 +119,8 @@
118119
message: buildCommitMessage(),
119120
branch: props.currentBranch,
120121
new_branch: props.currentBranch,
121-
sha: sha.value
122+
sha: sha.value,
123+
origin_path: originalFileName,
122124
}
123125
const option = {
124126
headers: {

0 commit comments

Comments
 (0)