Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.0.5",
"version": "5.0.6",
"manifest_version": 2,
"default_locale": "en",
"name": "__MSG_appName__",
Expand Down
6 changes: 5 additions & 1 deletion src/gas-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ function initContext() {
context.gapiToken = item.gapiToken;
scm = createSCM(item);
context.bindRepo = item.bindRepo || {};
if (context.bindRepo[getId()].scm !== scm.name) {
delete context.bindRepo[getId()]
}
context.bindBranch = item.bindBranch || {};
context.bindType = item.bindType || {};
context.bindPattern = item.bindPattern || {};
Expand Down Expand Up @@ -298,7 +301,8 @@ function initPageEvent() {
const fullName = target.attr('data');
content = {
fullName: fullName,
gist: fullName === 'gist'
gist: fullName === 'gist',
scm: scm.name
}
label = fullName;
break;
Expand Down
3 changes: 2 additions & 1 deletion src/scm/bitbucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ class Bitbucket {
})
.then(response => {
const repo = {
fullName: response.full_name
fullName: response.full_name,
scm: this.name
};
Object.assign(context.bindRepo, {
[getId()]: repo
Expand Down
3 changes: 2 additions & 1 deletion src/scm/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ class Github {
})
.then(response => {
const repo = {
fullName: response.full_name
fullName: response.full_name,
scm: this.name
};
Object.assign(context.bindRepo, {
[getId()]: repo
Expand Down
3 changes: 2 additions & 1 deletion src/scm/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ class Gitlab {
.then(response => {
const repo = {
fullName: response.path_with_namespace,
id: response.id
id: response.id,
scm: this.name
};
Object.assign(context.bindRepo, {
[getId()]: repo
Expand Down