Investigate using git submodules to eliminate workflow drift between .forgejo and template repos #12
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Compat/Breaking
Compat/Deprecation
Kind
Bug
Kind
Chore
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Investigation
Kind
Question
Kind
Security
Kind
Testing
Meta/Good First Issue
Meta/Help Wanted
Meta/Stale
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Resolution
Confirmed
Resolution
Duplicate
Resolution
Invalid
Resolution
Won't Fix
Status
Abandoned
Status
Blocked
Status
Needs More Info
Status
Needs Triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#4 Create template-script repo for infrastructure and config repos
XeplosionGames/.profile
#5 Create template-dotnet repo for C# projects
XeplosionGames/.profile
#6 Create template-node repo for Node and web frontend projects
XeplosionGames/.profile
#7 Create template-python repo for Python projects
XeplosionGames/.profile
#8 Create template-php repo for PHP and web backend projects
XeplosionGames/.profile
Reference
XeplosionGames/.profile#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What question are we trying to answer?
Can
.forgejobe referenced as a git submodule inside each template repo so that workflow and script updates propagate automatically rather than requiring manual copying or a sync workflow?Why does this matter?
Currently workflow and script files are duplicated across
.forgejoand every template repo. Any change to a canonical file in.forgejomust be manually mirrored intotemplate-script,template-dotnet, etc. This will only get harder as the number of template repos and workflows grows. Thesync.ymlapproach (tracked separately) solves this via automation but still duplicates files. A submodule approach would eliminate duplication entirely — template repos would reference.forgejodirectly and git submodule update would be all that's needed to pull in changes.Scope and time box
Research whether Forgejo Actions workflows and scripts can be resolved correctly when sourced from a submodule path (e.g.
.forgejo-canonical/workflows/deploy-production.yml) rather than.forgejo/workflows/. Determine if Forgejo supports workflow files outside the standard.forgejo/workflows/path, and if not, whether symlinks inside.forgejo/workflows/pointing to submodule files would work. Output is a recommendation to proceed or abandon in favor ofsync.yml.Definition of done
A written recommendation with findings, either a proof of concept branch or a clear explanation of why it won't work.
Checklist