Skip to content

Instantly share code, notes, and snippets.

@RobjS
RobjS / run.sh
Created May 31, 2024 15:21
A script to pin all plugins in existing Whippet apps to their latest major version
#!/usr/bin/env bash
# Get all app repos
repos=($(govpress repo list | jq '.Repos[]' -r))
# Generate the report file
touch report.txt
# For each, clone the repo and run whippet deps update
for repo in "${repos[@]}"; do
repo_name="[email protected]:$repo"
echo $repo_name
<?php
namespace Dxw\GovukTheme\Posts;
class Article
{
public function hasBannerAsFirstBlock(): bool
{
$firstBlockName = $this->getFirstBlockName();
$result = true;