leonhartx / gas-github Goto Github PK
View Code? Open in Web Editor NEWsync gas code to github
Home Page: https://chrome.google.com/webstore/detail/lfjcgcmkmjjlieihflfhjopckgpelofo
License: MIT License
sync gas code to github
Home Page: https://chrome.google.com/webstore/detail/lfjcgcmkmjjlieihflfhjopckgpelofo
License: MIT License
I could create the repo
I could create a new branch
But whenever I make changes on my .gs files via script.google.com and push, it says:
"Everything already up to date" though the files are not on github.
And whenever I push .gs files from another IDE to gihub, then try to pull it from script.google.com, it says:
"Nothing to pull" though the files are on github.
Repository drop down only shows 30 results. The github api paginates the results and puts that in the Link element of the header.
https://developer.github.com/v3/repos/#list-user-repositories
I have had several commits over the last few weeks with no issue. Now when I try to push I get a "reject is not defined" error. I have reinstalled, reconnected, rebooted and tried in a new repository with no success.
Add bitbucket support.
We have a couple of .gs files that should not be commited (dev variables and the like). I've noticed that pushing to the repo will ignore the .gitignore rules. Is that an issue with the github api?
When I pull a repo into an empty script project all of the files (.gs and .html) are pulled as .html.
I was able to push a Google Apps Script project with 26 files, .gs and .html, but when I try to pull them to a new project only 14 files are pulled. One of my files has almost 800 code lines, size 27.5 KB, the other files have less than 200 code lines, size less than 4 KB each.
Originally my project had four files on the "root folder" (file name without folder/
prefix) and the others on a folder named scripts
. I moved the files on scripts
to other folders and renamed the scripts
folder but still only 14 files where successfully pulled.
I pushed the missing Apps Script project files to a new GitLab projects and that way I was able to pull all the files into my project. To "fork" the Apps Script project is easier to make a copy of the "master" Apps Script project but to "merge" the changes into it I have to use several repos with a maximum of 14 files.
Is there something on my side to overcome the 14 files pull limit?
when opening multiple gas editor tabs, the extension's got strange behavior sometimes.
make an option to add github's token directly
When I make changes and put to master branch - message appears saying Everything already up-to-date. There seems to be an issue recognising the files. With one update it deleted them all from the remove repo.
I created a Personal access tokens by myself and pasted it to the field and click login. and nothing happen.
I tried pushing two different gs files to the same branch on the same repository. Each file had a different name, but the second file pushed overwrote the 1st file in the master branch, even though they are separate files.
Now the username is just get from input, since email is not a valid username(which used as a repo prefix), should use github api to retrieve the login username
After i login with bitbucket it results in an unknown error.
Console error:
GET https://api.bitbucket.org/2.0/repositories/?access_token=....&access_token=...&q=...&role=contributor&access_token=undefined 401 ()
I received this after the latest update:
@gulliveruk Could you remove this from the live version on the app store?
Line 63 in 4496d9b
Thanks
David
After clicking the "Login SCM" button, a new tab "chrome-extension://lfjcgcmkmjjlieihflfhjopckgpelofo/options/options.html" was opened and kept loading without any response.
I get a failure to pull in a new repository, which looks like it may be because the extension is trying to create a file called "blah..gs" instead of "blah.gs". See the attached screenshot.
This could potentially be related to me initially trying to sync the repo with no project name set (which didn't work) before I defined a name for the script project, which caused it to save, at which point the error changed to the one I'm filing as this issue.
I have a library with around 60 files, all with .gs extensions.
My initial push only pushed 26 to bitbucket.
Any further push or pull gave an already up to date message.
Changing the extension in options to '.js' and pushed again another 23 files were added, but I don't have any files with .js extensions?
Sadly because the lack of design skills for myself, it's hard to improve the currently ugly stuffs.
So I'll be very appreciate if anyone can design a better icon/promotion image for this extension ๐
I can't push or pull - it looks like it's using getFileContent which may be deprecated?
The error I get in debugging is:
//EX[2,1,["com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533","This application is out of date, please click the refresh button on your browser. ( Could not locate requested method \x27getFileContent(com.google.apps.maestro.server.frontend.common.shared.ProjectMetadata)\x27 in interface \x27com.google.apps.maestro.ide.shared.IdeService\x27 )"],0,7]
Any file rename in the IDE and then pushed is treated as a new file.
when the file is over 1MB, pull/push goes extremely slow
The plugin works when only working with one gs file. When I try to add a second one, it is pushes correctly. But when I make changes and push again, I get an error and it is not pushed. When I try to pull, the plugin wants to delete this file. When I delete it, I can push again, but then I run in the same problem.
From this I think the problem is: For some reason the plugin can not recognize more than one gs file in the repo.
I am using a GitLab Repo.
If any constituent file or folder is removed from the repository outside of the Google Apps Script IDE then the Pull request doesn't reflect this change in the IDE. If there are no other changes, it reports that all changes are synced or similar.
Everything already up-to-date
I am mainly using Google Cloud Source Repository as Git host for my projects. Using the git cli, I can do it very easily. But how can I do it with this extension to manage my Google Apps Script Project in Google Cloud Source Repository.
To do this, with git command, I just add the Repository URL and a token which is generated by oAuth.
These are the guides I usually follow.
https://cloud.google.com/source-repositories/docs/how-to
Hi there I get the following erro in my console when I load an existing App Script project:
Failed to load https://github.bus.zalan.do//api/v3/user/orgs?access_token=<TOKEN>: Redirect from 'https://github.bus.zalan.do//api/v3/user/orgs?access_token=<TOKEN>' to 'https://github.bus.zalan.do/login?return_to=https%3A%2F%2Fgithub.bus.zalan.do%2Fapi%2Fv3%2Fuser%2Forgs%3Faccess_token%3D<TOKEN>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-extension://lfjcgcmkmjjlieihflfhjopckgpelofo' is therefore not allowed access.
Is this due to our company's security settings?
I logged in to our Github Enterprise account using an access token that I generated from within Github
On select a repo and reload the page, I need to select the repo again. Also, on reopening an script, the repo doesn't have been saved in the cache.
At my company we have hundreds of repos, so the experience is annoying to look for the repo every time :/
My colleague does not have this issue. And I didn't have it 6 months ago, so I'm not sure what could be... Posting the issue to see if someone could help to find the problem.
This is an awesome tool. However, github private repos are a pay-to-play service. Bitbucket offers private repos free of charge so it would be beneficial to have this tool support bitbucket repos as well.
I have 4 files in a script, two of them called 'onOpen.gs' and 'onEdit.gs'. This 2 files are ignored by the assistant. Instead of finding the changes in this 2 files, it gets next changes:
I pushed the 2 files with the terminal. When pulling them from the IDE, assistant keep ignoring the existing files in the IDE and suggest me to add them as new. When accepting to add them as new, next error is thrown:
I've been using the assistant for a month, and it's a recurrent bug: ignoring some files and/or detecting diffs in an 'undefined' file.
Some libraries remove the .gs when updating to GitHub. Maybe it is easy to automatically put .gs behind them. Probably they choose .js to have GitHub format the file nicely.
github works, but bitbucket doesn't. I have reset my password and tried both email and username, no luck. Do I have to add any authorisation to my bitbucket account to make this work?
backgroud:
I am using G suite service which is offered by my company.
Recently whenever I push to my github repo, it deletes everything in the repo, mostly because gas-github does not detect anything in my gs editor.
Leon, your add-on helped me so much in the past and it would be really painful to live without it lol.
Let me know if there is a solution for this.
I've tried making the manifest file visible and doing a push, but it is ignored. Is it possible to push it or would this be a new feature?
Hi,
I may have same issue as this issue mentioned #58, I created new repo and pushed, it shows "Everything already up-to-date" and no code pushed when I verify on github.
I verified the known issues here https://github.com/leonhartX/gas-github#5known-issues, but my code file is not empty, while no function name is same as any file name, you have below screenshot with all functions' names and only one file.
Thanks in advance for your help.
Best,
I tried pushing my latest commit and it ended up removing all of my files from GitHub as if they were not there. Then, when I tried to pull from another branch, it tried to duplicate all files. Please fix.
This is someway similar to #51
Pushing a Google Apps Script project to gitlab.com with File type to sync .gs fails, no matter of the number of files on the project and the number on code lines on the files.
Steps to reproduce
A Push failed error message is shown. No files were pushed to gitlab.com
Workaround
A Push successful message is shown.
Hi,
first of all - thanks for this great extension ! :)
I have encountered a bug while pulling from a gist - after the "diff" screen I get an f() is not a function
error and the code does not update.
The faulty line is https://github.com/leonhartX/gas-github/blob/master/src/gas-api.js#L7
.
If there is no match (a file not ending in .gs or .html) return;
returns undefined and results in https://github.com/leonhartX/gas-github/blob/master/src/gas-api.js#L43
failing due to f() being undefined.
In my example I wanted to commit a .gitignore file and it didn't work.
I would suggesting either returning empty function or filtering the array to remove empty items to pull only compatible files and don't break on other. What do you think?
gitlab seems has api to create commit from the doc
Firstly, this extension is amazing!
However, I've found an issue when using it with a corporate Google Apps account - it gives the error
"get apps script code failed"
when I looked at the underlying javascript error it's
"Type name elision in RPC payloads is only supported if the RPC whitelist is used"
After digging, I believe it's caused by the extension not taking into account that whereas a standard base url would be
https://script.google.com/macros/d/${context.projectId}/gwt/
;
a corporate Google Apps base url would be
https://script.google.com/a/company.com/macros/d/${context.projectId}/gwt/
;
will make a pull request for my change which fixes this by using the value background.js retrieves vs the derived base url in gas-hub.js
What does it need to be available on Firefox?
If the steps are known and it's straightforward,
I could devote some time to do it.
nice plugin @leonhartX !
Using mixed case filenames in GAS project causes strange behavior when push and pull.
Hi LeonhartX. I've got v3.0.1 of your excellent extension installed. But now when I open the script editor I have a warning message at the top saying, "Extension has been updated, please relogin Dismiss." Clicking on the "Dismiss" link does nothing. It is dead. I do see that I'm not logged into Github any more in the editor so when I click the Assistant's button to "Login SCM," I get the following page:
lfjcgcmkmjjlieihflfhjopckgpelofo is blocked
Requests to the server have been blocked by an extension.
Try disabling your extensions.
ERR_BLOCKED_BY_CLIENT
I've logged out of Chrome. I've logged out of Github. I've logged out of Google. I've disabled, removed, and reinstalled the Assistant extension. No other extensions seem relevant but I've disabled them all. I've closed the browser entirely. Can you please help me figure out what I need to do to get back in? I think the fact that the warning's "Dismiss" link is dead might be a clue, but not for me. :-( Thx, - Jeff
On create a new branch from the assistant, it doesn't appear. In order to solve it, I need to reload the page several times until it appears... the experience is frustrating :(
Is there some way to do a manual sync with github?
PS: The manual sync would be also useful for outdated code in the assistant cache (i.e. It happened to me to create some wrong commits pushing my new code to a old cache version of the branch)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.