{"version":"1.0","type":"rich","title":"Copying Heroku Resources Through Pipeline","description":"This example shows a bash script that automates copying Heroku resources between pipeline environments during a review app deployment. It detects whether the app is a review app using the `HEROKU_PR_NUMBER` environment variable, then resets and copies the PostgreSQL database from a staging app using `heroku pg:reset` and `heroku pg:copy`, parsing the `DATABASE_URL` with `IFS` and array splitting to extract the database name. It also fetches the Cloudinary URL from production via `heroku config:get`, sets it with Drush `state:set`, runs `drush cim` to import config changes, clears cache with `drush cr`, and triggers a test run via `curl`. The script uses bash string operations and Heroku CLI commands rather than a visualization library.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-540e2e910939a2f9cef1e28766bb597b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}