instructions

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor handles reading and processing instruction files for a specific assignment

func New

func New(assignmentPath string) *Processor

New creates a new instructions processor for the given assignment path

func NewWithDefaults

func NewWithDefaults(branch, assignmentPath string) *Processor

NewWithDefaults creates a new instructions processor with branch and assignment path

func (*Processor) AddPullRequestLinkToReadme

func (p *Processor) AddPullRequestLinkToReadme(content, repositoryName, branchName, prNumber string) string

AddPullRequestLinkToReadme adds a pull request link to the top of README content

func (*Processor) AugmentExistingReadmeContent

func (p *Processor) AugmentExistingReadmeContent(existingContent string) string

AugmentExistingReadmeContent adds augmentation content to existing README content

func (*Processor) CreateNewReadmeContent

func (p *Processor) CreateNewReadmeContent() string

CreateNewReadmeContent creates content for a new README file

func (*Processor) CreatePullRequestBody

func (p *Processor) CreatePullRequestBody() (string, error)

CreatePullRequestBody creates pull request body content from the processor's assignment path

Jump to

Keyboard shortcuts

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