hooks

package
v0.0.0-...-2f3c673 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duplicates

type Duplicates struct {
	// contains filtered or unexported fields
}

Duplicates is a map of active/duplicate commit IDs.

func NewDuplicateMap

func NewDuplicateMap() *Duplicates

NewDuplicateMap creates a new DuplicateMap.

func (*Duplicates) Duplicate

func (dm *Duplicates) Duplicate(commitID string) bool

Duplicate returns true if the commitID is a duplicate.

func (*Duplicates) Remove

func (dm *Duplicates) Remove(commitID string)

Remove removes the commitID from the duplicate map to avoid ever growing map. Should be called after the push event has been processed.

type GitHubWebHook

type GitHubWebHook struct {
	// contains filtered or unexported fields
}

GitHubWebHook holds references and data for handling webhook events.

func NewGitHubWebHook

func NewGitHubWebHook(logger *slog.Logger, db database.Database, mgr *scm.Manager, runner ci.Runner, secret string, streams *stream.StreamServices, tm *auth.TokenManager) *GitHubWebHook

NewGitHubWebHook creates a new webhook to handle POST requests from GitHub to the QuickFeed server.

func (GitHubWebHook) Handle

func (wh GitHubWebHook) Handle() http.HandlerFunc

Handle take POST requests from GitHub, representing Push events associated with course repositories, which then triggers various actions on the QuickFeed backend.

Jump to

Keyboard shortcuts

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