Streamlining GitHub Tracking: Relgen Automates Release Notes with AI

In the fast-paced world of software development, generating accurate and comprehensive release notes can often be a time-consuming manual process. This critical task, essential for communicating changes to users and stakeholders, often pulls developers away from core coding. A recent GitHub Community discussion highlights an innovative solution aiming to streamline this workflow: Relgen.

Authored by sstankala, Relgen is presented as a Proof-of-Concept (PoC) tool designed to automate the creation of release notes directly from a repository's GitHub activity. This tool promises to significantly enhance github tracking and simplify the generation of detailed development reports, all in under five minutes.

Automated release note generation from GitHub activity
Automated release note generation from GitHub activity

What is Relgen and How Does It Work?

Relgen leverages the GitHub REST API to fetch crucial data points from a repository. Its core functionality includes:

  • Data Collection: It gathers merged Pull Requests (PRs), individual commits, linked issues, and milestones.
  • Intelligent Categorization: Using label matching, Relgen categorizes changes into common types such as features, bug fixes, security updates, and performance improvements. This structured approach is vital for clear communication in any release.
  • Dynamic Note Generation: The tool generates editable release notes that are directly linked back to their source on GitHub. Users have the flexibility to choose between static generation or AI-assisted content creation.
  • Secure by Design: A key highlight is its commitment to privacy and security. Personal Access Tokens (PATs) and LLM API keys remain client-side, ensuring no sensitive information is stored server-side.

Leveraging GitHub APIs for Comprehensive Tracking

Relgen demonstrates a robust understanding of GitHub's API capabilities, utilizing specific endpoints to gather the necessary data:

  • GET /repos/{owner}/{repo}/pulls: To fetch merged PRs, including their labels and linked issues. This is crucial for understanding the context of changes.
  • GET /repos/{owner}/{repo}/commits: For filtering commits within a specified range, allowing for precise tracking of code changes between releases.
  • GET /repos/{owner}/{repo}/milestones: To group releases effectively, providing a clear scope for each set of notes.

For enhanced content generation, Relgen offers various Large Language Model (LLM) options, ranging from a static (no LLM) approach to integration with HuggingFace shared inference, or the flexibility to "Bring Your Own Key" (BYOK) for services like Claude, GPT-4o, or Gemini.

Developer tools integration for enhanced productivity and collaboration
Developer tools integration for enhanced productivity and collaboration

Impact on Developer Productivity and Development Reports

The potential impact of Relgen on developer productivity is substantial. By automating a typically manual and error-prone process, teams can:

  • Save Time: Developers can focus more on coding and less on administrative tasks.
  • Improve Accuracy: Direct fetching from GitHub activity reduces the chance of missing critical updates in release notes.
  • Enhance Communication: Categorized and source-linked notes provide clearer, more actionable information for users and internal teams.
  • Streamline Auditing: The direct links to GitHub activity facilitate easier auditing and verification of changes, contributing to better development reports.

Relgen is currently free for open-source projects, allowing maintainers to easily point the tool at their public repositories. The author, sstankala, is actively seeking feedback from the community, especially from those involved in release workflows or heavy GitHub API users, with the ultimate goal of releasing Relgen to the GitHub Marketplace.

This initiative represents a significant step towards more efficient github tracking and automated reporting, showcasing how innovative tools can transform routine development tasks into seamless, integrated processes. For teams looking to refine their release management and improve their overall development performance, exploring tools like Relgen could be a game-changer.

Track, Analyze and Optimize Your Software DeveEx!

Effortlessly implement gamification, pre-generated performance reviews and retrospective, work quality analytics, alerts on top of your code repository activity

 Install GitHub App to Start
devActivity Screenshot