Skip to content

Enable gitea status in flakes#1567

Open
SuperSandro2000 wants to merge 1 commit intoNixOS:masterfrom
SuperSandro2000:gitea-flake
Open

Enable gitea status in flakes#1567
SuperSandro2000 wants to merge 1 commit intoNixOS:masterfrom
SuperSandro2000:gitea-flake

Conversation

@SuperSandro2000
Copy link
Copy Markdown
Member

Rebased PR of #1232


Curently the GiteaStatus plugin only works for legacy inputs, as it attempts to read repository metadata from the jobsetevalinputs (which I don’t think can be set for flakes).

This Commit adds support for many gitea instances by checkng whether the domain is hosting gitea. This is done by querying the /api/swagger endpoint, as that is a small static page that contains “Gitea” even when the instance has been renamed.

Gitea instances that are hosted in a
subfolder
are not supported.

Curently the GiteaStatus plugin only works for legacy inputs, as it
attempts to read repository metadata from the `jobsetevalinput`s (which
I don’t think can be set for flakes).

This Commit adds support for many gitea instances by checkng whether the
domain is hosting gitea. This is done by querying the /api/swagger
endpoint, as that is a small static page that contains “Gitea” even when
the instance has been renamed.

[Gitea instances that are hosted in a
subfolder](https://docs.gitea.io/en-us/reverse-proxies/#nginx-with-a-sub-path)
are not supported.
@dasJ dasJ added plugins notify hydra-notify component labels Jan 30, 2026
@fsagbuya
Copy link
Copy Markdown

Can you also add URLs that ends with .git in the flake URI regex?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notify hydra-notify component plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants