AIFeed

BugStage - Git web server and discussions board for single-maintainers

Original text(via Lobsters)

Please adjust (and lower) your expectations

In fact, it is a side-project of a side-project (PocketBase) of a side-project (Presentator).

I hope that you'll find it useful BUT note that I've tailored it for my own personal needs and it has a very narrow scope:

  • help single-maintainers to manage and share their open source projects
  • provide a convenient interface for users to help each others, report bugs, suggest improvements and subscribe to the project events they are interested (new releases, security fixes, specific discussion categories, etc.)

Collaboration is intended through a discussion-first approach and users can submit bug fixes or improvements to a project either by direct inline code or by uploading a git patch file (git diff > myfix.diff) as part of their discussion.

Obviously not everyone will agree with this decision, but the main benefit for me of this approach is that it encourages small contributions that are easy to discuss and review without putting pressure on the maintainer to merge it, because after all they are treated as what they are - a suggestion for a change and nothing more.

There is no CI/CD support out of the box yet but you can implement your own programmatic build/release flow by using the available PocketBase server-side hooks and Web APIs (at least that is what I'm doing for my own projects).

There are also no exposed Git hooks at the moment but there are plans to eventually introduce them sometime in the future with the support for PocketBase user-defined app level hooks (there are no ETAs).

For convenience and portability Git operations are currently performed with go-git, which unfortunately is not very efficient when working with large repositories that have years of accumulated history and hundreds of references.

To give an example, even for a medium sized project like PocketBase (2500+ commits, 290+ tags and 3+ branches), git clone takes around 5 minutes to complete on a good network. You can of course speed up the cloning with --depth=1 (completes in ~3s) but nevertheless it will be slower compared to other Git forges that utilizes the Git CLI or the libgit2 C bindings.

Memory consumption could be also an issue and it is recommended to use BugStage with enabled swap partition.

BugStage has only 3 access levels:

  • guest - has read-only git access over HTTPs, can view and download public repositories, can only read public discussions
  • regular user - has read-only git access over HTTPs, can view and download public repositories, can create and participate in public discussions, can create private discussions, can subscribe to project events
  • maintainer - can access and do everything - manage public/private repositories and discussions, create releases, has read and write git access over SSH, can moderate other users, and many more

Because of the broader maintainer permissions and the lack of support to invite external collaborators/moderators, BugStage at the moment is suitable mostly for single-maintainers.

I want to add support for people working together on the same project as a team (e.g. group of close friends or coworkers), but PocketBase v1 finalization is with higher priority so this is left aside for now.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Lobsters
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗