woodpecker/server
qwerty287 0970f35df5
Do not store inactive repos (#1658)
Do not sync repos with forge if the repo is not necessary in DB.

In the DB, only repos that were active once or repos that are currently
active are stored. When trying to enable new repos, the repos list is
fetched from the forge instead and displayed directly. In addition to
this, the forge func `Perm` was removed and is now merged with `Repo`.

Solves a TODO on RepoBatch.

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-03-21 23:01:59 +01:00
..
api Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
badges Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cache Rename remote to forge (#1357) 2022-11-05 00:35:06 +01:00
ccmenu Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cron Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
forge Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
grpc Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
logging Update Go dependencies and minimal Go version to 1.20 (#1650) 2023-03-21 00:48:15 +01:00
model Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
pipeline Add queue details UI for admins (#1632) 2023-03-20 04:50:56 +01:00
plugins Update Go dependencies and minimal Go version to 1.20 (#1650) 2023-03-21 00:48:15 +01:00
pubsub Update Go dependencies and minimal Go version to 1.20 (#1650) 2023-03-21 00:48:15 +01:00
queue Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
router Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
store Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
swagger Fix linter (#1647) 2023-03-18 20:35:27 +01:00
web Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
config.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00