Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4ff27c2
fix: Fixes issues w/ shared pointers to structs (#378)
harrisoncramer Sep 16, 2024
87e224a
feat: adds even better debugging and linting support (#376)
harrisoncramer Sep 16, 2024
e17d713
fix: error messages and run all tests (#381)
gkze Sep 21, 2024
523bdd4
feat: Automatically open fold under cursor (#380)
jakubbortlik Sep 23, 2024
6ac8895
Merge branch 'main' into develop
harrisoncramer Sep 24, 2024
879ee20
fix: discussion ID is not required (#383)
harrisoncramer Sep 26, 2024
125cfbb
Chore: Add more emojis (#384)
jakubbortlik Oct 4, 2024
7171f4c
Fix: Publish all drafts (#391)
jakubbortlik Oct 10, 2024
0e19857
fix: make discussion tree buffers nomodifiable (#394)
jakubbortlik Oct 11, 2024
96efdc2
fix: Incorrect warning about commits (#395)
harrisoncramer Oct 12, 2024
b359b47
Fix: Show draft replies in the correct tree (#396)
jakubbortlik Oct 13, 2024
a63823c
fix: Cannot choose merge requests (#398)
harrisoncramer Oct 13, 2024
0f3841f
fix: parse dates without timezone offset (#404)
harrisoncramer Oct 14, 2024
04976db
Fix: Use correct name for emoji
jakubbortlik Oct 15, 2024
cd8a404
Merge pull request #405 from jakubbortlik/fix-party-emoji
jakubbortlik Oct 18, 2024
c8c0395
fix: enable replying if tree is in a different tab (#407)
jakubbortlik Oct 25, 2024
e4c9dbe
fix: wrong get url (#413)
OscarCreator Nov 5, 2024
5f657fd
Fix: Restore cursor when updating from outside of tree (#406)
jakubbortlik Nov 5, 2024
a03b2f6
Merge branch 'main' into develop
harrisoncramer Nov 5, 2024
839257a
Fix: Show non-resolvable notes in winbar (#417)
jakubbortlik Nov 5, 2024
a0d10a4
Fix: add more emojis and make emoji picker configurable (#414)
jakubbortlik Nov 6, 2024
c44daf5
fix: comment creation should not be possible for renamed and moved fi…
harrisoncramer Nov 10, 2024
b606ceb
fix: color highlight groups are invalid (#421)
harrisoncramer Nov 10, 2024
ddf0f41
fix: plugin failing to build on Windows (#419)
harrisoncramer Nov 12, 2024
d8d289d
Merge branch 'main' into develop
harrisoncramer Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion cmd/app/comment_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type LineRange struct {
/* PositionData represents the position of a comment or note (relative to a file diff) */
type PositionData struct {
FileName string `json:"file_name"`
OldFileName string `json:"old_file_name"`
NewLine *int `json:"new_line,omitempty"`
OldLine *int `json:"old_line,omitempty"`
HeadCommitSHA string `json:"head_commit_sha"`
Expand All @@ -41,13 +42,19 @@ type RequestWithPosition interface {
func buildCommentPosition(commentWithPositionData RequestWithPosition) *gitlab.PositionOptions {
positionData := commentWithPositionData.GetPositionData()

// If the file has been renamed, then this is a relevant part of the payload
oldFileName := positionData.OldFileName
if oldFileName == "" {
oldFileName = positionData.FileName
}

opt := &gitlab.PositionOptions{
PositionType: &positionData.Type,
StartSHA: &positionData.StartCommitSHA,
HeadSHA: &positionData.HeadCommitSHA,
BaseSHA: &positionData.BaseCommitSHA,
NewPath: &positionData.FileName,
OldPath: &positionData.FileName,
OldPath: &oldFileName,
NewLine: positionData.NewLine,
OldLine: positionData.OldLine,
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/app/emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"
"os"
"path"
"path/filepath"
"strconv"
"strings"

Expand Down Expand Up @@ -157,8 +157,8 @@ func attachEmojis(a *data, fr FileReader) error {
return err
}

binPath := path.Dir(e)
filePath := fmt.Sprintf("%s/config/emojis.json", binPath)
binPath := filepath.Dir(e)
filePath := filepath.Join(binPath, "config", "emojis.json")

reader, err := fr.ReadFile(filePath)

Expand Down
1 change: 1 addition & 0 deletions cmd/config/emojis.json

Large diffs are not rendered by default.

Loading
Loading