creator

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config holds configuration for the PR creator

func NewConfig

func NewConfig(gitHubToken, repositoryName, defaultBranch string, assignmentRegex []string, dryRun bool) *Config

NewConfig creates a new Config with the given parameters

func NewConfigFromEnv

func NewConfigFromEnv() *Config

NewConfigFromEnv creates a new Config from environment variables

type Creator

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

Creator is the main Assignment PR Creator

func NewFromEnv

func NewFromEnv() (*Creator, error)

NewFromEnv creates a new Assignment PR Creator with environment variables

func NewWithConfig

func NewWithConfig(config *Config) (*Creator, error)

NewWithConfig creates a new Assignment PR Creator with the given configuration

func (*Creator) Run

func (c *Creator) Run() error

Run is the main execution method using local git with atomic remote operations

type PullRequestInfo

type PullRequestInfo struct {
	Number string `json:"number"`
	Title  string `json:"title"`
}

PullRequestInfo holds information about a created pull request

Jump to

Keyboard shortcuts

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