This project is not covered by Drupal’s security advisory policy.

Keep track of the Drupal sites you look after in one place: add each site's GitHub or GitLab repository, and see its Drupal and PHP versions and security alerts on a dashboard.

Git Field adds a field for a Git repository on GitHub or GitLab, including GitHub Enterprise and self-managed GitLab, and formatters that show data about the repository from its host: a value from a file in it, the version of a Composer package it uses, and, on GitHub, its open Dependabot alerts and its Actions variables or secrets. The included site dashboard recipe sets up the dashboard.

Features

  • A Repository widget where editors type owner/name, or just the name, for repositories on a set host.
  • Formatters for a link to the repository, a value from a JSON or YAML file, a Composer package's version, and, on GitHub, open Dependabot alerts and Actions variables or secrets.
  • A site dashboard recipe with a Site content type and a report of each site's PHP requirement, Drupal core version and open alerts.

Post-Installation

  1. Public repositories on github.com and gitlab.com work without any setup. For other hosts, private repositories, and GitHub's Dependabot alerts and Actions variables, add a read-only token for the host as a "Git host token" key at Configuration > System > Keys (/admin/config/system/keys). See Hosts and tokens.
  2. Add a "Git repository" field to a content type or other entity type. Values are saved as the repository's URL, such as https://github.com/drupal/drupal.
  3. Choose one of the formatters for the field in a display or a View.

Additional Requirements

This module requires the Git Host module, which reads from the hosts, and its dependency Key, which stores the tokens for each host.

Similar projects

Site Guardian, Vitals, Warden and Status Dashboard report each site's Drupal version, modules and available updates from the running site, to a dashboard on another site or service. Each monitored site runs one of their modules.

Git Field reads the sites' code repositories instead, so the sites need nothing installed, and sites that aren't deployed yet can be listed too. It shows what's committed to the repository, which may differ from what a site runs.

Supporting organizations: 
Development

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Developer tools
  • Created by dave reid on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases