-
Notifications
You must be signed in to change notification settings - Fork 782
feat(gh-copilot): add AI credit usage billing metrics collection #8980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AndreiS-gh
wants to merge
6
commits into
apache:main
Choose a base branch
from
AndreiS-gh:feature/add-ai-credit-usage-metrics
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e59a358
feat(gh-copilot): add AI credit usage billing metrics collection
4e94637
fix: resolve compiler errors and add user-level daily credit usage tr…
26f88ea
Merge branch 'main' into feature/add-ai-credit-usage-metrics
AndreiS-gh ceb3de7
Merge branch 'main' into feature/add-ai-credit-usage-metrics
PankajChaudhari-Atos a79a066
modified: backend/plugins/gh-copilot/models/enterprise_ai_credit_u…
PankajChaudhari-Atos b895758
modified: backend/plugins/gh-copilot/tasks/ai_credit_extractor.go
PankajChaudhari-Atos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ugins/gh-copilot/e2e/metrics/snapshot_tables/_tool_copilot_enterprise_ai_credit_usage.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| connection_id,scope_id,year,month,day,enterprise,model,organization,user,product,cost_center_id,cost_center_name,gross_quantity,discount_quantity,net_quantity,price_per_unit,gross_amount,discount_amount,net_amount | ||
| 1,octodemo,2025,12,10,octodemo,gpt-4.1,,,copilot,,,100.5,10.0,90.5,1.0,100.5,10.0,90.5 | ||
| 1,octodemo,2025,12,10,octodemo,gpt-4o,,,copilot,cc-eng,Engineering,50.0,5.0,45.0,1.0,50.0,5.0,45.0 | ||
| 1,octodemo,2025,12,10,octodemo,claude-3,,,copilot,cc-ml,Machine Learning,30.0,2.0,28.0,1.0,30.0,2.0,28.0 |
4 changes: 4 additions & 0 deletions
4
backend/plugins/gh-copilot/e2e/metrics/snapshot_tables/_tool_copilot_org_ai_credit_usage.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| connection_id,scope_id,year,month,day,organization,model,user,product,gross_quantity,discount_quantity,net_quantity,price_per_unit,gross_amount,discount_amount,net_amount | ||
| 1,octodemo,2025,12,10,octodemo,gpt-4.1,alice,copilot,50.0,5.0,45.0,1.0,50.0,5.0,45.0 | ||
| 1,octodemo,2025,12,10,octodemo,gpt-4o,bob,copilot,30.0,3.0,27.0,1.0,30.0,3.0,27.0 | ||
| 1,octodemo,2025,12,10,octodemo,claude-3,charlie,copilot,20.0,0.0,20.0,1.0,20.0,0.0,20.0 |
4 changes: 4 additions & 0 deletions
4
...end/plugins/gh-copilot/e2e/metrics/snapshot_tables/_tool_copilot_user_ai_credit_usage.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| connection_id,scope_id,year,month,day,user,model,product,gross_quantity,discount_quantity,net_quantity,price_per_unit,gross_amount,discount_amount,net_amount | ||
| 1,octodemo,2025,12,10,alice,gpt-4.1,copilot,50.0,5.0,45.0,1.0,50.0,5.0,45.0 | ||
| 1,octodemo,2025,12,10,alice,gpt-4o,copilot,30.0,3.0,27.0,1.0,30.0,3.0,27.0 | ||
| 1,octodemo,2025,12,10,bob,claude-3,copilot,20.0,2.0,18.0,1.0,20.0,2.0,18.0 |
56 changes: 56 additions & 0 deletions
56
backend/plugins/gh-copilot/models/enterprise_ai_credit_usage.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| /* | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package models | ||
|
|
||
| import ( | ||
| "github.com/apache/incubator-devlake/core/models/common" | ||
| ) | ||
|
|
||
| // GhCopilotEnterpriseAiCreditUsage tracks AI credit consumption at the enterprise level. | ||
| // One row per time period per model per entity (user, org, or cost center). | ||
| type GhCopilotEnterpriseAiCreditUsage struct { | ||
| ConnectionId uint64 `gorm:"primaryKey" json:"connectionId"` | ||
| ScopeId string `gorm:"primaryKey;type:varchar(191)" json:"scopeId"` | ||
| Year int `gorm:"primaryKey" json:"year"` | ||
| Month int `gorm:"primaryKey" json:"month"` | ||
| Day int `gorm:"primaryKey" json:"day"` | ||
|
|
||
| Enterprise string `gorm:"primaryKey;type:varchar(191);comment:Enterprise slug" json:"enterprise"` | ||
| Model string `gorm:"primaryKey;type:varchar(191);comment:AI model name (e.g., gpt-4.1)" json:"model"` | ||
| Organization string `gorm:"index;type:varchar(255);comment:Organization within enterprise, if specified" json:"organization"` | ||
| User string `gorm:"index;type:varchar(255);comment:Username, if specified" json:"user"` | ||
|
|
||
| Product string `gorm:"type:varchar(32);comment:Product name (e.g., copilot)" json:"product"` | ||
| CostCenterId string `gorm:"index;type:varchar(255);comment:Cost center identifier" json:"costCenterId"` | ||
| CostCenterName string `gorm:"type:varchar(255);comment:Cost center display name" json:"costCenterName"` | ||
|
|
||
| // Credit usage breakdown | ||
| GrossQuantity float64 `json:"grossQuantity" gorm:"comment:Raw credits consumed"` | ||
| DiscountQuantity float64 `json:"discountQuantity" gorm:"comment:Credits discounted"` | ||
| NetQuantity float64 `json:"netQuantity" gorm:"comment:Credits after discount"` | ||
| PricePerUnit float64 `json:"pricePerUnit" gorm:"comment:Price per credit unit"` | ||
| GrossAmount float64 `json:"grossAmount" gorm:"comment:Gross cost before discount"` | ||
| DiscountAmount float64 `json:"discountAmount" gorm:"comment:Discount amount"` | ||
| NetAmount float64 `json:"netAmount" gorm:"comment:Net cost after discount"` | ||
|
|
||
| common.NoPKModel | ||
| } | ||
|
|
||
| func (GhCopilotEnterpriseAiCreditUsage) TableName() string { | ||
| return "_tool_copilot_enterprise_ai_credit_usage" | ||
| } |
45 changes: 45 additions & 0 deletions
45
backend/plugins/gh-copilot/models/migrationscripts/20260708_add_ai_credit_usage_metrics.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| /* | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package migrationscripts | ||
|
|
||
| import ( | ||
| "github.com/apache/incubator-devlake/core/context" | ||
| "github.com/apache/incubator-devlake/core/errors" | ||
| "github.com/apache/incubator-devlake/helpers/migrationhelper" | ||
| "github.com/apache/incubator-devlake/plugins/gh-copilot/models" | ||
| ) | ||
|
|
||
| type addAiCreditUsageMetrics struct{} | ||
|
|
||
| func (u *addAiCreditUsageMetrics) Up(basicRes context.BasicRes) errors.Error { | ||
| return migrationhelper.AutoMigrateTables( | ||
| basicRes, | ||
| &models.GhCopilotEnterpriseAiCreditUsage{}, | ||
| &models.GhCopilotOrgAiCreditUsage{}, | ||
| &models.GhCopilotUserAiCreditUsage{}, | ||
| &models.GhCopilotUserDailyMetrics{}, | ||
| ) | ||
| } | ||
|
|
||
| func (u *addAiCreditUsageMetrics) Version() uint64 { | ||
| return 20260708000000 | ||
| } | ||
|
|
||
| func (u *addAiCreditUsageMetrics) Name() string { | ||
| return "add AI credit usage billing tables" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| /* | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package models | ||
|
|
||
| import ( | ||
| "github.com/apache/incubator-devlake/core/models/common" | ||
| ) | ||
|
|
||
| // GhCopilotOrgAiCreditUsage tracks AI credit consumption at the organization level. | ||
| // One row per time period per model per user (within the organization). | ||
| type GhCopilotOrgAiCreditUsage struct { | ||
| ConnectionId uint64 `gorm:"primaryKey" json:"connectionId"` | ||
| ScopeId string `gorm:"primaryKey;type:varchar(191)" json:"scopeId"` | ||
| Year int `gorm:"primaryKey" json:"year"` | ||
| Month int `gorm:"primaryKey" json:"month"` | ||
| Day int `gorm:"primaryKey" json:"day"` | ||
|
|
||
| Organization string `gorm:"primaryKey;type:varchar(191);comment:Organization name" json:"organization"` | ||
| Model string `gorm:"primaryKey;type:varchar(191);comment:AI model name (e.g., gpt-4.1)" json:"model"` | ||
| User string `gorm:"index;type:varchar(255);comment:Username consuming the credits" json:"user"` | ||
|
|
||
| Product string `gorm:"type:varchar(32);comment:Product name (e.g., copilot)" json:"product"` | ||
|
|
||
| // Credit usage breakdown | ||
| GrossQuantity float64 `json:"grossQuantity" gorm:"comment:Raw credits consumed"` | ||
| DiscountQuantity float64 `json:"discountQuantity" gorm:"comment:Credits discounted"` | ||
| NetQuantity float64 `json:"netQuantity" gorm:"comment:Credits after discount"` | ||
| PricePerUnit float64 `json:"pricePerUnit" gorm:"comment:Price per credit unit"` | ||
| GrossAmount float64 `json:"grossAmount" gorm:"comment:Gross cost before discount"` | ||
| DiscountAmount float64 `json:"discountAmount" gorm:"comment:Discount amount"` | ||
| NetAmount float64 `json:"netAmount" gorm:"comment:Net cost after discount"` | ||
|
|
||
| common.NoPKModel | ||
| } | ||
|
|
||
| func (GhCopilotOrgAiCreditUsage) TableName() string { | ||
| return "_tool_copilot_org_ai_credit_usage" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| /* | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package models | ||
|
|
||
| import ( | ||
| "github.com/apache/incubator-devlake/core/models/common" | ||
| ) | ||
|
|
||
| // GhCopilotUserAiCreditUsage tracks AI credit consumption at the individual user level. | ||
| // One row per time period per model per authenticated user. | ||
| type GhCopilotUserAiCreditUsage struct { | ||
| ConnectionId uint64 `gorm:"primaryKey" json:"connectionId"` | ||
| ScopeId string `gorm:"primaryKey;type:varchar(191)" json:"scopeId"` | ||
| Year int `gorm:"primaryKey" json:"year"` | ||
| Month int `gorm:"primaryKey" json:"month"` | ||
| Day int `gorm:"primaryKey" json:"day"` | ||
|
|
||
| User string `gorm:"primaryKey;type:varchar(191);comment:GitHub username" json:"user"` | ||
| Model string `gorm:"primaryKey;type:varchar(191);comment:AI model name (e.g., gpt-4.1)" json:"model"` | ||
|
|
||
| Product string `gorm:"type:varchar(32);comment:Product name (e.g., copilot)" json:"product"` | ||
|
|
||
| // Credit usage breakdown | ||
| GrossQuantity float64 `json:"grossQuantity" gorm:"comment:Raw credits consumed"` | ||
| DiscountQuantity float64 `json:"discountQuantity" gorm:"comment:Credits discounted"` | ||
| NetQuantity float64 `json:"netQuantity" gorm:"comment:Credits after discount"` | ||
| PricePerUnit float64 `json:"pricePerUnit" gorm:"comment:Price per credit unit"` | ||
| GrossAmount float64 `json:"grossAmount" gorm:"comment:Gross cost before discount"` | ||
| DiscountAmount float64 `json:"discountAmount" gorm:"comment:Discount amount"` | ||
| NetAmount float64 `json:"netAmount" gorm:"comment:Net cost after discount"` | ||
|
|
||
| common.NoPKModel | ||
| } | ||
|
|
||
| func (GhCopilotUserAiCreditUsage) TableName() string { | ||
| return "_tool_copilot_user_ai_credit_usage" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
backend/plugins/gh-copilot/tasks/ai_credit_collector.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,123 @@ | ||
| /* | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| the ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| package tasks | ||
|
|
||
| import ( | ||
| "encoding/json" | ||
| "fmt" | ||
| "net/http" | ||
| "net/url" | ||
| "strconv" | ||
| "time" | ||
|
|
||
| "github.com/apache/incubator-devlake/core/errors" | ||
| "github.com/apache/incubator-devlake/core/plugin" | ||
| helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api" | ||
| ) | ||
|
|
||
| const rawAiCreditUsageTable = "copilot_ai_credit_usage" | ||
|
|
||
| func CollectAiCreditUsage(taskCtx plugin.SubTaskContext) errors.Error { | ||
| data, ok := taskCtx.TaskContext().GetData().(*GhCopilotTaskData) | ||
| if !ok { | ||
| return errors.Default.New("task data is not GhCopilotTaskData") | ||
| } | ||
| connection := data.Connection | ||
| connection.Normalize() | ||
|
|
||
| apiClient, err := CreateApiClient(taskCtx.TaskContext(), connection) | ||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
| var urlTemplate string | ||
| var scope string | ||
|
|
||
| if connection.HasEnterprise() { | ||
| urlTemplate = fmt.Sprintf("enterprises/%s/settings/billing/ai_credit/usage", connection.Enterprise) | ||
| scope = connection.Enterprise | ||
| } else if connection.Organization != "" { | ||
| urlTemplate = fmt.Sprintf("organizations/%s/settings/billing/ai_credit/usage", connection.Organization) | ||
| scope = connection.Organization | ||
| } else { | ||
| urlTemplate = "user/settings/billing/ai_credit/usage" | ||
| scope = "user" | ||
| } | ||
|
|
||
| rawArgs := helper.RawDataSubTaskArgs{ | ||
| Ctx: taskCtx, | ||
| Table: rawAiCreditUsageTable, | ||
| Options: copilotRawParams{ | ||
| ConnectionId: data.Options.ConnectionId, | ||
| ScopeId: data.Options.ScopeId, | ||
| Organization: connection.Organization, | ||
| Endpoint: connection.Endpoint, | ||
| }, | ||
| } | ||
|
|
||
| collector, err := helper.NewStatefulApiCollector(rawArgs) | ||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
| now := time.Now().UTC() | ||
| start, until := computeReportDateRange(now, collector.GetSince()) | ||
| start = clampDailyMetricsStartForBackfill(start, until) | ||
|
|
||
| dayIter := newDayIterator(start, until) | ||
|
|
||
| err = collector.InitCollector(helper.ApiCollectorArgs{ | ||
| ApiClient: apiClient, | ||
| Input: dayIter, | ||
| UrlTemplate: urlTemplate, | ||
| Query: func(reqData *helper.RequestData) (url.Values, errors.Error) { | ||
| input := reqData.Input.(*dayInput) | ||
| day, parseErr := time.Parse("2006-01-02", input.Day) | ||
| if parseErr != nil { | ||
| return nil, errors.Convert(parseErr) | ||
| } | ||
| q := url.Values{} | ||
| q.Set("year", strconv.Itoa(day.Year())) | ||
| q.Set("month", strconv.Itoa(int(day.Month()))) | ||
| q.Set("day", strconv.Itoa(day.Day())) | ||
| return q, nil | ||
| }, | ||
| Incremental: true, | ||
| Concurrency: 1, | ||
| AfterResponse: ignoreNoContent, | ||
| ResponseParser: func(res *http.Response) ([]json.RawMessage, errors.Error) { | ||
| if res.StatusCode != http.StatusOK { | ||
| return nil, errors.HttpStatus(res.StatusCode).New(fmt.Sprintf("failed to collect AI credit usage for %s", scope)) | ||
| } | ||
|
|
||
| var response struct { | ||
| UsageItems []json.RawMessage `json:"usageItems"` | ||
| } | ||
| if unmErr := helper.UnmarshalResponse(res, &response); unmErr != nil { | ||
| return nil, unmErr | ||
| } | ||
|
|
||
| return response.UsageItems, nil | ||
| }, | ||
| }) | ||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
| return collector.Execute() | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.