Commit Graph
99 Commits
Author SHA1 Message Date
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
Harrison (Harry) CramerandGitHub 8349bccb29 Update README.md
Fixed optional log path property!
2023-08-14 17:00:48 -04:00
Harrison (Harry) CramerandGitHub 7dfd6d24e7 Update README.md 2023-08-14 07:43:17 -04:00
Harrison (Harry) CramerandGitHub dce74035eb Update README.md
Updated the "Troubleshooting" Section
2023-08-14 07:42:53 -04:00
Harrison (Harry) CramerandGitHub a5dde79ea8 Update README.md 2023-08-14 07:24:23 -04:00
Harrison (Harry) CramerandHarrison Cramer 4f0d4b49ef BREAKING CHANGE: Setup refactor and code cleanup
This MR makes several major tweaks to the codebase. Primarily it adjusts
the setup steps for the application so that rather than providing just
the project ID in the `.gitlab.nvim` file, users can also provide a
vareity of other settings, such as auth_token, base_branch, and so
forth. This is to make the project more extensible in the future.

This MR also fixes a variety of issues with error handling in the code,
primarily in the request/response model between the Lua jobs and the
Golang server.

BREAKING CHANGE: Modifies `.gitlab.nvim` and setup steps
2023-08-06 11:23:36 -04:00
Harrison (Harry) CramerandGitHub ade9f81426 Revert "Pull down all non-code notes (#14)" (#15)
This reverts commit f15711edab.
2023-08-04 14:31:55 -04:00
Harrison (Harry) CramerandGitHub f15711edab Pull down all non-code notes (#14)
This commit changes the filter on the API response so that we are only
filtering out system level notes. This means we get notes that are not
linked to specific locations in the code.

Subsequent work will have to separate these types of notes from the
other code-linked notes and probably display them in some sort of
separate tree.
2023-08-04 14:25:58 -04:00
Harrison (Harry) CramerandGitHub 1058559bd3 Update README.md
Clarified that make and Go are both requirements, added link to projects.
2023-08-04 09:54:18 -04:00
Harrison (Harry) CramerandGitHub f8509ef0ca Update README.md 2023-08-02 11:50:03 -04:00
Harrison (Harry) CramerandGitHub 23a21b867b Removed notify as a dependency (#11)
Fixes: https://www.reddit.com/r/neovim/comments/14irqwt/comment/jphw2cx/?utm_source=share&utm_medium=web2x&context=3
2023-06-30 16:35:50 -04:00
Harrison (Harry) CramerandGitHub 4069b95b3d Update README.md 2023-06-14 11:20:09 -04:00
Harrison (Harry) CramerandGitHub 63fc025070 Change to HTTP Model (#5) 2023-05-19 17:28:58 -07:00
Harrison (Harry) CramerandGitHub 08463c0b84 Develop (#4)
Adds `.gitlab.nvim` configuration file option.
2023-04-22 14:19:12 -04:00
Harrison (Harry) CramerandGitHub 899e04082e Develop (#3)
Moves build script into separate function and sets up instructions for Packer installs.
2023-04-22 13:53:58 -04:00
Harrison (Harry) CramerandGitHub 6154d4c9f3 Fix Notify Requires (#2)
Moves all notify require calls outside of scheduled calls
2023-04-22 12:52:07 -04:00
Harrison (Harry) CramerandGitHub 6ec3f15966 Update README.md 2023-04-22 12:33:05 -04:00
Harrison (Harry) CramerandGitHub d1a1c9c0f0 Update issue templates 2023-04-21 19:17:20 -04:00
Harrison (Harry) CramerandGitHub 086ccd7e99 Update issue templates 2023-04-21 19:14:34 -04:00