{"id":22504954,"url":"https://github.com/bcbi/cleanuppullrequestpreviews.jl","last_synced_at":"2026-03-19T23:02:24.804Z","repository":{"id":61797412,"uuid":"280548551","full_name":"bcbi/CleanUpPullRequestPreviews.jl","owner":"bcbi","description":"Automatically delete old pull request previews from Documenter, Franklin, etc.","archived":false,"fork":false,"pushed_at":"2020-07-22T00:08:42.000Z","size":111,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T23:23:24.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcbi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-18T00:06:20.000Z","updated_at":"2023-08-24T02:14:01.000Z","dependencies_parsed_at":"2022-10-21T11:00:53.939Z","dependency_job_id":null,"html_url":"https://github.com/bcbi/CleanUpPullRequestPreviews.jl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bcbi/CleanUpPullRequestPreviews.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FCleanUpPullRequestPreviews.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FCleanUpPullRequestPreviews.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FCleanUpPullRequestPreviews.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FCleanUpPullRequestPreviews.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcbi","download_url":"https://codeload.github.com/bcbi/CleanUpPullRequestPreviews.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FCleanUpPullRequestPreviews.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271643470,"owners_count":24795440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T00:12:12.363Z","updated_at":"2026-02-09T08:05:31.843Z","avatar_url":"https://github.com/bcbi.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CleanUpPullRequestPreviews\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://bcbi.github.io/CleanUpPullRequestPreviews.jl/stable)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://bcbi.github.io/CleanUpPullRequestPreviews.jl/dev)\n[![Build Status](https://github.com/bcbi/CleanUpPullRequestPreviews.jl/workflows/CI/badge.svg)](https://github.com/bcbi/CleanUpPullRequestPreviews.jl/actions)\n[![Coverage](https://codecov.io/gh/bcbi/CleanUpPullRequestPreviews.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/bcbi/CleanUpPullRequestPreviews.jl)\n\nCleanUpPullRequestPreviews automatically deletes old pull request previews from Documenter, Franklin, etc.\n\n## Example usage\n\n### Step 1:\n\nCreate a file named `.ci/Project.toml` with the following contents:\n```toml\n[deps]\nCleanUpPullRequestPreviews = \"06c59129-2005-40e8-8e6e-18d91e04568a\"\n```\n\n### Step 2:\n\nMake sure that you have a deploy key with write permissions on `JuliaHealth/juliahealth.github.io-previews`, and the private key for this deploy key is available as a secret named `FRANKLIN_PRIV_PREVIEW`.\n\nCreate a file named `.github/workflows/CleanUpPullRequestPreviews.yml` with the following contents:\n```yaml\nname: CleanUpPullRequestPreviews\n\non:\n  schedule:\n    - cron: '00 00 * * *' # run one time per day\n\njobs:\n  CleanUpPullRequestPreviews:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Install SSH Client (pull request previews)\n        uses: webfactory/ssh-agent@v0.2.0\n        with:\n          ssh-private-key: ${{ secrets.FRANKLIN_PRIV_PREVIEW }}\n      - run: julia --project=.ci/ -e 'using Pkg; Pkg.instantiate()'\n      - name: CleanUpPullRequestPreviews.remove_old_previews\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        run: julia -e 'using CleanUpPullRequestPreviews; CleanUpPullRequestPreviews.remove_old_previews(; repo_main = \"JuliaHealth/juliahealth.github.io\", repo_previews = \"git@github.com:JuliaHealth/juliahealth.github.io-previews.git\", repo_previews_branch = \"gh-pages\")'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcbi%2Fcleanuppullrequestpreviews.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcbi%2Fcleanuppullrequestpreviews.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcbi%2Fcleanuppullrequestpreviews.jl/lists"}