Skip to content

feat: List user events

Kerri Miller requested to merge github/fork/zemzale/feat-user-events into trunk

Created by: zemzale

Description

This is just a draft.

This pull request should add ability to view user contribution events. I wanna limit the first pull request to just defaulting to the current user, since there is a simple API for it.

I am gonna change and move stuff out to other packages(DisplayAllEvents), but I am open to any input about the current code, since I haven't created new commands yet for this project and this was mostly copy pasting from mr command. The most important question I have is : How should we display the event list? There are quite few of the events, and all of their related info comes from different places, and to get the project we gotta call the project API too so that I am gonna change quite a bit, the current solution is just to see if I can make it work.

Related Issue

#42 (closed) Motivation and Context

We can view the user events from glab How Has This Been Tested?

Tested the command against my Gitlab.com account. Still gotta figure out how to display the info correctly.

Screenshots (if appropriate): Screenshot_20201030_130159

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports