FixHasEntryFile checks whether git repo has entry point file and update space's HasAppFile property in db
(ctx context.Context, s *database.Space)
| 634 | |
| 635 | // FixHasEntryFile checks whether git repo has entry point file and update space's HasAppFile property in db |
| 636 | func (c *SpaceComponent) FixHasEntryFile(ctx context.Context, s *database.Space) *database.Space { |
| 637 | hasAppFile := c.HasEntryFile(ctx, s) |
| 638 | if s.HasAppFile != hasAppFile { |
| 639 | s.HasAppFile = hasAppFile |
| 640 | c.ss.Update(ctx, *s) |
| 641 | } |
| 642 | |
| 643 | return s |
| 644 | } |
| 645 | |
| 646 | func (c *SpaceComponent) status(ctx context.Context, s *database.Space) (string, string, error) { |
| 647 | if !s.HasAppFile { |
no test coverage detected