75 lines
1.9 KiB
Go
75 lines
1.9 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// ChangedFile ChangedFile store information about files affected by the pull request
|
|
//
|
|
// swagger:model ChangedFile
|
|
type ChangedFile struct {
|
|
|
|
// The number of lines added to the file
|
|
Additions int64 `json:"additions,omitempty"`
|
|
|
|
// The total number of changes to the file
|
|
Changes int64 `json:"changes,omitempty"`
|
|
|
|
// The API URL to get the file contents
|
|
ContentsURL string `json:"contents_url,omitempty"`
|
|
|
|
// The number of lines deleted from the file
|
|
Deletions int64 `json:"deletions,omitempty"`
|
|
|
|
// The name of the changed file
|
|
Filename string `json:"filename,omitempty"`
|
|
|
|
// The HTML URL to view the file changes
|
|
HTMLURL string `json:"html_url,omitempty"`
|
|
|
|
// The previous filename if the file was renamed
|
|
PreviousFilename string `json:"previous_filename,omitempty"`
|
|
|
|
// The raw URL to download the file
|
|
RawURL string `json:"raw_url,omitempty"`
|
|
|
|
// The status of the file change (added, modified, deleted, etc.)
|
|
Status string `json:"status,omitempty"`
|
|
}
|
|
|
|
// Validate validates this changed file
|
|
func (m *ChangedFile) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this changed file based on context it is used
|
|
func (m *ChangedFile) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *ChangedFile) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *ChangedFile) UnmarshalBinary(b []byte) error {
|
|
var res ChangedFile
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|