woodpecker/server/model
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
..
agent.go Add agent no-schedule flag (#1567) 2023-01-30 20:18:48 +01:00
config.go Rename to pipeline in DB and JSONs (#1296) 2022-10-22 15:54:43 +02:00
const.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
cron.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
encryption.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
environ.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
event.go Rename to pipeline in DB and JSONs (#1296) 2022-10-22 15:54:43 +02:00
feed.go Fix pipeline feed not updated by new events (#1424) 2022-11-18 10:59:24 +01:00
file.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
log.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
netrc.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
pagination.go Add PR pipeline list (#1641) 2023-03-19 10:43:57 +01:00
perm.go Fetch repositories with remote ID if possible (#1078) 2022-09-05 17:08:51 +02:00
pipeline.go Add pull request labels as environment variable (#1321) 2023-03-17 03:43:04 +01:00
pull_request.go Add PR pipeline list (#1641) 2023-03-19 10:43:57 +01:00
redirection.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
registry.go Fix registry delete (#532) 2021-11-25 19:04:36 +01:00
repo.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
resource_limit.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
secret.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
secret_test.go Add field for image list in Secrets Repo Settings (Web UI) (#638) 2021-12-30 07:26:36 +01:00
server_config.go Use asym key to sign webhooks (#916) 2022-06-01 20:06:27 +02:00
settings.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
step.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
step_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
task.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
team.go Rename remote to forge (#1357) 2022-11-05 00:35:06 +01:00
user.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
user_test.go Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00