Skip to content

Commit de5f096

Browse files
committed
Merge pull request #9 from gion/dev
hardcoded UUID bugfix
2 parents 79c83e2 + 504a3b1 commit de5f096

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

app/_locales/en/messages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"appName": {
3-
"message": "bitbucket-codeship",
3+
"message": "BitShip",
44
"description": "The name of the application"
55
},
66
"appShortName": {
7-
"message": "bitShip",
7+
"message": "BitShip",
88
"description": "The short_name (maximum of 12 characters recommended) is a short version of the app's name."
99
},
1010
"appDescription": {
11-
"message": "A chrome extension that hooks into the bitbucket pull request page and modifies the UI according to the codeship build status for that specific commit",
11+
"message": "A chrome extension updates the bitbucket pull request page UI according to the codeship build status",
1212
"description": "The description of the application"
1313
}
1414
}

app/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "__MSG_appName__",
33
"short_name": "__MSG_appShortName__",
4-
"version": "0.1.4",
4+
"version": "0.1.5",
55
"manifest_version": 2,
66
"description": "__MSG_appDescription__",
77
"icons": {
@@ -20,7 +20,7 @@
2020
"38": "images/icon-38.png",
2121
"128": "images/icon-128.png"
2222
},
23-
"default_title": "bitbucket-codeship",
23+
"default_title": "BitShip",
2424
"default_popup": "html/popup.html"
2525
},
2626
"options_page": "html/options.html",

app/scripts/api.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var api = (function() {
7575
container = document.createElement('a'),
7676
message = document.createElement('span'),
7777
statusImg = document.createElement('img'),
78-
codeshipUUID = 'c8787840-06ba-0133-1ccd-2aa9a23a545f',
78+
codeshipUUID = api.selectedProject.uuid,
7979
branchName = api.getBranchName(),
8080
imgUrl = 'https://codeship.com/projects/'+ codeshipUUID +'/status?branch=' + branchName;
8181

@@ -124,7 +124,15 @@ var api = (function() {
124124

125125
api.projects
126126
.filter(api.isEnabledForProject)
127-
.forEach(function(project) {
127+
.forEach(function(project, i) {
128+
// execute only for the first project if there are many that have passed the filter
129+
// :-? (may prevent some bugs on forked repos?)
130+
if(i > 0) {
131+
return;
132+
}
133+
134+
api.selectedProject = project;
135+
128136
api.getBuildStatus(project)
129137
.done(api.updateUI);
130138
});

tasks/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gulp.task('package', function() {
66
var manifest = require('../app/manifest.json');
77

88
return gulp.src('dist/**/*')
9-
.pipe(zip('bitbucket-codeship-' + manifest.version + '.zip'))
9+
.pipe(zip('bitship-' + manifest.version + '.zip'))
1010
.pipe(gulp.dest('packages'));
1111

1212
});

0 commit comments

Comments
 (0)