Skip to content

Formatters

Responses from the hosts and the formatters' output are cached for an hour, so changes show up within that time. The host's error messages, such as a missing permission, are shown in place of the value.

  • Link: the repository's path, such as drupal/drupal, linked to the repository. This is the default.
  • Repository file data: a value from a JSON or YAML file in the repository (.json, .lock, .yml or .yaml). Set the file's path, and the key to show, with nested keys separated by periods, such as require.php in composer.json. Optionally set a branch, tag or commit to read the file from, instead of the default branch. Shows nothing if the file doesn't exist.
  • Composer package version: the version of a package in the repository's composer.lock, such as drupal/core, from its packages or packages-dev list. Development versions also show their date from composer.lock. Like file data, it can read another branch, tag or commit.
  • Dependabot alerts (GitHub): the number of open Dependabot alerts, or "100+" for 100 or more.
  • Actions variables or secrets (GitHub): the names of the repository's GitHub Actions variables or secrets. Set a name to show "Yes" or "No" for whether the repository has it instead. Secrets' values are never read.

The GitHub formatters show "Not available for this repository's host" for repositories on GitLab. The field also works with core's text field formatters.