web-id-fr/Forge Review-app Clean Action

Clean a review-application on Laravel Forge

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
forge_api_tokenLaravel Forge API keyyes
forge_organizationLaravel Forge organization slugyes
forge_server_idLaravel Forge server IDyes
root_domainRoot domain under which to create review-app siteno
hostSite host of the review-appno
prefix_with_pr_numberUse the pull-request number as host and database prefix when host is not manually definednotrue
fqdn_prefixPrefix the whole FQDN (e.g.: "app.")no
pr_numberManually define pull-request numberno
database_nameDatabase name of the review-app siteno
database_name_prefixDatabase name prefix, useful for PostgreSQL that does not support digits (PR number) for first chars
cleanup_orphansEnable "orphan cleanup" mode: ignore host/pr_number/database_name and discover+delete orphaned review-apps on the servernofalse
repositoryGitHub repository ("owner/repo") to check PR state against. Required if cleanup_orphans is true. Defaults to GITHUB_REPOSITORYno
github_tokenGitHub token used to check PR state (repos/{repository}/pulls/{pr}). Required if cleanup_orphans is trueno
host_patternERE regex (jq/grep -P compatible) used to identify review-app sites among all server sites. Defaults to a pattern derived from root_domainno
dry_runIf true, only log the orphans that would be deleted, without deleting anythingnofalse
namedescription
hostHost of the review-app (generated or forced one in inputs). Not used in cleanup_orphans mode
database_nameDatabase name of the review-app (generated or forced one in inputs). Not used in cleanup_orphans mode
orphans_foundNumber of orphaned review-apps detected (cleanup_orphans mode only)
orphans_deletedNumber of orphaned review-apps actually deleted (cleanup_orphans mode only, 0 if dry_run)
orphans_jsonJSON array of the orphaned sites processed (cleanup_orphans mode only)