Skip to content

Commit

Permalink
Merge pull request #79 from leonhartX/revert-permission
Browse files Browse the repository at this point in the history
Revert permission
  • Loading branch information
leonhartX authored Apr 10, 2018
2 parents 6f8430d + 8da1bee commit c616a5c
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 21 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ This extension is a hack of the GAS IDE's internal RPC, so there's no guarantee
Install this extension from [chrome web store](https://chrome.google.com/webstore/detail/lfjcgcmkmjjlieihflfhjopckgpelofo).

# 2.Usage
After install, when you open GAS editor, a new button will appear to allow you to login to Github/Github Enterprise/Bitbucket.
After install, when you open GAS editor, a new button will appear to allow you to login to GitHub/GitHub Enterprise/Bitbucket/GitLab.

## 2.1.Login
Login to your Github/Github Enterprise/Bitbucket/Gitlab account, with Two-factor authentication support for Github/Github Enterprise.
Login to your GitHub/GitHub Enterprise/Bitbucket/GitLab account, with Two-factor authentication support for GitHub/GitHub Enterprise.
You can also use an existed token for GitHub/GitHub Enterprise/GitLab.

Actually, this is not a login action, but to create the `access token` which will be used for the extension
>Note: the access token will be stored in `chrome.storage.sync`(password will not be stored), if you take this as a security hole, pleast **DO NOT** use this extension.
Expand All @@ -38,7 +39,7 @@ In `Repo` and `Branch` dropdown list, there is an option to Create new Repo and
New Repo will be created with an init, with a default README.md.

### 2.3.2.Pull and Push
The **PULL/PUSH** is not actually the same as Github/Bitbucket's **PULL/PUSH**, because GAS project does not have any git info, so what we can do is limited.
The **PULL/PUSH** is not actually the same as GitHub/Bitbucket's **PULL/PUSH**, because GAS project does not have any git info, so what we can do is limited.

The differences are:

Expand All @@ -65,7 +66,7 @@ but you will need to delete the token or revoke Bitbucket's oauth yourself from

# 3.Features

- Manage code with Github, Github Enterprise, Bitbucket and Gitlab
- Manage code with GitHub, GitHub Enterprise, Bitbucket and GitLab
- Support embedded scripts
- Push/Pull code between SCM and GAS
- Sync code to public/secret Gist
Expand All @@ -74,9 +75,9 @@ but you will need to delete the token or revoke Bitbucket's oauth yourself from
- Choose files to pull/push
- Support file changed/added/deleted/renamed
- Add Commit comment when push
- Support two-factor authentication(Github, Github Enterprise only)
- Support two-factor authentication(GitHub, GitHub Enterprise only)
- Work with directory(with slash in filename)
- Support Github Organizations, Bitbucket Teams and Gitlab Groups.
- Support GitHub Organizations, Bitbucket Teams and GitLab Groups.
- Google Apps Script native ui
- Option to change filetype from `.gs` to `.js` when uploading to SCM
- Option to add ignore file pattern.
Expand All @@ -87,6 +88,6 @@ please create an issue for any question or bug report.
# 5.Known issues

- `.gs` file which contains a function with the same name as the file will not work [#18](https://github.com/leonhartX/gas-github/issues/18). (limited by GAS'S RPC)
- Can not push to a blank repo without a init commit. (limited by Github API)
- Can not push to a blank repo without a init commit. (limited by GitHub API)

PS: There is a similar [extension](https://github.com/leonhartX/lambda-github) for sync your AWS lambda code.
2 changes: 1 addition & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"appName": {
"message": "Google Apps Script Github Assistant"
"message": "Google Apps Script GitHub Assistant"
},
"appDesc": {
"message": "Manage your gas code with github/github enterprise/bitbucket/gitlab"
Expand Down
2 changes: 1 addition & 1 deletion _locales/fr/messages.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"appName": {
"message": "Google Apps Script Github Assistant"
"message": "Google Apps Script GitHub Assistant"
},
"appDesc": {
"message": "Administrez votre code gas avec github/github enterprise/bitbucket/gitlab"
Expand Down
4 changes: 2 additions & 2 deletions _locales/ja/messages.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"appName": {
"message": "Google Apps Script Github アシスタント"
"message": "Google Apps Script GitHub アシスタント"
},
"appDesc": {
"message": "Github/Github Enterprise/Bitbucket/gitlabでGASのインラインコードを管理"
"message": "GitHub/GitHub Enterprise/Bitbucket/GitLabでGASのインラインコードを管理"
}
}
8 changes: 8 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"appName": {
"message": "Google Apps Script GitHub помощник"
},
"appDesc": {
"message": "Управляйте своим кодом gas чререз GitHub/или GitHub для предприятий/Bitbucket/GitLab"
}
}
8 changes: 0 additions & 8 deletions _locales/ru_RU/messages.json

This file was deleted.

4 changes: 2 additions & 2 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"appName": {
"message": "Google Apps Script Github 助手"
"message": "Google Apps Script GitHub 助手"
},
"appDesc": {
"message": "使用Github/Github Enterprise/Bitbucket/gitlab管理GAS的inline代码"
"message": "使用GitHub/GitHub Enterprise/Bitbucket/GitLab管理GAS的inline代码"
}
}

0 comments on commit c616a5c

Please sign in to comment.