Skip to content

Commit f231951

Browse files
author
James Turley
committed
Additional doc comments for billing map keys
1 parent 5b2e965 commit f231951

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

github/actions_workflow_runs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ type WorkflowRunUsage struct {
7070
}
7171

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

7576
// WorkflowRunBill specifies billable time for a specific environment in a workflow run.

github/actions_workflows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type WorkflowUsage struct {
3636
}
3737

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

4142
// WorkflowBill specifies billable time for a specific environment in a workflow.

github/billing.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type ActionBilling struct {
2424
MinutesUsedBreakdown MinutesUsedBreakdown `json:"minutes_used_breakdown"`
2525
}
2626

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

2930
// PackageBilling represents a GitHub Package billing.

0 commit comments

Comments
 (0)