Global .gitea directory repository for organization/user repositories #12465

Open
opened 2025-11-02 10:10:41 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @RGBCube on GitHub (Feb 10, 2024).

Feature Description

It would be great if people could create a .gitea repository under an organization, and put workflows or whatever else the normal .gitea dir has in normal repositories under it, then have those workflows ran for every other repository under the organization.

If workflow names or filenames (doesn't matter which one it is) collide, the repo-scoped one would be favoured over the global one.

For example:

.gitea (repo):
  workflows/
    foo.yml
    bar.yml

myproject (repo):
  .gitea/
    workflows/
      foo.yml
      baz.yml

Here when I push a commit to myproject, foo.yml and baz.yml from myproject and bar.yml from the .gitea repo would get run (assuming they're all on: push).

Originally created by @RGBCube on GitHub (Feb 10, 2024). ### Feature Description It would be great if people could create a `.gitea` repository under an organization, and put workflows or whatever else the normal .gitea dir has in normal repositories under it, then have those workflows ran for every other repository under the organization. If workflow names or filenames (doesn't matter which one it is) collide, the repo-scoped one would be favoured over the global one. For example: ``` .gitea (repo): workflows/ foo.yml bar.yml myproject (repo): .gitea/ workflows/ foo.yml baz.yml ``` Here when I push a commit to myproject, foo.yml and baz.yml from myproject and bar.yml from the .gitea repo would get run (assuming they're all `on: push`).
GiteaMirror added the type/proposal label 2025-11-02 10:10:41 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Feb 11, 2024):

related #29131

@KN4CK3R commented on GitHub (Feb 11, 2024): related #29131
Author
Owner

@a1012112796 commented on GitHub (Feb 27, 2024):

maybe try support git submodule for .gitea ?

@a1012112796 commented on GitHub (Feb 27, 2024): maybe try support `git submodule` for `.gitea` ?
Author
Owner

@ravensorb commented on GitHub (Mar 29, 2024):

Might want to allow for a way for actual repos to skip one or more global workflows (or is there a way to filter based on projects). Example: I may want to have a standard workflow for different packages (docker vs python vs .net). Being able to centralize the workflows would be a HUGE help, however I would not want to run all 3 on every repo in the org. I like the idea of #29131 where the idea of a "ref" could be used in the repos to indicate which of the centralized ones are actually used.

@ravensorb commented on GitHub (Mar 29, 2024): Might want to allow for a way for actual repos to skip one or more global workflows (or is there a way to filter based on projects). Example: I may want to have a standard workflow for different packages (docker vs python vs .net). Being able to centralize the workflows would be a HUGE help, however I would not want to run all 3 on every repo in the org. I like the idea of #29131 where the idea of a "ref" could be used in the repos to indicate which of the centralized ones are actually used.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12465