{"id":26883804,"url":"https://github.com/jiro4989/google-apps-script","last_synced_at":"2026-05-05T07:32:50.910Z","repository":{"id":54642108,"uuid":"336351544","full_name":"jiro4989/google-apps-script","owner":"jiro4989","description":"次郎のGoogleAppsScript置き場。自動デプロイまでしてくれる","archived":false,"fork":false,"pushed_at":"2021-02-06T17:20:09.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T17:51:13.186Z","etag":null,"topics":["clasp","github-actions","google-apps-script","javascript"],"latest_commit_sha":null,"homepage":"","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/jiro4989.png","metadata":{"files":{"readme":"README.adoc","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}},"created_at":"2021-02-05T18:08:48.000Z","updated_at":"2021-02-06T17:20:12.000Z","dependencies_parsed_at":"2022-08-13T22:31:19.376Z","dependency_job_id":null,"html_url":"https://github.com/jiro4989/google-apps-script","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jiro4989/google-apps-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgoogle-apps-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgoogle-apps-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgoogle-apps-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgoogle-apps-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/google-apps-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgoogle-apps-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["clasp","github-actions","google-apps-script","javascript"],"created_at":"2025-03-31T17:37:14.812Z","updated_at":"2026-05-05T07:32:50.895Z","avatar_url":"https://github.com/jiro4989.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= google-apps-script\n:toc: left\n\n次郎のGoogleAppsScript (以降GAS)置き場。\n\n== 前提条件\n\n開発のために以下のツールを使用します\n\n- node.js\n- npm\n\nGASを操作するために以下のツールをCIから使用しています。\nこれは `git push` されたときに自動でGASにデプロイするために使用していま\nす。開発者がプログラムの実装・修正する時には不要です。\n\nhttps://github.com/google/clasp\n\n== claspの環境構築\n\nCIで自動的にGASに反映される環境が整っているため、ほとんどの場合この手順\nは実施不要です。いろんな理由でGASからローカルにスクリプトを落としてきた\nくなる場合があるため `clasp clone` を実行できるようにするまでの手順を示します。\n\n以下のコマンドで `clasp` のインストールとログインを実施します。\n\n[source,bash]\nsudo npm i -g @google/clasp\nclasp login --no-localhost\n\n以下のコマンドで、GASのプロジェクトをローカルに同期してpush可能にします。\n\n[source,bash]\nclasp list # スクリプトIDを確認\nclasp clone {スクリプトID}\n\nローカルでファイルを変更して、 `git push` し終えたら、以下のコマンドでGASにも\n`push` 可能です。ただし、このpush操作はCIから自動で行われるため、手動で実施する\nことは不要です。\n\n[source,bash]\nclasp push\n\n== 開発\n\n- 実際に動作させるスクリプト、アプリケーションは `src` 直下に配置します\n- `src` から参照されるライブラリ関数群は `src/libs` 配下に配置します\n- ファイルをまたがって参照される変数は `src/variables.js` に追加します\n- ファイル内に閉じて使用される変数は変数名プレフィックスにファイル名を付与します\n- 関数名プレフィックスにファイル名を付与します\n\n== デプロイ\n\nGASのデプロイはGitHub Actionsで自動で実施されます。\nCIの `test` フェーズがパスしたらそのままGASがにデプロイされます。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fgoogle-apps-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fgoogle-apps-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fgoogle-apps-script/lists"}