3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Google Apps Script GitHub アシスタント導入時、[GitHub assistant] undefined エラーが出た時の対処法

Posted at

はじめに

  • GASのコードをGitHubのリポジトリで管理したいと思い Google Apps Script GitHub アシスタント と言うChrome拡張機能を導入した時にエラーが出たので、その対処法をまとめました。

Google Apps Script GitHub アシスタント の導入方法

[GitHub assistant] undefined エラーが出た時の対処法

1. Apps Scriptダッシュボードの設定をオンにする

image.png

これをオンにすることでエラーが消える場合もある。

2. GASの新バージョンのエディタを使っている場合、ログイン方法が異なる時は、以下の方法を試す。

通常ユーザー名とパスワードでログインするところ、GASで新しいバージョンのエディタを使うのであれば、ユーザー名とトークンでログインする必要がある。

まずはtokenを取得

  • Github Assistantのログイン画面にあるGithub Access Tokenをクリック(要Githubへのログイン)し、Generate New Tokenをクリックする。

スクリーンショット 2021-08-26 2.39.08.png

  • Noteにわかりやすい名前をつけて、repoおよび必要なアクセス権限にチェックを入れる

スクリーンショット 2021-08-26 2.42.27.png

  • Personal Access Tokenが出るのでコピーする

Github Assistantに戻り、自分のGitHubユーザー名と、取得したアクセストークンを入れてGithub Loginをクリック

スクリーンショット 2021-08-26 2.48.26.png

Google Apps Scriptの開発画面をリロードすると、読み込まれてRepository updatedが出るようになる

まとめ

以上2つの点を確認すべし。
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?