{"id":20670100,"url":"https://github.com/gitpod-io/template-dynamic-workspace-location-and-tasks","last_synced_at":"2025-08-02T18:07:15.769Z","repository":{"id":93128341,"uuid":"560000127","full_name":"gitpod-io/template-dynamic-workspace-location-and-tasks","owner":"gitpod-io","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-06T15:21:47.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T16:43:09.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitpod-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-31T14:36:53.000Z","updated_at":"2023-03-30T03:40:04.000Z","dependencies_parsed_at":"2023-05-06T10:17:08.405Z","dependency_job_id":null,"html_url":"https://github.com/gitpod-io/template-dynamic-workspace-location-and-tasks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"gitpod-io/template-selective-services","purl":"pkg:github/gitpod-io/template-dynamic-workspace-location-and-tasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitpod-io","download_url":"https://codeload.github.com/gitpod-io/template-dynamic-workspace-location-and-tasks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268431637,"owners_count":24249413,"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-02T02:00:12.353Z","response_time":74,"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-11-16T20:18:01.338Z","updated_at":"2025-08-02T18:07:15.727Z","avatar_url":"https://github.com/gitpod-io.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic workspace root and tasks based on subdirectory context\n\nDynamically change VSCode [workspaceLocation](https://www.gitpod.io/docs/references/gitpod-yml#workspacelocation) based on context.\n\nBrowse to one of the subdirectories on this repo and open a workspace from there. Or you can also click on a button below!\n\n- [![docs](https://shields.io/badge/style-docs-green?logo=gitpod\u0026style=for-the-badge\u0026label=Gitpod)](https://gitpod.io/#https://github.com/gitpod-io/template-dynamic-workspace-location/tree/main/docs)\n- [![examples](https://shields.io/badge/style-examples-green?logo=gitpod\u0026style=for-the-badge\u0026label=Gitpod)](https://gitpod.io/#https://github.com/gitpod-io/template-dynamic-workspace-location/tree/main/examples)\n- [![practice](https://shields.io/badge/style-practice-green?logo=gitpod\u0026style=for-the-badge\u0026label=Gitpod)](https://gitpod.io/#https://github.com/gitpod-io/template-dynamic-workspace-location/tree/main/practice)\n\n# Details\n\nA [.gitpod.yml](./.gitpod.yml) task is used to process `$GITPOD_WORKSPACE_CONTEXT_URL` variable. Later `code -r` command is used if a subdirectory was found on the CONTEXT_URL.\n\nWe can also run tasks conditionally based on the subdirectory context. (see the 2nd task in [.gitpod.yml](./.gitpod.yml) for example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitpod-io%2Ftemplate-dynamic-workspace-location-and-tasks/lists"}