oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package equipo
2
3import (
4 "amadan.net/oficina/equipo/internal/equipo/setup"
5 "context"
6 "gorm.io/gorm"
7)
8
9func (s *Store) ReportRepositories(ctx context.Context, p RunnerPrincipal, repos []string) error {
10 return s.write(ctx, func(tx *gorm.DB) error {
11 if _, err := runnerPrincipalAt(tx, p, s.runnerClock.Now().UTC()); err != nil {
12 return err
13 }
14 if err := setup.ReplaceRepositories(tx, p.RunnerID, repos, ErrInvalid); err != nil {
15 return err
16 }
17 return appendAudit(tx, Actor{Address: p.Person}, "runner.repositories", p.RunnerID)
18 })
19}
20func (s *Store) AnswerProjectProposal(ctx context.Context, a Actor, id string, accept bool, m Mutation) error {
21 return s.coordinatorApplication().AnswerProjectProposal(ctx, a, id, accept, m)
22}
23