{"id":13528339,"url":"https://github.com/mooyoul/google-sites-slack-notification","last_synced_at":"2025-04-13T00:15:54.914Z","repository":{"id":37037087,"uuid":"163694997","full_name":"mooyoul/google-sites-slack-notification","owner":"mooyoul","description":"Receive Slack notification when Google Sites has updated.","archived":false,"fork":false,"pushed_at":"2025-03-28T17:28:05.000Z","size":5516,"stargazers_count":8,"open_issues_count":21,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T00:15:48.513Z","etag":null,"topics":["google-sites","gsuite","serverless"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mooyoul.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":"2018-12-31T20:11:13.000Z","updated_at":"2025-02-05T06:45:01.000Z","dependencies_parsed_at":"2025-01-09T14:26:27.722Z","dependency_job_id":"eedd768d-c4ec-42cf-a495-3defa8d2e9c4","html_url":"https://github.com/mooyoul/google-sites-slack-notification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fgoogle-sites-slack-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fgoogle-sites-slack-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fgoogle-sites-slack-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fgoogle-sites-slack-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooyoul","download_url":"https://codeload.github.com/mooyoul/google-sites-slack-notification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647273,"owners_count":21139086,"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":["google-sites","gsuite","serverless"],"created_at":"2024-08-01T06:02:26.524Z","updated_at":"2025-04-13T00:15:54.881Z","avatar_url":"https://github.com/mooyoul.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# google-sites-slack-notification\n\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n\n\n![demo](https://raw.githubusercontent.com/mooyoul/google-sites-slack-notification/master/docs/google-sites-slack-notification.gif)\n\n\nReceive Slack notification when Google Sites has updated.\n\nThis service also supports Service Account, including G Suite domain-wide authority delegation to access private site.\n\n## Limitation\n\nCurrently this service only supports **[Classic Google Sites](https://gsuiteupdates.googleblog.com/2016/11/a-totally-rebuilt-google-sitesnow.html)**, since Google Sites Data API does not support [rebuilt Google Site](https://blog.google/products/g-suite/totally-rebuilt-sites-customer-tested/).\n\nSee also: [Google Developers - Google Sites API](https://developers.google.com/sites/)   \n\n## Configuration\n\nPlease refer [src/config.ts](src/config.ts).\n\n## Deploying service\n\nThere's two kinds of service deployment type.\n\n### Serverless deployment (Preferred)\n\n\u003e **NOTE**\n\u003e - Currently Serverless deployment only supports AWS Lambda environment.\n\u003e - Serverless deployment only supports DynamoDB state store.\n\u003e - Preconfigured sync interval is 5 minutes. you can change this by editing cron expression on serverless.yml\n\n[Serverless](https://serverless.com/framework/docs/providers/aws/guide/quick-start/) deployment is preferred since this method does not require additional service management.\n\n\n```bash\n$ git clone https://github.com/mooyoul/google-sites-slack-notification\n$ cd google-sites-slack-notification\n$ vi src/config.ts # Setup target Google site and DynamoDB Store\n$ npm run dynamodb:migrate\n$ npm run deploy:prod \n```\n\nThat's it!\n\n### old-fashioned deployment\n\n```bash\n$ git clone https://github.com/mooyoul/google-sites-slack-notification\n$ cd google-sites-slack-notification\n$ vi src/config.ts # Setup target Google site and Store (FileStore or DynamoDB)\n$ npm start # Execute sync task to test configuration \n```\n\nIf sync task was successfully done, add sync task to crontab:\n\n```bash\n$ crontab -e\n``` \n\nand add rule:\n\n```\n0/5 * * * * cd PROJECT_ROOT \u0026\u0026 flock -xn /tmp/.google-sites-sync.lock -c npm start\n```\n\n## License\n\n[MIT](LICENSE)\n\nSee full license on [mooyoul.mit-license.org](http://mooyoul.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooyoul%2Fgoogle-sites-slack-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooyoul%2Fgoogle-sites-slack-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooyoul%2Fgoogle-sites-slack-notification/lists"}