Sources
A source tells the plugin where your projects are. It is one of:
| Source | Address to paste | What becomes a project |
|---|---|---|
| An organisation | https://git.example.com/acme |
every public repository of acme |
| An account | https://github.com/jane-example |
every public repository of that account |
| A single repository | https://git.example.com/acme/widget |
that repository only |
With an organisation or an account, a repository created later joins the projects by itself, marked To complete. Several sources can be added, on different forges.
Add a source
Pluginception → Sources → Add a source:
- Address of the organisation, account or repository: the address you see in your browser.
- Forge: Detect from the address works for
github.com. For any other address, choose Forgejo or Gitea, or GitHub for a GitHub Enterprise Server. - Include forks, Include archived repositories: off by default.
- Token (optional): see below.
Add reads the list of repositories at once (within a minute). The projects appear in Projects, marked Being read until their releases have been read.
Forges
| Forge | API used | Notes |
|---|---|---|
| Forgejo, Gitea | https://<host>/api/v1 |
no request quota on most instances |
| GitHub | https://api.github.com |
60 requests an hour without a token |
| GitHub Enterprise Server | https://<host>/api/v3 |
quota set by the instance |
Only public repositories are read. A private or internal repository never becomes a project, even when a token could see it.
Tokens and request quotas
No token is needed: the data is public. A token only raises the number of requests the forge allows.
- GitHub without a token allows 60 requests an hour per server address. Reading a project takes about five requests (releases, files at the root, README, plugin header, image), so a first reading of 50 repositories takes several hours. The projects show at once anyway, with their name and description, and fill in as they are read. Later, only the projects that changed are read again.
- GitHub with a token allows 5,000 requests an hour: everything is read in minutes. A fine-grained token with Public repositories (read-only) access is enough; it needs no permission.
- Forgejo and Gitea usually have no quota. A token is useful only if the instance limits anonymous requests; a token with read access to repositories is enough.
The plugin reads the quota left in every answer and keeps a reserve (setting Requests left untouched in a forge's quota, 10 by default) for anything else your server does with that forge. When the quota runs out, the source shows Quota reached, resumes at … and the reading resumes by itself at that time.
The token is stored in the site's database, never sent back to the browser, never written in the log, and sent only to the forge's API address (never to another address, even after a redirect). After saving, the field shows Token saved; Remove the token deletes it.
The sources table
| Column | Meaning |
|---|---|
| Source | the address, its kind (organisation, account, repository); Paused when you paused it |
| Forge | Forgejo or Gitea, GitHub |
| Projects | number of projects from this source |
| Last reading | when its list of repositories was last read; an error shows here |
| Quota | requests left, or when the reading resumes |
| Webhook | On or Off (Webhook) |
Actions of a row:
- Read again: reads the list of repositories now (within a minute), then the projects that changed. To read one project again, use its own Read again in Projects.
- Edit: options, token, webhook, Pause (stops all reading of the source; the projects stay shown as they are).
- Delete: deletes the source and its projects, with the names, excerpts and categories typed for them. Images stay in the media library.
A repository renamed, moved or deleted
- Renamed: the project keeps everything you typed; its addresses follow.
- No longer listed (deleted, made private, archived when archives are excluded): the project is marked No longer on the forge and hidden from the blocks. It is kept, in case it comes back; you can delete it.