GitHub/GitHub Enterprise/Bitbucket/GitLabでGASのインラインコードを管理
Google Apps ScriptのコードをGithub/Github Enterprise/Bitbucketで管理する。
[IMPORTANT] The new version requires Google OAuth to call Apps Script API, before the OAuth app be verified by Google, it only allow to grant 100 users' permission, if you encounter some errors said can not grant permission to the app, please wait for the verification process completed, sorry for the inconvenience!
If you can not wait, please try check out the code from https://github.com/leonhartX/gas-github and switch to v4.0.3, install the extension from source with "Load Unpacked" in the extension page, it can still work with the old IDE.
機能:
・Github-GAS間ののPush/Pull
・Gistに同期
・組み込みスクリプト(Spreadsheetなどに紐付いてるスクリプト)に対応
・GAS IDE上でGithubのレポジトリやブランチ、ファイルを作成
・Push/Pull時の差分表示
・対象ファイルを選択してPush/Pull
・Push時のコメント入力
・Github/Github Enterprise/Bitbucket/GitLabをサポート
・二段階認証対応
・Github上のディレクトリ構造対応(GASのファイル名にスラッシュを入れいることで)
・Github Organization、Bitbucket TeamとGitLab Groupsを対応
・GAS IDEのネイティブUI
注意:
・GASではGitのrevision情報を持ってないため、*Pull*の動作は本物のPullと違ってマージができない、単に最新のソースをfetchしてプロジェクトに上書きする。
Changelog 5.05
- migrate to manifest v3
Changelog 5.05
- remove gitlab.com permission, fix some gitlab issue by @Hell-K
Changelog 5.0.3
- remove unnecessary permission
Changelog 5.0.2
- fix ignore file error
Changelog 5.0.1
- improve log for new IDE
- change extension icon
Changelog 5.0.0
- [IMPORTANT] Use Google Apps Script API instead of internal RPC since it changed in new IDE, need to login with Google to work(currently the Google OAuth App is note verified yet, so there will be a warn page)
- Support new GAS IDE(old IDE is not supported anymore)
- Fix can not work with multi IDE tab in same browser
Changelog 4.0.7
- Fix GitHub deprecation notification for using token in query parameter
Changelog 4.0.6
- Use unicode icons
- Highlight current repo
Changelog 4.0.5
- Fix broken due to internal RPC update
Changelog 4.0.4
- Fix broken due to internal RPC update
Changelog 4.0.3
- Fix .gs pulled as .html
Changelog 4.0.2
- Remove support for hosted GitLab
Changelog 4.0.1
- Fix an undefined error when file not existed
Changelog 4.0.0
- Add support for GitLab (the addition permission requested is for GitLab)
Changelog 3.3.6
- Fix extension not work with AppsScript Color 1.0.1
Changelog 3.3.4
- Fix url issue in 3.3.3
Changelog 3.3.3
- Support corporate google apps account.
Changelog 3.3.2
- Fix push/pull not work with embedded script.
Changelog 3.3.1
- Fix GAS's PRC change.
Changelog 3.3.0
- Support manifest file with a new config item.
- Fix unexpected deletion when push to Github.
Changelog 3.2.2
- Fix bitbucket connection error when there's too many repo.
Changelog 3.2.1
- Bug fix.
Changelog 3.2.0
- Add ignore file pattern option.
Chaneglog 3.1.0
- Add an option to support change file type to sync(upload .gs file as .js).
Changelog 3.0.3
- Fix login github with email not work.
Changelog 3.0.2
- Fix dismiss link now work.
Changelog 3.0.1
- Add relogin warn.
Changelog 3.0.0
- Support bitbucket.org.
- Show repo's full name (with user/organization) in dropdown list.
- Support create repo under Github organization or Bitbucket team.
- Fix create new branch from current branch.
- Fix several minor bugs.
Changelog 2.0.5
- Bug fix.
Changelog 2.0.4
- Bug fix.
Changelog 2.0.3
- Add star option when login.
Changelog 2.0.2
- Fix delete files failed sometimes.
Changelog 2.0.1
- Support create private repo from extension.
Changelog 2.0.0
- Support file deleted and rename.
Changelog 1.0.1
- Support use access token to login.
Changelog 1.0.0
- Add Gist support. now you can sync your code to gist(public/secret).
- To use gist, you must re-login to create a new access token which has the gist permission, or manually add gist scope in your current github access token.
- Simple usage: select 'Using Gist' in repo dropdown list, and then select gist id in Gist dropdown list.
Changelog 0.1.9
- make error message more clearly when try to create branch in empty repo
Changelog 0.1.8
- change gwt call to newest version
Changelog 0.1.7
- fix minor bugs
Changelog 0.1.3
- change github scope to 'repo' to support private repo
Changelog 0.1.2
- fix bug: follow Github API's Link header to get all repos/branches
Latest reviews
- (2023-06-14) Anton Samartsev: Amazing extention. Just make please the pull Diff window wider, it's difficult to check the code.
- (2023-02-25) Dmytro Vinetskyi: Amazing. Was some problems on start, but then do creates repo and pushs.
- (2022-11-29) Jacob Robertson: This tool was amazing when it worked. I wish that someone could pick it back up and make it compatible again.
- (2022-10-07) MATHEUS ANTONIO NUNES DE OLIVEIRA: Simples de usar, e funciona perfeitamente!
- (2022-10-05) D W: Works flawlessly so far. Really provides essential functionaliy that should have been included into Google Apps Script from the start.
- (2022-07-15) Vincenzo: Nice idea but.... I get the following error in my console "[github assistant] TypeError: Cannot read properties of undefined (reading 'forEach')"
- (2022-07-08) Ian Crew: This plugin is completely broken, apparently has been for nearly a year. Attempting to use it just gives a "[github assistant] can not get oauth token, currently only support Chrome" error, and bug reports (gas-github on Github) about this as far back as February 2021 are unresolved.
- (2022-07-06) Manish Pareek: Code Saver! Thank you
- (2022-01-21) François: Lifesaver! Exactly what's missing in Google Apps Script.
- (2021-11-14) miki sakai: とても便利でありがたく使っていたのですが、久しぶりにGASの画面を開くと [github assistant] TypeError: Cannot read properties of undefined (reading 'forEach') とエラーが出てgithubに繋がりません。
- (2021-11-05) William Gillett: Such a great app. Works like a charm. So glad to have a repo for my google sheets scripts, I was amazed how well it works with bounded scripts.
- (2021-11-01) Vitaliy “bob” Chaikovskii: No words, it's just brilliant. This is the best way to use custom IDE
- (2021-09-24) Balaji Cherukuri: I coudln't make it work with bitbucke, we use Okta to login, it doesn't seem to provide an option to login with that.
- (2021-09-05) Yuki Fujisawa: 助かりました!
- (2021-07-19) 신인호: You've saved my time and effort! Thank you for steady update.
- (2021-06-08) shailesh sharma: Few days back it was working fine with bitbucket. We push all the code at bitbucket. Suddenly it stopped working with bitbucket. Unable to login. It throws error in the popup (Can not login, please check your username and password) and in console it throws below error Access to XMLHttpRequest at 'https://bitbucket.org/site/oauth2/access_token' from origin 'chrome-extension://lfjcgcmkmjjlieihflfhjopckgpelofo' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- (2021-06-03) Paul Cornwell: The best tool - can't believe how easy it is to use.
- (2021-05-15) Yagisanatode -Scott-: I have no idea why I didn't set this up sooner. So easy to set up and use. Thanks for all the work getting this deployed and updated for the new IDE.
- (2021-04-16) 中野亮太: 素晴らしい!が、最初が難しい。
- (2021-02-05) Doesn't seem to be working with the new editor?
- (2021-01-18) Darrel Francis: Google Apps Script does not allow ES modules, so I made use of the facility to break up code into lots of separate files, which all seem to be accessible to each other without a module system. Then I went crazy trying to keep backups of these files. I was totally amazed by this Chrome extension. Literally one click install, give it a Github token, and it magically pushes commits of ALL the ".gs" files in your project to a github repo. I literally don't believe this tool exists. I deny its existence, as it is too good to be true.
- (2021-01-06) ubiquitous snofinbiqn: Greatest extension ever
- (2020-11-24) Phill Jones: Extremely handy add-on that lets me install scripts into Google sheets and docs quickly and easily. One minor thing. The github authentication page has options to use your GitHub password or a key. The key option works, the password doesn't. It would also be handy to have some notes about which permissions the plugin needs associated with the key.
- (2020-10-06) Monero Jeanniton: It has a bit of inconsistency but I appreciate the effort. Very useful to me.
- (2020-09-17) Oscar Manrique: Really great and useful. Use it all the time to keep my projects up to date. Easy to setup and use, too.
- (2020-09-07) Marco Colombo: great!
- (2020-08-12) Alexander Sorokin: Extremely useful! Thanks a lot!
- (2020-07-21) Ali Cazi: Now it's possible to work with Google scripts. Thanks a lot.
- (2020-07-12) Dorine Ogake: l8t
- (2020-06-30) Chihiro Hikino: 素晴らしい! ですが複数プロジェクトを管理するときディレクトリが指定できず、1リポジトリ直下にたくさんファイルを入れることに… ものすごく便利なのにやむおえず別ツールを使うかも。 リポジトリの下のフォルダを指定できるとより最高です。
- (2020-01-04) Mike De Groot: This is everything I was looking for in life. Bless you, leonhartX.
- (2019-11-04) Davis Jones: It's simple and reliable. Great job!
- (2019-08-16) Simon Byrne: AMAZING! TAHNKS :)
- (2019-01-14) Jean-Guy Avelin: very good tool. Works well and allows you to put your code on github (private repo). Too bad it's not originally proposed by Google.
- (2018-12-15) Louis: Great app ! It will be better if there is a .gitignore, and can commit files with .html extensions for exemple.
- (2018-11-19) hirory: こんなに簡単にgitの恩恵を受けられるとは!最高です!
- (2018-11-16) Joel Balmer: So easy to setup, so clear how to use. Love it!
- (2018-11-10) Christopher Webster: I love this app.
- (2018-10-23) worked perfectly
- (2018-06-28) Panos: AMAZING!!
- (2018-06-18) sige matu: すごい 本当にすばらしい! Bitbucket利用ですが全く問題ありません。 ありがとうございます。
- (2018-06-12) Vincent H: Super tool, bravo et merci!
- (2018-04-22) Totally cool tool. Thank you very much for putting this together. Works like a charm with BitBucket.
- (2018-04-15) Shivaji Patil: waww
- (2018-04-02) Hernán de Soto: Amazing tool. Google should reward this user and implement it as a default in their IDE to be taken more serious. Also in their Github you can see that the developer is very active when bugs appears. Thank you!!
- (2018-03-07) どっかのげんちゃん。: 一回使い始めたら手放せません。 大変素晴らしいツールをありがとうございます。
- (2018-02-27) Jeff Ereau: Simple et puissant, on se demande comment on s'en est passé jusque là. Rend le dev Google Apps Script de plus en plus pro.
- (2018-02-11) Manoj Kumar Bhagat: nice
- (2018-01-31) Alan Wells: I'm using it to push/pull private repos to BitBucket. This tool has saved me a lot of work, and made my life easier.
- (2018-01-22) Asim Boruwa: This is exactly what I was looking for! Thank you!