Provider implements the Newtowner provider interface for GitHub Actions.
| 109 | |
| 110 | // Provider implements the Newtowner provider interface for GitHub Actions. |
| 111 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected