MCPcopy Create free account
hub / github.com/assetnote/newtowner / Provider

Struct Provider

internal/providers/github/github.go:111–118  ·  view source on GitHub ↗

Provider implements the Newtowner provider interface for GitHub Actions.

Source from the content-addressed store, hash-verified

109
110// Provider implements the Newtowner provider interface for GitHub Actions.
111type Provider struct {
112 client *github.Client
113 Owner string // GitHub repository owner (user or organization)
114 Repo string // GitHub repository name
115 WorkflowFileName string // Set internally to newtownerWorkflowFileName
116 WorkflowID int64 // Added to store the ID of the workflow
117 DefaultBranch string // Default branch to trigger workflow on e.g. "main"
118}
119
120// NewProvider creates and initializes a new GitHub Provider.
121// workflowFile parameter is removed, uses internal constant newtownerWorkflowFileName.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected