Skip to content
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/app/server/httpapi/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func checkState(r *http.Request, key string) error {

func getUser(ctx context.Context, sso *model.ProjectSSOConfig, rbac *model.ProjectRBACConfig, project *model.Project, code string) (*model.User, error) {
switch sso.Provider {
case model.ProjectSSOConfig_GITHUB, model.ProjectSSOConfig_GITHUB_ENTERPRISE:
case model.ProjectSSOConfig_GITHUB:
if sso.Github == nil {
return nil, fmt.Errorf("missing GitHub oauth in the SSO configuration")
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/datastore/eventstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ func (s *eventStore) UpdateStatus(ctx context.Context, eventID string, status mo
now := s.nowFunc().Unix()
event.HandledAt = now
event.UpdatedAt = now
// For older Piped agents, this is required.
event.Handled = true
}
return nil
})
Expand Down
152 changes: 70 additions & 82 deletions pkg/model/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pkg/model/common.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/model/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ enum ApplicationActiveStatus {
}

message ApplicationGitPath {
reserved 3;

// The repository that was configured at piped.
ApplicationGitRepository repo = 1 [(validate.rules).message.required = true];
// TODO: Make this field immutable.
string path = 2 [(validate.rules).string.pattern = "^[^/].+$"];
string config_path = 3 [deprecated=true];
string config_filename = 4;
string url = 5;
}
Expand Down
Loading