Skip to content
CAI
Software that uses CAICheck a score

24pullrequests/24pullrequests

40.7

Weak · 6 November 2026

3.2k

lines of production code

Ruby

with JavaScript

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add HTML and text templates for the thank-you email

Users will now receive a thank-you email upon sending 24 pull requests, delivered in both HTML and plain-text formats. The message addresses the user by their nickname, congratulates them on the milestone, and encourages continued contribution beyond the holiday season.

_app/views/thank\_you\mailer · high confidence

Added Rails 3 executable script

A new executable script named 'rails' has been added to the script directory. This script allows users to run Rails commands directly from the application root when using Rails 3 gems, by loading the application configuration and boot process.

script · high confidence

Added email confirmation views

New HTML and text email templates have been added for the confirmation mailer, enabling users to verify their email addresses. The emails address the user by nickname and provide a link to confirm the email address associated with their 24pullrequests.com account.

_app/views/confirmation\mailer · high confidence

Added emoji support via emojione.js

The application now supports rendering emojis in text content. This is achieved by adding the emojione.js library and a custom emoji.js script to the vendor assets, which processes text to replace emoji shortcodes (like :smile:) with corresponding images.

vendor · high confidence

Added standard Rails binstubs and development utilities

The bin directory now includes standard Rails binstubs (rails, rake, bundle, rspec, spring, yarn) and development helper scripts (setup, update, dev, docker-start, brakeman). These changes provide a consistent entry point for running Rails commands, managing dependencies, executing tests, and setting up or updating the development environment, including a specific script for Docker-based database initialization.

bin · high confidence

Initial controller layer for the 24 Pull Requests application

This change introduces the core controller architecture for the application, establishing \ApplicationController\ with authentication helpers (\current\_user\, \ensure\_logged\_in\), locale management, and pagination restrictions. It adds specific controllers for key features: \DashboardsController\ for user preferences and account management, \ProjectsController\ for project search, claiming, and lifecycle management, \ContributionsController\ for handling pull requests and manual contributions, \GiftsController\ for the gifting workflow, and \EventsController\ for event management. It also includes controllers for static pages, user profiles, language-based filtering, and organization listings, along with \SessionsController\ for authentication and \UnsubscribesController\ for email management.

app/controllers · high confidence

Initial project scaffolding and configuration

The repository is initialized with a new Ruby on Rails application structure, including essential configuration files such as \.editorconfig\, \.gitignore\, \.rspec\, and \.rubocop.yml\. The project specifies Ruby version 4.0.5 and configures the Puma web server via a new \Procfile\. Development and deployment are supported by new \Dockerfile\ and \docker-compose.yml\ files, while contributor guidance is established through \AGENTS.md\, \CODE\_OF\_CONDUCT.md\, \CONTRIBUTING.md\, and \ISSUE\_TEMPLATE.md\. Additionally, legacy static assets like \index.html\ and \canvas-snow.js\ are removed in favor of the Rails application.

(repo-wide) · high confidence

Introduce Contribution model and auto-gifting logic

Users can now have pull requests automatically gifted to their December calendar if the PR body contains '24 pull request'. This is enabled by the new Contribution model, which handles pull request data from GitHub and triggers the Gift creation via an after\_create hook. The system also introduces AggregationFilter to manage contribution filtering and GiftFactory to handle gift instantiation, allowing for a more seamless 'gift' experience for eligible contributions.

ruby · high confidence

Introduce interactive map and geolocation for events

Events now display on an interactive map alongside their listings. On the index page, a map visualizes upcoming events with pins, while the show page features a map centered on the specific event's location. When creating or editing an event, users can select a position via a map picker, which automatically populates the event's latitude and longitude for accurate geolocation.

app/views/events · high confidence

Introduce project scoring, search, and gift-form models

This change adds four new model classes to the application: ScoreCalculator, which computes a project's quality and activity score based on repository metadata and GitHub API data; ProjectSearch, which enables filtering and paginated search of projects by language and label; GiftForm, which provides a form object for selecting contributions and dates for code gifts; and PullRequestDownloader, which handles fetching pull request events and user organizations from GitHub, including filtering for specific date ranges and ignoring automatic organizations.

app/models · high confidence

New admin controllers for project management and Dasher integration

Administrators now have dedicated controllers to manage projects and integrate with the Dasher service. The new Admin::ProjectsController allows admins to view, edit, and deactivate projects, with support for filtering by repository and pagination. Admins can update project details including description, name, main language, GitHub URL, homepage, and featured status. The new Admin::DasherController provides a real-time endpoint for receiving pull request data from GitHub, authenticated via an API key environment variable.

app/controllers/admin · high confidence

New email notification system for confirmation, reminders, and thanks

Users will now receive automated emails for account confirmation, periodic project suggestions (daily or weekly), and seasonal thank-you messages. The system introduces three new mailers—ConfirmationMailer, ReminderMailer, and ThankYouMailer—that send messages from '[e-mail redacted]'. Reminder emails include up to 8 randomly selected suggested projects, and all emails are categorized for tracking via X-SMTPAPI headers.

app/mailers · high confidence

New rake tasks for managing contributions, projects, and notifications

This change introduces a suite of new rake tasks organized into namespaces (users, organisations, projects, pull\_requests, emails) to manage the application's core data and user communications. Key capabilities include resetting and refreshing contribution counts for users and organisations, downloading and updating pull request data from GitHub, and handling project lifecycle states by checking for and reacting inactive projects based on their scores. Additionally, new tasks allow for sending daily emails and November reminders to users, while a helper module (JsonApi) supports paginated API fetching required by these background jobs.

lib/tasks · high confidence

Behavioural changes

Add meta information to the pull requests endpoint

The pull requests endpoint now includes pagination metadata (count and total pages) in its response. This is achieved by introducing a base decorator class that dynamically defines an attributes method, and a specific PullRequestsDecorator that exposes the count and total\_pages fields, along with helper methods for pagination.

app/decorators · high confidence

Added asset manifest configuration

A new manifest file has been added to configure the asset pipeline, explicitly linking the application's CSS and JavaScript bundles along with the images directory.

app/assets/config · high confidence

Admin projects interface migrated to ERB with pagination and homepage editing

The admin projects views have been converted from HAML to ERB templates. This update introduces pagination for the project list using Kaminari and adds a new 'homepage' field to the project editing form, allowing administrators to set a homepage URL for projects.

app/views/admin · high confidence

Dashboard views converted to ERB with new gift and account management features

The dashboard interface has been migrated from HAML to ERB templates, introducing several new user-facing capabilities. Users can now manage their account preferences, including email frequency, ignored organizations, and time zone settings, via a dedicated preferences page. A new account deletion flow allows users to confirm or cancel the removal of their account. The main dashboard view now displays contributions, pull requests, and suggested projects, with support for adding new contributions. Additionally, a new 'gifts' feature enables users to view, create, and manage gifts linked to their contributions, with forms for selecting dates and specific pull requests.

app/views/dashboards · high confidence

Database schema and seed data initialization

The application now includes a complete database schema definition (schema.rb) and a seed script (seeds.rb) for development and test environments. The schema defines tables for users, contributions (renamed from pull requests), projects, events, gifts, skills, and various organizational structures, including fields for social integration (Twitter, Gravatar), email preferences, and geographic data. The seed script populates these tables with synthetic test data using FactoryBot and Faker, ensuring a consistent baseline for local development and testing.

db · high confidence

Database schema evolution and migration updates

This update applies a comprehensive set of database migrations to the application's schema. It introduces new tables for organisations, events, skills, labels, and aggregation filters, while adding numerous columns to existing tables such as users (e.g., gravatar\_id, twitter tokens, profile fields, geolocation, time zone, unsubscribe token), projects (e.g., inactive status, featured flag, homepage, contributing URL), and pull requests (e.g., language, comments count, merged\_by\_id). Significant structural changes include renaming the 'pull\_requests' table to 'contributions' and updating associated foreign keys and counter caches, as well as changing the 'organiser' column in events to 'name' and expanding the event description from string to text. The migrations also handle data type conversions, such as changing user UIDs to integers and adding array support for ignored organisations.

db/migrate · high confidence

Extracted core GitHub integration and gift logic into dedicated service classes

The application now uses dedicated service classes in app/services to handle specific domains: AuthHash extracts user profile details (name, blog, location) from authentication hashes; GithubClient centralizes Octokit API calls with improved error handling for unauthorized or unavailable repositories; Downloader manages the synchronization of user organizations and pull requests, including auto-gifting logic; GiftFactory standardizes gift creation; Notification handles email delivery with better error logging; and RepoWithLabels fetches repository metadata and labels. This refactoring moves logic out of models and controllers into reusable, testable services.

app/services · high confidence

Initial Bootstrap 3 SCSS styling and component assets

The application's stylesheet architecture has been migrated to SCSS and integrated with Bootstrap 3, establishing a new visual baseline. This change introduces a centralized \application.scss\ manifest that imports modular styles for the site layout, user profiles, project contributions, and language filtering. It also adds specific UI components, including a responsive calendar view with gift-handling interactions, a 'scroll to top' button, custom checkbox skins, and a typeahead search interface, while defining a cohesive color palette and typography for the user interface.

app/assets/stylesheets · high confidence

Introduce ERB templates and new user profile views

The user-facing views in app/views/users have been converted from HAML to ERB, introducing new partials for contributions, calendars, and user avatars. This change adds dedicated pages for listing top maintainers (mergers) and managing project suggestions, while updating the main user profile to display contributions, merges, and a holiday calendar with support for editing non-pull-request contributions.

app/views/users · high confidence

Introduction of application, count, and project helper modules

The application now includes three new helper modules to centralize view logic. ApplicationHelper provides utilities for language handling (escaping and parameterizing), locale management, and a new Markdown rendering method using the Commonmarker 2.x API. CountHelper introduces methods to calculate counts for projects, contributions, and users, with support for filtering by language. ProjectHelper adds methods for determining project status, generating edit and view paths based on admin context, and retrieving avatar URLs.

app/helpers · high confidence

JavaScript assets restructured with new interactive features

The application's JavaScript manifest has been reorganized to explicitly require specific libraries including Bootstrap, Typeahead, iCheck, and Emojify, replacing the previous CoffeeScript-based structure. This change introduces several new user-facing capabilities: a 'scroll to top' button appears after scrolling down, project creation forms can now be autofilled from GitHub URLs, and event pages feature interactive maps with geolocation support and datetime pickers. Additionally, the projects listing page now supports infinite scrolling and improved filter interactions via iCheck, while pull request and dashboard views utilize timeago for relative timestamps.

app/assets/javascripts · high confidence

Migrate application views from HAML to ERB

The application's view templates in app/views/application and related directories have been converted from HAML to ERB syntax. This change updates the rendering engine for core UI components, including the header, footer, user navigation, and error pages, ensuring consistent template handling across the site.

app/views/application · high confidence

Migrate organisation views from HAML to ERB

The organisation listing, detail, and JSON rendering templates have been converted from HAML to ERB. This change updates the user interface for browsing organisations and viewing their members and contributions, including the addition of an infinite pagination feature for the organisation list and the use of Octicons helpers for pull request badges. JSON responses for organisations and their members are now generated using ERB-based Rabl templates.

app/views/organisations · high confidence

Migrate project views from HAML to ERB

The project listing, detail, and management interfaces have been converted from HAML to ERB templates. This change updates the rendering engine for project pages, including the project index with its label and language filters, the project show page (which now displays contributing URLs and contribulator scores), and the admin controls for editing, deactivating, and reactivating projects. The migration also includes the new project claim form and ensures consistent styling with Octicons and Bootstrap helpers across the project views.

app/views/projects · high confidence

New GitHub login page with CSRF protection

The login interface now features a dedicated view for GitHub authentication, displaying a prominent button that initiates the OAuth flow via the configured default provider. This change integrates the omniauth-rails\_csrf\_protection gem to ensure that the login form includes necessary CSRF protection tokens, enhancing security during the authentication process.

app/views/sessions · high confidence

New application layout with flash alerts and scroll-to-top

The application layout has been replaced with a new ERB template that includes a GitHub corner badge, conditional animated snow on the homepage, and a 'scroll to top' feature. Users will now see dismissible flash alerts (notices and alerts) with close buttons, and a specific alert prompting unconfirmed users to verify their email address.

app/views/layouts · high confidence

Rails 8 environment configuration files added

New environment configuration files for development, test, and production have been added to align with Rails 8 defaults. The development environment enables code reloading, server timing, and allows web console access from Vagrant hosts. The production environment enforces SSL, sets the log level to info by default, configures Postmark for email delivery, and integrates Google Analytics. The test environment disables eager loading to improve test suite performance and disables request forgery protection.

config/environments · high confidence

Rails 8.0 application configuration and routing setup

The application configuration has been updated to target Rails 8.0, setting the default configuration version to 8.0 in \config/application.rb\ and enabling the \bootsnap\ gem in \config/boot.rb\ to speed up boot time. The routing structure has been reorganized to reflect current features: the \languages\ resource now exposes nested \projects\, \pull\_requests\, and \users\ endpoints; \projects\ support \claim\ and \reactivate\ actions; and \contributions\ (backed by the \pull\_requests\ controller) expose a \meta\ endpoint. Additionally, the web server configuration has been switched to Puma in \config/puma.rb\, and the database configuration now uses environment variables for credentials with a production pool size of 20.

config · high confidence

Rails 8.0 upgrade scaffolding and security hardening

This change introduces the configuration files required for upgrading to Rails 8.0, including the \new\_framework\_defaults\_8\_0.rb\ initializer which prepares the app for new defaults like timezone preservation and stricter freshness checks. It also adds a \secret\_token.rb\ initializer that enforces the \SECRET\_TOKEN\ environment variable in production, removing the hardcoded fallback to improve security. Additionally, the update includes scaffolding for other framework versions (5.0, 5.2, 6.1) to ease future migrations, configures \Rack::Attack\ for rate limiting, sets up \Bugsnag\ for error tracking in production, and initializes \SimpleForm\ with Bootstrap 3 styling.

config/initializers · high confidence

Reminder emails now include suggested projects and plain-text support

The reminder email templates have been updated to display a list of suggested open-source projects for users to contribute to, including each project's name, main language, and description. This change also introduces plain-text versions of the daily, weekly, and November reminder emails to ensure compatibility with email clients that do not render HTML. Additionally, the sign-off section has been updated to direct users to Mastodon for social interaction and provides a direct link to unsubscribe from the emails.

_app/views/reminder\mailer · high confidence

Rename Pull Requests to Contributions and add non-PR support

The site has renamed the 'Pull Requests' concept to 'Contributions' across the user interface, including the index, show, and meta pages. This change introduces support for recording contributions that are not GitHub pull requests; users can now submit non-PR contributions via a new form that captures repository name, issue URL, body, and date. The contribution display templates now distinguish between pull requests and other contributions, rendering appropriate links and titles. Additionally, non-PR contributions can now be edited and destroyed by their authors, and the contribution body is rendered using Markdown formatting.

app/views/contributions · high confidence

Social sharing buttons now use ERB and include GitHub watch/fork widgets

The shared social buttons partial has been converted from HAML to ERB and now renders a Facebook Like button alongside GitHub watch and fork count iframes. This change updates the template format for the social sharing component and adds specific GitHub repository interaction metrics to the user interface.

app/views/shared · high confidence

Static pages migrated from HAML to ERB templates

The static site views (including the homepage, about, API documentation, contributing guide, and contributors list) have been converted from HAML syntax to standard ERB templates. This change aligns the view layer with the application's primary templating engine, ensuring consistency across the codebase and simplifying maintenance for developers familiar with ERB.

app/views/static · high confidence

Updated design assets with vectorized logos and print-ready files

The design folder now includes new vector source files for branding assets, specifically a print-ready PDF/AI logo for the 24pr initiative and a color EPS logo for DNSimple. These additions replace or supplement previous raster assets, providing scalable graphics for high-quality printing and web use.

design · high confidence

Test coverage

Added controller specs for core application features; Added mailer previews for reminder emails; Added mailer specs for confirmation, reminder, and thank-you emails; Added model specs for Calendar, Contribution, Event, Gift, Organisation, Project, and User; Added request specs for admin project management; Added request specs for core user and project workflows; Added test coverage for new service layer components; Added test support helpers for login, pull requests, and performance; Added tests for PullRequestsDecorator; Added tests for application and count helper methods; Initial RSpec test suite and test infrastructure setup.

Dependencies

2810 commits updating dependencies (2 manifests)

A dependency / build maintenance change in (dependencies) — 2810 commits (131 fixs), 2 files.

(dependencies) · high confidence · unverified

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 42 → 41 (-1.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 52 → 52 (+0.0)
  • Architecture 85 → 85 (+0.0)
  • Maturity 63 → 67 (+3.8)
  • Readiness 67 → 49 (-18.2)
  • Security 54 → 51 (-3.2)
  • Domain Modelling 43 → 43 (+0.0)
  • Accessibility 31 → 31 (+0.0)

Resolved (1)

  • Outdated: octicons_helper

New (2)

  • Outdated: dalli
  • Outdated: rabl

Changes since last survey

  • 12 commits — 11 feature/other, 1 fixes

By area

  • (root) — 8 commits
  • (repo) — 4 commits

Notable commits

  • fix: Fix README Ruby setup version
  • change: Add package.json to pin Node version for Heroku
  • change: Merge pull request #5106 from dajiaohuang/docs/readme-ruby-version
  • change: Merge pull request #5108 from dependabot/bundler/octicons-19.42.0
  • change: Merge pull request #5119 from 24pullrequests/dependabot/bundler/faraday-2.15.1
  • change: Merge pull request #5120 from 24pullrequests/dependabot/bundler/ferrum-0.20.1
  • change: Ruby 4.0.9
  • change: Update dependencies
  • change: Update dependencies
  • change: build(deps): bump faraday from 2.15.0 to 2.15.1
  • change: build(deps): bump octicons from 19.40.0 to 19.42.0
  • change: build(deps-dev): bump ferrum from 0.19.2 to 0.20.1

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

24pullrequests/24pullrequests was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 0fe66de1f097c569c46237a67d44f4f984ed2d4a — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.