server

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTryPackageRequest added in v0.6.1

type ConfigTryPackageRequest struct {
	Version       string `form:"version"`
	PackageConfig string `form:"config"`
}

ConfigTryPackageRequest is the query or form data pushed by the web.

type CreatePRRequest added in v0.5.0

type CreatePRRequest struct {
	Version   string `form:"version"`
	JiraIssue string `form:"jiraIssue"`
	PRCreate  bool   `form:"prCreate"`
}

CreatePRRequest is the query or form data pushed by the web.

type HTTPServer

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

func New

func New(cfg *config.Config, j jira.Client, patcher patch.Patcher, staticFiles fs.FS) *HTTPServer

func (HTTPServer) Serve

func (s HTTPServer) Serve() error

type Release

type Release struct {
	Provider string `json:"provider"`
	Project  string `json:"project"`
	Version  string `json:"version"`
}

Release object unmarshaled from the newreleases.io webhook. Some fields omitted for simplicity, refer to the documentation at https://newreleases.io/webhooks

func (Release) IssueSummary

func (r Release) IssueSummary() string

Generates a Textual summary for the release, intended to be used as the Jira issue summary

func (Release) JiraIssue

func (r Release) JiraIssue(cfg *config.JiraIssue) jira.Issue

type TemplRender added in v0.6.1

type TemplRender struct {
	Code int
	Data templ.Component
}

func (*TemplRender) Instance added in v0.6.1

func (t *TemplRender) Instance(name string, data interface{}) render.Render

func (TemplRender) Render added in v0.6.1

func (t TemplRender) Render(w http.ResponseWriter) error

func (TemplRender) WriteContentType added in v0.6.1

func (t TemplRender) WriteContentType(w http.ResponseWriter)

type TemplateContextError

type TemplateContextError struct {
	config.TemplateContext
	Error string
}

type TemplateContextPullRequests

type TemplateContextPullRequests struct {
	config.TemplateContext
	PullRequests []github.PullRequest
}

type TemplateContextURL added in v0.5.0

type TemplateContextURL struct {
	config.TemplateContext
	URL *url.URL
}

Jump to

Keyboard shortcuts

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