Skip to content
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

feat: Updates CheckRun.id to the proper type #105

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "2A275CA0C1BC6884322B17DC1FC9558B61329DE5207AAB92506C0235D5002569BC7341E821733BED96F5763A9D461DB59AB267A12789BFB78632EAAA6AC0F41C",
"descriptionHash": "0D3690030724DAFB97ECAD0A8982B6CBBCFE42B8BF2CF9DA0449ECC00DA8023FEFDDFBB879E522524DF56BB1B0BF645EFF8DAD87CC280FE60AEFA061FC071C23",
"descriptionLocation": "../../../../../schemas/api.git.luolix.top.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/check_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CheckRun struct {
// The html_url property
html_url *string
// The id of the check.
id *int32
id *int64
// The name of the check.
name *string
// The node_id property
Expand Down Expand Up @@ -191,7 +191,7 @@ func (m *CheckRun) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -289,8 +289,8 @@ func (m *CheckRun) GetHtmlUrl()(*string) {
return m.html_url
}
// GetId gets the id property value. The id of the check.
// returns a *int32 when successful
func (m *CheckRun) GetId()(*int32) {
// returns a *int64 when successful
func (m *CheckRun) GetId()(*int64) {
return m.id
}
// GetName gets the name property value. The name of the check.
Expand Down Expand Up @@ -386,7 +386,7 @@ func (m *CheckRun) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -489,7 +489,7 @@ func (m *CheckRun) SetHtmlUrl(value *string)() {
m.html_url = value
}
// SetId sets the id property value. The id of the check.
func (m *CheckRun) SetId(value *int32)() {
func (m *CheckRun) SetId(value *int64)() {
m.id = value
}
// SetName sets the name property value. The name of the check.
Expand Down Expand Up @@ -532,7 +532,7 @@ type CheckRunable interface {
GetExternalId()(*string)
GetHeadSha()(*string)
GetHtmlUrl()(*string)
GetId()(*int32)
GetId()(*int64)
GetName()(*string)
GetNodeId()(*string)
GetOutput()(CheckRun_outputable)
Expand All @@ -549,7 +549,7 @@ type CheckRunable interface {
SetExternalId(value *string)()
SetHeadSha(value *string)()
SetHtmlUrl(value *string)()
SetId(value *int32)()
SetId(value *int64)()
SetName(value *string)()
SetNodeId(value *string)()
SetOutput(value CheckRun_outputable)()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ func (m *ItemItemContentsWithPathItemRequestBuilder) Get(ctx context.Context, re
// Put creates a new file or replaces an existing file in a repository.> [!NOTE]> If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/repos/contents/#delete-a-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint. The `workflow` scope is also required in order to modify files in the `.github/workflows` directory.
// returns a FileCommitable when successful
// returns a BasicError error when the service returns a 404 status code
// returns a BasicError error when the service returns a 409 status code
// returns a ValidationError error when the service returns a 422 status code
// [API method documentation]
//
Expand All @@ -235,7 +234,6 @@ func (m *ItemItemContentsWithPathItemRequestBuilder) Put(ctx context.Context, bo
}
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue,
"409": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue,
"422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue,
}
res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateFileCommitFromDiscriminatorValue, errorMapping)
Expand Down
2 changes: 0 additions & 2 deletions pkg/github/repos/item_item_git_blobs_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func NewItemItemGitBlobsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d
// returns a BasicError error when the service returns a 403 status code
// returns a BasicError error when the service returns a 404 status code
// returns a BasicError error when the service returns a 409 status code
// returns a ValidationError error when the service returns a 422 status code
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/git/blobs#create-a-blob
Expand All @@ -53,7 +52,6 @@ func (m *ItemItemGitBlobsRequestBuilder) Post(ctx context.Context, body ItemItem
"403": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue,
"404": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue,
"409": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateBasicErrorFromDiscriminatorValue,
"422": i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateValidationErrorFromDiscriminatorValue,
}
res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateShortBlobFromDiscriminatorValue, errorMapping)
if err != nil {
Expand Down
Loading