Commit Graph
100 Commits
Author SHA1 Message Date
Harrison (Harry) CramerandGitHub a659318a50 Fix log path (#237)
Fixes an issue where the debug path for the Go server was not writing to the right location on disk
2024-04-03 12:42:54 -04:00
Harrison (Harry) CramerandGitHub 4f1fe4ae25 Allow insecure connections to Gitlab (#234)
This MR makes it possible to ignore bad x509 certificates when connecting to Gitlab, by creating a custom HTTP connection. The option is exposed via the setup function. This is a PATCH release.
2024-04-02 21:53:25 -04:00
Harrison (Harry) CramerandGitHub 670f08849f Bug Fixes (#227)
This adds some miscellaneous bug fixes, it's a PATCH release.
2024-03-28 09:13:45 -04:00
Harrison (Harry) CramerandGitHub c0c67486d1 fix: ranged comment issues (#214)
This MR changes the hunk parsing strategy for ranged comments in the new SHA. Now, we're only parsing and comparing the new lines. Fixes an issue where you could leave a ranged comment in the new buffer on an unchanged line and the plugin would not detect the line number correctly.
2024-03-04 10:52:13 -05:00
Harrison (Harry) CramerandGitHub c73d22996e Fix: Fixes Misspelling In Diagnostics Settings Check (#210)
This is a #PATCH fix release
2024-03-03 12:15:57 -05:00
Harrison (Harry) CramerandGitHub 2943fae3f3 fix: Update help docs w/ changes to diagnostic configuration (#208)
Fix alert for diagnostic configuration update
2024-03-03 12:06:14 -05:00
Harrison (Harry) CramerandGitHub b5b475ce8b 2.0.0 (#196)
This MR is a #MAJOR breaking change to the plugin. While the plugin will continue to work for users with their existing settings, they will be informed of outdated configuration (diagnostics and signs have been simplified) the next time they open the reviewer.

Fix: Trim trailing slash from custom URLs
Update: .github/CONTRIBUTING.md, .github/ISSUE_TEMPLATE/bug_report.md
Feat: Improve discussion tree toggling (#192)
Fix: Toggle modified notes (#188)
Fix: Toggle discussion nodes correctly
Feat: Show Help keymap in discussion tree winbar
Fix: Enable toggling nodes from the note body
Fix: Enable toggling resolved status from child nodes
Fix: Only try to show emoji popup on note nodes
Feat: Add keymap for toggling tree type
Fix: Disable tree type toggling in Notes
Fix Multi Line Issues (Large Refactor) (#197)
Fix: Multi-line discussions. The calculation of a range for a multiline comment has been consolidated and moved into the location.lua file. This does not attempt to fix diagnostics.
Refactor: It refactors the discussions code to split hunk parsing and management into a separate module
Fix: Don't allow comments on modified buffers #194 by preventing comments on the reviewer when using --imply-local and when the working tree is dirty entirely.
Refactor: It introduces a new List class for data aggregation, filtering, etc.
Fix: It removes redundant API calls and refreshes from the discussion pane
Fix: Location provider (#198)
Fix: add nil check for Diffview performance issue (#199)
Fix: Switch Tabs During Comment Creation (#200)
Fix: Check if file is modified (#201)
Fix: Off-By-One Issue in Old SHA (#202)
Fix: Rebuild Diagnostics + Signs (#203)
Fix: Off-By-One Issue in New SHA (#205)
Fix: Reviewer Jumps to wrong location (#206)

BREAKING CHANGE: Changes configuration of diagnostics and signs in the setup call.
2024-03-03 11:52:37 -05:00
Harrison (Harry) CramerandGitHub faf2a25dc4 Fix: Line Comment Refactor (#180)
This MR re-implements and fixes logic that better handles single-line comments. It does this by parsing the hunk headers and examining the actual changes they contain in order to form the Gitlab payload correctly. Addresses #128
2024-02-18 21:19:31 -05:00
Harrison (Harry) CramerandGitHub baee20b279 Add/Show/Delete Emojis on Notes (#181)
This MR adds the ability to view, add, and delete emojis from notes and comments.

This action can be performed by default with the `Ea` (emoji add) keybinding, and the `Ed` (emoji delete) keybinding. Only emojis added by the current user are eligible for deletion. The MR also implements a popup functionality which shows the user who added emojis on hover.

Implements #179
2024-02-18 21:16:53 -05:00
Harrison (Harry) CramerandGitHub affc475d31 Fix: Do not refresh discussion tree prior to creation (#169)
This MR fixes an issue where someone could leave a note on an MR without opening the discussion tree first. We want to avoid throwing an error by attempting to update the discussion tree if it doesn't already exist.
2024-02-10 11:21:38 -05:00
Harrison (Harry) CramerandGitHub b6f023373a Fix: De-Register Tabpage on Correct Close Event (#168)
This fixes a bug where the reviewer tab would be erroneously marked as closed. This is a PATCH release.
2024-01-22 07:30:08 -05:00
Harrison (Harry) CramerandGitHub b623c06119 Fix: Write to correct window if user changes during loading state (#167)
This MR fixes issue #165 where you could accidentally load the discussions tree into the wrong window if you switched while the content was still loading. This is a PATCH release.
2024-01-20 23:35:56 -05:00
Harrison (Harry) CramerandGitHub 9b4526e54c Update README.md (#161)
Changing images in the README, this is a NONE release.
2024-01-13 11:06:32 -05:00
Harrison (Harry) CramerandGitHub 519791c81c Fix: Discussion + Note Creation Bugs (#151)
This MR is an attempt to resolve some of the issues this plugin is experiencing with Gitlab's API surrounding comments, in particular the specifics around when to send the "old line" versus "new line" and the file hashes.

This is a PATCH release.
2024-01-13 10:52:45 -05:00
Harrison (Harry) CramerandGitHub ed3a90cf00 Feat: Add target branch to details panel (#160)
This is a PATCH release, it adds the target branch to the details panel in the summary view.
2024-01-13 10:45:17 -05:00
Harrison (Harry) CramerandGitHub 50e06ceff6 Feat: Add and Remove Labels from an MR (#159)
This MR adds the ability to add or remove labels to a merge request. These labels are visible in the summary panel and are colored the same way as they would be in the Gitlab UI.

This is a MINOR release.
2024-01-13 10:37:05 -05:00
Harrison (Harry) CramerandGitHub 67f09e559a Add Better Help Documentation (#157)
Adds better documentation that's searchable within Neovim via the `:help` command. This is a NONE release.
2024-01-12 22:36:14 -05:00
Harrison (Harry) CramerandGitHub abd8011bcb fix: Adds missing pipeline service (#155) 2024-01-02 12:12:18 -05:00
Harrison (Harry) CramerandGitHub 37a53842d0 Feat: Create Merge Request (#149)
- Adds the ability to create MRs to the plugin
- Adds the ability to jump to specific discussions/notes in the browser
- Fixes stale icons
- Adds debug keybinding for discussion tree for developers
2023-12-19 13:41:07 -05:00
Harrison (Harry) CramerandGitHub 35f0bc16a5 fixed sign/diagnostic filtering (#150)
This was a small diagnostics/signs regression introduced by #147.

We were filtering the diagnostics and discussions but then not actually using the filtered data. Facepalm.
2023-12-18 17:00:04 -05:00
Harrison (Harry) CramerandGitHub 571173c881 fix: Comments on unchanged, expanded lines (#146)
This MR fixes an issue with refreshes of the diagnostics and signs when users leave comments on unchanged lines.
2023-12-18 09:11:15 -05:00
Harrison (Harry) CramerandGitHub 64b36ac51d Feat: Adds Ability to Merge MR (#147)
This adds the ability to merge an MR from within `gitlab.nvim` directly. If the reviewer is open, it'll be closed automatically. Users may configure whether they'd like to squash commits on the merge, as well as whether they'd like to delete the original source branch on a merge.

If squashing, users are prompted to provide an optional custom squash message for the squash commit.
2023-12-17 14:28:21 -05:00
Harrison (Harry) CramerandGitHub e254100a72 Fix: Enable No-Pipeline Fixes (#145)
This will let us skip releases with the NONE keyword (no tags, no release) for small things like README tweaks or pipeline changes.
2023-12-16 17:20:38 -05:00
Harrison (Harry) CramerandGitHub deaadd9b03 Fix: Re-Adds Git Test File (#144)
Adds a missing test file for the Git regular expression (project info + name extraction).

This is a NONE release.
2023-12-16 17:14:35 -05:00
Harrison (Harry) CramerandGitHub 9da62d982e Bugfix: Pipeline Job Names w/ Whitespace (#140)
Fix for the pipeline job output where the job name contained whitespace characters. Users will now see the output in a new tab. Support has been added for Windows OS.
2023-12-13 18:51:18 -05:00
Harrison (Harry) CramerandGitHub d5510f9d9a Winbar Support + Notes and Discussions; Help Popup + Auto-Open (#133)
- Adds support for toggling between discussions and notes views
- Deprecates the split view shared with both discussions and notes at the same time
- Adds winbar to discussion split, with metadata about resolved and unresolved discussions
- Adds help popups with information about keybindings for all views
- Modifies highlights in discussion tree and default symbol for unresolved discussions

This is a MINOR version bump as the default behavior of the discussion tree is changed slightly. Existing configurations should still function.
2023-12-13 17:46:34 -05:00
Harrison (Harry) CramerandGitHub d5038d63ca Bugfix: Handle Merge Requests without Changes (#136)
This MR makes the plugin throw the correct error when someone tries to open up the reviewer without any changes
2023-12-10 21:48:09 -05:00
Harrison (Harry) CramerandGitHub 63cbf41221 Accidentally sending file name instead of file path (#132)
Fixes issue with file uploader, where file path value was incorrect.
2023-12-04 16:06:21 -05:00
Harrison (Harry) CramerandGitHub c204ebc514 bugfix: Fixes shutdown functionality (#131)
Fixes an issue where the shutdown functionality did not check for the error type
2023-12-04 10:24:51 -05:00
Harrison (Harry) CramerandGitHub 93fe3e8bd6 Simplify Go Endpoints + Add Tests (#120)
This MR represents a major refactor of the Go codebase, as well as introducing tests for the handlers. The MR also introduces an endpoint to shutdown or restart the Go server, which may be useful for clients who want to refresh the state of the plugin after checking out branches. Finally, this MR adds a contributing document for users who want to make feature changes.
2023-12-04 10:15:07 -05:00
Harrison (Harry) CramerandGitHub c4a3229f16 Feat: Adds More Information to Summary Panel (#100)
This MR adds more information into the summary view, including the MR author, created at date, merge status, draft status, conflicts, and pipeline status, among other things. This is configurable via the setup function.
2023-11-20 18:56:19 -05:00
Harrison (Harry) CramerandGitHub 88b9196a2e Feat: Add Basic Lua Test Suite (#115)
This MR adds a Lua test suite to the project, run via busted, and introduces tests for a number of the utility functions. Subsequent work will have to be done to test functions that use the `vim.api` scope and external packages to the plugin.
2023-11-20 18:03:35 -05:00
Harrison (Harry) CramerandGitHub 1abc33d149 Feat: Customize Config Path (#117)
Provide the option to configure the location of the `.gitlab.nvim` file
2023-11-20 14:39:22 -05:00
Harrison (Harry) CramerandGitHub b8c386ac6b Bugfix: Updates Diff Hashes (#106)
Rather than using branch names we are using the hashes provided directly in the Gitlab API response, to compare the point at which the branch diverged from the target to the head commit. We are additionally flashing a warning if the MR contains a merge conflict.
2023-11-20 07:19:20 -05:00
Harrison (Harry) CramerandGitHub b1b3448dcb Automatically generate releases from new tags (#114) 2023-11-19 11:10:39 -05:00
Harrison (Harry) CramerandGitHub 34102792f5 Change branch history checks to only "last" (#113) 2023-11-18 22:39:30 -05:00
Harrison (Harry) CramerandGitHub ba8a3b0eed Get correct sha of commit? (#112) 2023-11-18 17:13:43 -05:00
Harrison (Harry) CramerandGitHub d3c0c44fcb Updates Readme: Remove "Extra" Section (#111)
This is not part of the core repository and is not maintained as part of .gitlab.nvim, we don't to recommend unrelated code to users.
2023-11-18 17:06:39 -05:00
Harrison (Harry) CramerandGitHub 4f1a677750 Fix tagging 4 (#110)
This should bump a #MINOR version... This is a test.
2023-11-18 17:00:17 -05:00
Harrison (Harry) CramerandGitHub c362aa0cd6 Fix tagging 2 (#109)
Fixing the tagging so that merges into main automatically create a new tag of the correct version
2023-11-18 16:47:48 -05:00
Harrison (Harry) CramerandGitHub 3b52f7177a Fix tagging (#108)
This MR fixes the tagging logic in our pipeline to automatically set a #patch value for the tag type.
2023-11-18 16:42:39 -05:00
Harrison (Harry) CramerandGitHub 8a9f8dfc88 Fix: Allows you to open up gitlab.nvim even in nested directories (#107)
This MR is a #patch fix that ensures you can provide a `.gitlab.nvim`
file at the root of the git project and open up the reviewer at any
level of the project.
2023-11-18 16:31:06 -05:00
Harrison (Harry) CramerandGitHub 231972607d Only run go build action on pull requests (#104)
Bumps to #major release tag
2023-11-16 21:06:43 -05:00
Harrison (Harry) CramerandGitHub debbf55572 Added tags action (#103)
This adds semantic versioning to the repository and creates the first #major release cycle
2023-11-16 21:01:20 -05:00
Harrison (Harry) CramerandGitHub 1f28486ab2 Update README.md (#92)
Updates example video of plugin in action
2023-11-13 10:14:18 -05:00
Harrison (Harry) CramerandGitHub aea8552784 Fixed indenting in README's table of contents (#91) 2023-11-13 09:47:23 -05:00
Harrison (Harry) CramerandGitHub f0b561294a README Updates (#89)
Updates README to add table of contents, simplifies section on diagnostics
2023-11-13 09:30:36 -05:00
Harrison (Harry) CramerandGitHub 4c7a610417 Removes un-actionable warning for unknown diagnostic type (#88) 2023-11-13 09:08:54 -05:00
Harrison (Harry) CramerandGitHub 80b597e56a Feat: Remove Requirement for Dotfile (#84)
This MR removes the requirement for a dotfile (the dotfile is now optional and will override the configuration provided via environment variables). The requirement for providing a project ID is also eliminated, by parsing the namespace and project name from the SSH or HTTPS remote, and then using that to query Gitlab for a matching project.
2023-11-11 23:51:11 -05:00
Harrison (Harry) CramerandGitHub 38df51bfbc Update README.md (#86) 2023-11-10 17:42:08 -05:00
Harrison (Harry) CramerandGitHub ffdaf83784 BREAKING CHANGE: This is a breaking change, it deprecates the Delta Reviewer (#81)
BREAKING

This is a breaking change which deprecates support for the Delta reviewer. Now, only Diffview is supported.
2023-11-10 17:38:28 -05:00
Harrison (Harry) CramerandGitHub 9742b5b229 Feat: Add Color Configuration (#82)
This MR adds the ability to customize colors for the discussion tree
2023-11-07 22:58:03 -05:00
Harrison (Harry) CramerandGitHub 6b7e67b325 Fixes #71 (#75)
This MR fixes the check for The `diffview` reviewer. Rather than checking for the presence of the command, we check for the module itself.
2023-10-31 18:46:18 -04:00
Harrison (Harry) CramerandGitHub 23232439b6 Update README.md (#74)
Change troubleshooting section to mention new "debug" option.
2023-10-31 18:14:02 -04:00
Harrison (Harry) CramerandGitHub 78d1ff52c4 Fixing client initialization (#73) 2023-10-31 17:58:15 -04:00
Harrison (Harry) CramerandGitHub a055c4c988 Adds Formatting to the CI (#69)
This MR adds linting and formatting to the CI pipeline for the repository for both the Golang and Lua code.
2023-10-30 23:54:38 -04:00
Harrison (Harry) CramerandGitHub f853c2f940 Feat: Improve Logging for Go Server (#68)
This MR adds an optional `debug` object to the configuration table to help users debug any connectivity issues with Gitlab. The table lets you log the requests and responses from the Go server.
2023-10-30 21:57:23 -04:00
Harrison (Harry) CramerandGitHub cb99fd2ead Update README.md 2023-09-09 11:07:30 -04:00
Harrison (Harry) CramerandGitHub f6fb61607c Update README.md 2023-09-08 20:25:57 -04:00
Harrison (Harry) CramerandGitHub 4e473dab7e Feat: Upload Files (#59)
This MR adds the ability to add files to comments, notes, replys, and MR descriptions via a picker.

The file will get uploaded to Gitlab and the filepath will be automatically added into the current popup buffer at the current line. You can then save the changes with the normal save functionality.
2023-09-08 10:02:01 -04:00
Harrison (Harry) CramerandGitHub 57b842cad5 Feat: Windows Support (#57)
This MR adds support for Windows machines
2023-09-06 20:25:54 -04:00
Harrison (Harry) CramerandGitHub 6cb9d2887c Update README.md 2023-09-03 19:44:57 -04:00
Harrison (Harry) CramerandGitHub 94fdf5f38a Feat: See Pipeline Job Logs (#54)
This MR adds the ability to see log traces associated with Gitlab CI jobs, via the new `perform_linewise_action` keybinding in the pipeline popup.
2023-09-03 19:44:12 -04:00
Harrison (Harry) CramerandGitHub 26a133be44 Update README.md 2023-09-03 19:33:54 -04:00
Harrison (Harry) CramerandGitHub e6e0bf4093 Feat: View + Manage Pipeline (#53)
This MR adds the `.pipeline()` command which opens up the pipeline popup. This popup shows information about the current pipeline and it's jobs, and gives users the ability to re-trigger failed jobs.
2023-09-03 18:01:54 -04:00
Harrison (Harry) CramerandGitHub 0a91b890c3 Update README.md 2023-08-31 21:56:49 -04:00
Harrison (Harry) CramerandGitHub fc51d6a252 Update README.md 2023-08-31 21:44:59 -04:00
Harrison (Harry) CramerandGitHub b19ab2a8ae Update README.md 2023-08-31 21:44:32 -04:00
Harrison (Harry) CramerandGitHub 152c55fd57 Feat: Notes (Non-Linked Comments) (#52)
Adds support for notes. These are comments that are not linked to specific lines of code in the MR.
2023-08-31 21:36:40 -04:00
Harrison (Harry) CramerandGitHub 3108a3709f Update README.md 2023-08-27 17:28:21 -04:00
Harrison (Harry) CramerandGitHub dfded0f3bd Update README.md 2023-08-27 17:27:47 -04:00
Harrison (Harry) CramerandGitHub 19468a3d2d BREAKING CHANGE: Delta Pager + Large Refactor (#43)
BREAKING CHANGE: This MR addresses an underlying issue with the original implementation in regards to detecting line numbers for comments. 

As such, this is a major breaking change. The setup function signature has changed, please review the `README.md` for the new arguments. The delta pager has also been added as a dependency: https://github.com/dandavison/delta

There will be future work to implement a native solution for parsing changes and line numbers.
2023-08-27 17:26:54 -04:00
Harrison (Harry) CramerandGitHub ed67a03f8f Update README.md 2023-08-20 21:53:47 -04:00
Harrison (Harry) CramerandGitHub 2c0fc2b57e Update README.md 2023-08-20 21:53:34 -04:00
Harrison (Harry) CramerandGitHub 5cb5170f3a Update README.md 2023-08-20 21:53:23 -04:00
Harrison (Harry) CramerandGitHub f7cdd38d5f Update README.md 2023-08-20 21:52:39 -04:00
Harrison (Harry) CramerandGitHub 2920c67fe2 Update README.md 2023-08-20 21:50:52 -04:00
Harrison (Harry) CramerandGitHub 27c54b4739 Cleanup of comment creation (#42)
Refactor of comment creation code
2023-08-19 00:27:11 -04:00
Harrison (Harry) CramerandGitHub 57b3f12a2f Update README.md 2023-08-18 16:17:46 -04:00
Harrison (Harry) CramerandGitHub b664406e50 Update README.md 2023-08-18 07:55:57 -04:00
Harrison (Harry) CramerandGitHub 2d6ba691f4 Update bug_report.md 2023-08-17 17:19:00 -04:00
Harrison (Harry) CramerandGitHub 2395353e5f Update README.md 2023-08-17 17:16:27 -04:00
Harrison (Harry) CramerandGitHub f5bf720b61 Bugfix: Don't Start Server Right Away (#40)
This MR simplifies the plugin quite a bit by only attempting to start the Go server after you specifically try to run a command. This streamlines working on feature branches and removes the need for a `base_branch` property entirely.
2023-08-17 16:22:53 -04:00
Harrison (Harry) CramerandGitHub f4aafe46a9 Update README.md 2023-08-17 12:42:52 -04:00
Harrison (Harry) CramerandGitHub d25c62ae9f Adding Support for Resolving/Unresolving Discussions (#39)
This MR adds the ability to mark discussions as resolved or unresolved. This is important to the review process.
2023-08-17 12:42:36 -04:00
Harrison (Harry) CramerandGitHub 1676992266 Update README.md 2023-08-16 21:43:51 -04:00
Harrison (Harry) CramerandGitHub 844e093294 Add/Remove Reviewers and Assignees (#38)
Adds APIs for the ability to add or remove reviewers and assignees to a merge request. The eligible reviewers and assignees are pulled from the current members of a project.
2023-08-16 21:42:53 -04:00
Harrison (Harry) CramerandGitHub 6274746d4b Update README.md
The token should be GITLAB_TOKEN when set in the shell.
2023-08-16 19:11:42 -04:00
Harrison (Harry) CramerandGitHub 6bb7575c6d Attach UUIDs to Discussion Text (#37)
Three backticks will break the discussion tree, this MR specifically adds custom UUIDs to each text node to avoid this issue.
2023-08-15 23:33:52 -04:00
Harrison (Harry) CramerandGitHub 4f1a0f9c57 Update README.md 2023-08-15 12:03:16 -04:00
Harrison (Harry) CramerandGitHub d9a744300e Fixes #28 (#33)
We weren't writing a 200 status code post-delete because Gitlab returns
a 204 (empty but successful) by default. I updated this logic to change
that and also to refresh the tree.

The collapsed state of the tree will be wiped out if you delete a
bottom-level discussion but that's okay for now, not a high priority
right now.
2023-08-14 23:16:18 -04:00
Harrison (Harry) CramerandGitHub 648e7a298b Fix #19 (#32) 2023-08-14 22:44:35 -04:00
Harrison (Harry) CramerandGitHub 76055d2652 Fixes #29 (#31)
We want to pick the note ID more carefully for deletion.

If it's the root node (aka the first comment in a discussion thread) then
we want to choose the root_note_id since that is the ID of the first
comment in the discussion. Otherwise, we want to choose the note_node
ID.
2023-08-14 21:49:07 -04:00
Harrison (Harry) CramerandGitHub 8724847d5a Addresses issue with #20 (#30) 2023-08-14 21:34:54 -04:00
Harrison (Harry) CramerandGitHub 2028be2154 Feat: Edit PR Description (#22)
This MR makes it possible to edit the description. Non-breaking, will happen within the normal description popup.
2023-08-14 20:37:36 -04:00
Harrison (Harry) CramerandGitHub 35d5b619ce Fixes #26 (#27) 2023-08-14 19:25:54 -04:00
Harrison (Harry) CramerandGitHub 1963e49d63 Update README.md 2023-08-14 18:23:37 -04:00
Harrison (Harry) CramerandGitHub fd99159c3d Update README.md 2023-08-14 17:48:48 -04:00
Harrison (Harry) CramerandGitHub 432a9b7ef2 Update README.md 2023-08-14 17:25:10 -04:00
Harrison (Harry) CramerandGitHub b4077ba8c2 Feat: Discussion Changes + Code Cleanup (#24)
* Changed to relative time

* Added days

* Updated display of discussion tree

* Updated a lot of functionality + behaviors for discussions + comments

* Modified state on deletion/creation

* Fixed relative times
2023-08-14 17:19:39 -04:00