mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-25 15:25:55 +03:00
[PR #47] [MERGED] Add GITHUB_EXCLUDED_ORGS support for organization filtering #112
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#112
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?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/47
Author: @djmango
Created: 7/18/2025
Status: ✅ Merged
Merged: 7/19/2025
Merged by: @arunavo4
Base:
main← Head:master📝 Commits (1)
8d7ca8dAdd GITHUB_EXCLUDED_ORGS support for organization filtering📊 Changes
4 files changed (+20 additions, -2 deletions)
View changed files
📝
docker-compose.dev.yml(+1 -0)📝
docker-compose.yml(+1 -0)📝
docs/BUILD_GUIDE.md(+2 -1)📝
src/lib/github.ts(+16 -1)📄 Description
Add GITHUB_EXCLUDED_ORGS Environment Variable for Organization Filtering
Problem
Users deploying gitea-mirror in environments with IP restrictions (like Proxmox/LXC) encounter sync failures when GitHub organizations have IP allowlists enabled. The entire sync process would crash with a 403 Forbidden error.
Solution
Added
GITHUB_EXCLUDED_ORGSenvironment variable to proactively exclude specific organizations from the sync process.Changes
GITHUB_EXCLUDED_ORGSaccepts a comma-separated list of organization names to excludedocker-compose.ymlanddocker-compose.dev.ymldocs/BUILD_GUIDE.mdwith usage exampleUsage
Benefits
Fixes issues with IP allowlist restrictions in enterprise/restricted environments. https://github.com/RayLabsHQ/gitea-mirror/issues/46
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.