preport

package module
v0.0.0-...-af569e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 1 Imported by: 0

README

preport

Example of a pull request report on Slack

Born out of a desire to get pull requests reviewed faster without having to send manual reminders, preport generates reports of GitLab pull requests pending review and notifies your team on Slack.

Goals:

  • Short-lived process that is easy to run at an interval, e.g. as a cronjob
  • Customizable formats for reporting
  • Support many channels with many repositories with very simple configuration

Next steps:

  • Expand this README
  • Write docs for setting up
  • Add example manifest for Kubernetes CronJob
  • Automate building and pushing container images

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Username string
}

type PullRequest

type PullRequest struct {
	Title, URL string
	Author     Author
	CreatedAt  time.Time
}

func (PullRequest) TimeOpen

func (p PullRequest) TimeOpen() time.Duration

type PullRequestsByCreatedAt

type PullRequestsByCreatedAt []PullRequest

PullRequestsBySortedAt providers a sorter based on CreatedAt timestamp, from oldest to newest.

func (PullRequestsByCreatedAt) Len

func (ps PullRequestsByCreatedAt) Len() int

func (PullRequestsByCreatedAt) Less

func (ps PullRequestsByCreatedAt) Less(i, j int) bool

func (PullRequestsByCreatedAt) Swap

func (ps PullRequestsByCreatedAt) Swap(i, j int)

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL