Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneRepositoryEvent ¶
type GitHubInstallation ¶
type GitHubPullRequest ¶
type GitHubPullRequest struct {
ID string `db:"id"`
WorkspaceID string `db:"workspace_id"`
GitHubID int64 `db:"github_id"`
GitHubRepositoryID int64 `db:"github_repository_id"`
CreatedBy string `db:"created_by"`
GitHubPRNumber int `db:"github_pr_number"`
Head string `db:"head"`
// HeadSHA is empty for older pull requests.
HeadSHA *string `db:"head_sha"`
CodebaseID string `db:"codebase_id"`
Base string `db:"base"`
Open bool `db:"open"`
Merged bool `db:"merged"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
ClosedAt *time.Time `db:"closed_at"`
MergedAt *time.Time `db:"merged_at"`
}
type GitHubRepository ¶
type GitHubRepository struct {
ID string `db:"id"`
InstallationID int64 `db:"installation_id"`
Name string `db:"name"`
GitHubRepositoryID int64 `db:"github_repository_id"`
CreatedAt time.Time `db:"created_at"`
UninstalledAt *time.Time `db:"uninstalled_at"`
InstallationAccessToken *string `db:"installation_access_token"`
InstallationAccessTokenExpiresAt *time.Time `db:"installation_access_token_expires_at"`
TrackedBranch string `db:"tracked_branch"`
SyncedAt *time.Time `db:"synced_at"`
CodebaseID string `db:"codebase_id"`
// When true, all changes must be made through GitHub, workspaces create Pull Requests
// When false, changes are made on Sturdy, and sturytrunk pushes to GitHub.
GitHubSourceOfTruth bool `json:"-" db:"github_source_of_truth"`
// If the GitHub integration is enabled or not
IntegrationEnabled bool `json:"-" db:"integration_enabled"`
LastPushErrorMessage *string `json:"-" db:"last_push_error_message"`
LastPushAt *time.Time `json:"-" db:"last_push_at"`
}
type GitHubUser ¶
type GitHubUser struct {
ID string `json:"id" db:"id"`
UserID string `json:"user_id" db:"user_id"`
Username string `json:"username" db:"username"`
AccessToken string `json:"-" db:"access_token"`
AccessTokenLastValidatedAt time.Time `json:"-" db:"access_token_last_validated_at"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
routes/internal/mock_client
Package mock_client is a generated GoMock package.
|
Package mock_client is a generated GoMock package. |
|
routes/internal/mock_sender
Package mock_sender is a generated GoMock package.
|
Package mock_sender is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.