{"id":26881827,"url":"https://github.com/process-analytics/surge.sh-pa-admin","last_synced_at":"2026-01-08T17:10:10.665Z","repository":{"id":180371076,"uuid":"664945059","full_name":"process-analytics/surge.sh-pa-admin","owner":"process-analytics","description":"Manage the surge.sh domains of the Process Analytics project","archived":false,"fork":false,"pushed_at":"2025-01-22T16:52:55.000Z","size":92,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-22T17:37:21.334Z","etag":null,"topics":["surge-sh"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/process-analytics.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T05:22:30.000Z","updated_at":"2024-09-04T09:25:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b529883-1016-4242-b0a7-9ab9d66c66ef","html_url":"https://github.com/process-analytics/surge.sh-pa-admin","commit_stats":null,"previous_names":["process-analytics/surge.sh-pa-admin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/process-analytics%2Fsurge.sh-pa-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/process-analytics%2Fsurge.sh-pa-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/process-analytics%2Fsurge.sh-pa-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/process-analytics%2Fsurge.sh-pa-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/process-analytics","download_url":"https://codeload.github.com/process-analytics/surge.sh-pa-admin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246493362,"owners_count":20786548,"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","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":["surge-sh"],"created_at":"2025-03-31T15:58:42.395Z","updated_at":"2026-01-08T17:10:10.619Z","avatar_url":"https://github.com/process-analytics.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# surge.sh-pa-admin\n\nManage the surge.sh domains of the Process Analytics project.\n\n## Available workflows\n\nWorkflows are used to manage surge.sh domains specific to the Process Analytics project.\n\n- [List all domains](.github/workflows/surge-list-domains.yml): get the list of all active domains\n- [Teardown a domain](.github/workflows/surge-teardown-domain.yml): delete a domain\n- [Teardown old domains](.github/workflows/surge-teardown-old-domains.yml): periodically delete domains older than one month (inactive PRs, domains not automatically closed when the PR is closed)\n\n\n## Patching the \"surge\" CLI\n\n`surge` is patched using [patch-package](https://www.npmjs.com/package/patch-package) to integrate bug fixes not available in a released version:\n- https://github.com/sintaxi/surge/issues/307 \"Surge List not working\" implementation from https://github.com/sintaxi/surge/pull/319 (opened in 2018-04-10)\n\nThe patch has been initiated and is updated by running `npx patch-package surge` to integrate local changes done in `node_modules/surge/lib` \n\nTo benefit from the patches, run the following commands from the root of this repository:\n- `npm install`\n- then run `npx surge ...`\n\n\n## Troubleshoot domains list errors\n\nBecause of [surge#307](https://github.com/sintaxi/surge/issues/307), the [surge-teardown-old-domains](./.github/workflows/surge-teardown-old-domains.yml) workflow may fail with the following error:\n```\n /home/runner/.npm/_npx/23158936acd5c32d/node_modules/surge/lib/middleware/list.js:44\n          project.timeAgoInWords.grey,\n                                 ^\nTypeError: Cannot read properties of undefined (reading 'grey')\n    at /home/runner/.npm/_npx/23158936acd5c32d/node_modules/surge/lib/middleware/list.js:44:34\n    at Array.forEach (\u003canonymous\u003e)\n```\n\nThe token may also be considered invalid by the [surge-preview-tools](https://github.com/bonitasoft/actions/tree/main/packages/surge-preview-tools) action for the same reason as it performs a `surge --list` to validate the token.\n\nIn this case, the patch can help\n- run the \"surge list\" command locally or with the [surge-list-domains](https://github.com/process-analytics/surge.sh-pa-admin/actions/workflows/surge-list-domains.yml) workflow\n- detect the domain with missing information. In the following example, the first domain has issue\n```\nRun npx surge --token *** list\n   process-analytics-process-analytics-dev-site_preview-pr-1038.surge.sh                    N/A           N/A     N/A        Standard \n   1688564549686 process-analytics-process-analytics-dev-site_preview-pr-1013.surge.sh      6 days ago    surge   surge.sh   Standard \n   1688562584180 process-analytics-bpmn-visualization-js-demo_preview-pr-2748.surge.sh      6 days ago    surge   surge.sh   Standard \n```\n- teardown the domains that cause issue\n- relaunch the previously failing commands. They should succeed now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprocess-analytics%2Fsurge.sh-pa-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprocess-analytics%2Fsurge.sh-pa-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprocess-analytics%2Fsurge.sh-pa-admin/lists"}