Alternatives to GitHub for Managing Spam and AI-Generated Pull Requests

Developers are increasingly migrating projects away from GitHub to escape a surge in spam pull requests (PRs) and bot-driven activity designed to artificially inflate user profiles. The primary drivers for this migration are the proliferation of "vibe coders" and AI-generated contributions that lack genuine technical value, making it difficult for maintainers to filter signal from noise.

Top Alternative Platforms for Open Source Hosting

Several community-driven platforms have emerged as viable alternatives to GitHub for those seeking a more focused environment for open-source development.

Codeberg

Codeberg is frequently cited as a strong alternative, particularly for those prioritizing open-source values. It is sponsored by European institutions and exclusively hosts open-source software. Some users note that high-profile projects, such as Zig, have utilized the platform.

Sourcehut

Sourcehut is recommended for developers who prefer a lean, focused approach to software development. Users highlight its commitment to fighting LLM scrapers and its open-source nature, which allows for self-hosting. While the UI may be different from traditional forges, its CI/CD capabilities are highly regarded.

Self-Hosting and Private Infrastructure

For developers who want total control over their environment and a complete removal of social-media-style noise, self-hosting is a primary recommendation.

Forgejo and Gitea

Forgejo (a fork of Gitea) is currently highly popular for self-hosting. It provides a full-featured forge experience on a server the user controls. Gitea is also recommended for managing private projects and backing up public ones.

Minimalist Git Hosting

Some developers advocate for returning to the basics of Git. Because a Git repository is a complete copy of the project, it can be hosted on any server with shell access via SSH. Tools like gitolite have been used for decades to manage access for small teams. For read-only code sharing, using cgit on a VPS is suggested as a lightweight, scraping-resilient option.

Home Server Integration

Using a Synology NAS or a similar home server connected via Tailscale or a VPN allows developers to maintain a private "source of truth" for their code without exposing it to the public internet.

Strategies for Reducing Spam on Existing Platforms

Moving platforms does not always solve the spam problem, as any platform that accepts unvouched pull requests is susceptible to bots. Developers suggest several workflow changes to mitigate this:

  • Disable Public PRs and Issues: GitHub allows users to disable pull requests and issues entirely. Some suggest disabling them for everyone except the maintainer.
  • The "Petition" Model: Instead of allowing open PRs, maintainers can use discussion boards. Contributors must first petition to work on a feature and convince the maintainer of its value. Once approved, the maintainer can pull from the contributor's branch and merge the changes manually.
  • Restrict Access: Implementing blocks for specific users or new accounts can reduce the volume of noise.

Community Perspectives on the "Social" Aspect of Coding

While moving to a smaller platform reduces spam, it can also reduce the gap in community reach. The original poster in the discussion emphasized that the goal is not just to avoid spam, but to find a community of people who "care for software and would like to put genuine thoughts" into bug reports and security reports. This highlights a tension between the desire for a high-quality, focused community and the broad reach provided by the majority-share platforms.

Sources