Manage GitHub from Apps Script Web App

63 views
Skip to first unread message

Alan Wells

unread,
Dec 14, 2019, 3:40:24 PM12/14/19
to Google Apps Script Community
I've created an Apps Script Web App that will perform GitHub requests. 
I have successfully:
  • Created a new Repo name with it
  • Deleted all files in a repo
  • Uploaded all new Apps Script files to an empty repo
  • Updated all existing files from an Apps Script file
  • Created a new file in a repo
  • Updated a single file
I have not pulled files from GitHub into an Apps Script file with it.  And It currently won't delete a repo.

The Web App uses the Apps Script API to access Apps Script files.  This web app gives you the opportunity to run code from your account that interacts with GitHub instead of using a published 3rd party app to manage your GitHub files.

If you find a bug, or want to contribute to a solution for the Web App, I will consider implementing contributions.  The code is published publicly on GitHub at:


And at:



Michael O'Shaughnessy

unread,
Dec 16, 2019, 9:11:47 PM12/16/19
to google-apps-sc...@googlegroups.com
Nice.  How is this different from Google Apps Script GitHub extension:

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/cbda0bef-bbcf-471c-832a-8dea387c03f7%40googlegroups.com.

Alan Wells

unread,
Dec 16, 2019, 9:38:21 PM12/16/19
to Google Apps Script Community
The Apps Script GitHub extension must be installed in the Chrome Web Browser, and the code is not open source as far as I know.  My app is a Web App, and the code is posted publicly.  The Chrome extension will run directly from the Apps Script code editor, but my web app will not.  If the Chrome extension breaks or doesn't work, you can't fix it because you don't have access to the code.  If you set up my Web App from your account, then it runs from your account, and you can debug it yourself.  The Apps Script GitHub extension has the option to interact with not only GitHub but with Github Enterprise, Bitbucket and GitLab.  My Web App can only access GitHub.  I don't plan on expanding my Web App, because I don't need or want to do the work at this point.  I wanted code that I could understand and control, and run from my account.  That's why I created the Web App.  I just wanted to be able to push some files to GitHub using my own app.  And I did have a problem with the Apps Script GitHub extension not working.  So, if you want to control and run the code from your account, and not be dependent upon a 3rd party app, then you could use my Web App.  That is, as long as you only need to access GitHub.
And if anyone wants to make improvements or add a feature, then I'm open to posting updates to the public repo.

On Monday, December 16, 2019 at 9:11:47 PM UTC-5, mro.michael wrote:
Nice.  How is this different from Google Apps Script GitHub extension:

On Sat, Dec 14, 2019 at 3:40 PM Alan Wells wrote:
I've created an Apps Script Web App that will perform GitHub requests. 
I have successfully:
  • Created a new Repo name with it
  • Deleted all files in a repo
  • Uploaded all new Apps Script files to an empty repo
  • Updated all existing files from an Apps Script file
  • Created a new file in a repo
  • Updated a single file
I have not pulled files from GitHub into an Apps Script file with it.  And It currently won't delete a repo.

The Web App uses the Apps Script API to access Apps Script files.  This web app gives you the opportunity to run code from your account that interacts with GitHub instead of using a published 3rd party app to manage your GitHub files.

If you find a bug, or want to contribute to a solution for the Web App, I will consider implementing contributions.  The code is published publicly on GitHub at:


And at:



--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.

Andrew Roberts

unread,
Dec 17, 2019, 6:52:49 AM12/17/19
to Google Apps Script Community

Alan Wells

unread,
Dec 17, 2019, 10:37:20 AM12/17/19
to Google Apps Script Community

ThumbsUp.png

Reply all
Reply to author
Forward
0 new messages