Skip to content

Commit

Permalink
Additional doc comments for billing map keys
Browse files Browse the repository at this point in the history
  • Loading branch information
James Turley committed Dec 14, 2022
1 parent f666662 commit c897aa1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions github/actions_workflow_runs.go
Expand Up @@ -70,6 +70,7 @@ type WorkflowRunUsage struct {
}

// WorkflowRunBillMap represents different runner environments available for a workflow run.
// Its key is the name of its environment, e.g. "UBUNTU", "MACOS", "WINDOWS", etc.
type WorkflowRunBillMap map[string]*WorkflowRunBill

// WorkflowRunBill specifies billable time for a specific environment in a workflow run.
Expand Down
1 change: 1 addition & 0 deletions github/actions_workflows.go
Expand Up @@ -36,6 +36,7 @@ type WorkflowUsage struct {
}

// WorkflowBillMap represents different runner environments available for a workflow.
// Its key is the name of its environment, e.g. "UBUNTU", "MACOS", "WINDOWS", etc.
type WorkflowBillMap map[string]*WorkflowBill

// WorkflowBill specifies billable time for a specific environment in a workflow.
Expand Down
1 change: 1 addition & 0 deletions github/billing.go
Expand Up @@ -24,6 +24,7 @@ type ActionBilling struct {
MinutesUsedBreakdown MinutesUsedBreakdown `json:"minutes_used_breakdown"`
}

// MinutesUsedBreakdown counts the actions minutes used by machine type (e.g. UBUNTU, WINDOWS, MACOS).
type MinutesUsedBreakdown = map[string]int

// PackageBilling represents a GitHub Package billing.
Expand Down

0 comments on commit c897aa1

Please sign in to comment.