{"id":29047926,"url":"https://github.com/zapthedingbat/ask-glean","last_synced_at":"2025-06-26T17:34:31.786Z","repository":{"id":296144767,"uuid":"987096010","full_name":"zapthedingbat/ask-glean","owner":"zapthedingbat","description":"An automation tool for asking Glean","archived":false,"fork":false,"pushed_at":"2025-05-20T15:24:05.000Z","size":8,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T18:13:51.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zapthedingbat.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,"zenodo":null}},"created_at":"2025-05-20T15:09:09.000Z","updated_at":"2025-05-20T15:25:56.000Z","dependencies_parsed_at":"2025-06-03T01:32:05.041Z","dependency_job_id":null,"html_url":"https://github.com/zapthedingbat/ask-glean","commit_stats":null,"previous_names":["zapthedingbat/ask-glean"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zapthedingbat/ask-glean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapthedingbat%2Fask-glean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapthedingbat%2Fask-glean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapthedingbat%2Fask-glean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapthedingbat%2Fask-glean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zapthedingbat","download_url":"https://codeload.github.com/zapthedingbat/ask-glean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapthedingbat%2Fask-glean/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262113759,"owners_count":23261098,"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":[],"created_at":"2025-06-26T17:34:30.305Z","updated_at":"2025-06-26T17:34:31.776Z","avatar_url":"https://github.com/zapthedingbat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ask Glean\n\nAI and automation are all about driving efficiency, but sometimes using these tools can feel a little inefficient. This tool brings the efficiency of automation to AI by automating the process of logging in and asking questions so you can stay focused on the tasks that matter and be more efficient!\n\n## Running locally\n\nRun once to automate logging into Glean and asking a question.\n\n- Log into Glean\n- Grab the cookie named `azure-hosted-login-session-store`\n- Set this and your email in the environment variables or `.env` file\n- Run `main.js`\n\nIf you're using a .env file you'll need to require `dotenv/config` like so.\n```\nnode -r dotenv/config src/main.js\n```\n\n## Running in docker\n\nThere's a docker file that can be build and run the automation on a schedule (daily at 9:00 by default)\n\n- Log into Glean\n- Grab the cookie named `azure-hosted-login-session-store`\n- Set this and your email in environment variables GLEAN_EMAIL and GLEAN_COOKIE\n- (optionally) Set the `GLEAN_CRON`  environment variable to control the schedule. e.g `0 9 * * *`\n\nBuild the image:\n```\ndocker build -t ask-glean .\n```\n\nRun the docker container\n```\ndocker run -d --name ask-glean -e GLEAN_EMAIL=\"user.name@example.com\" -e GLEAN_COOKIE=\"AbCXzY123\" ask-glean\n```\nor with a .env file\n```\ndocker run -d --name ask-glean --env-file .env ask-glean\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapthedingbat%2Fask-glean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzapthedingbat%2Fask-glean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapthedingbat%2Fask-glean/lists"}