Skip to content

Commit

Permalink
Merge pull request #18 from gion/dev
Browse files Browse the repository at this point in the history
0.1.6
  • Loading branch information
gion committed Aug 13, 2015
2 parents de5f096 + 5c4ffb3 commit fb640ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ It may be easier to think of this extension as if they were 3 components:
- the part that communicates with the Codeship api
- the part that interacts with the Bitbucket pages

The extension was built using [yeoman](http://yeoman.io) and the [chrome extension kickstarter generator](https://github.com/yeoman/generator-chrome-extension).
The extension was built using [yeoman](http://yeoman.io) and the [chrome extension kickstarter generator](https://github.com/HaNdTriX/generator-chrome-extension-kickstart) (thanks @HaNdTriX for it!).
Having a [Codeship Api Key](https://codeship.com/documentation/integrations/api/#get-a-api-key) makes it easy to do simple queries to collect data about Codeship projects and builds.
The extension itself runs (although it seems to be active all the time) only on Bitbucket pull request pages and asks Codeship for the user's project list. If the Bitbucket project that the extension runs on is in the project list, then (after *scraping* :( the pull request branch) BitShip gets the Codeship build status for the pull request.
The next step is some kind of css voodoo magic that adds a class to the root node of the page. Based on that class, the pull request page UI is modified so it reveals the Codeship badge with a status message:
Expand Down
8 changes: 4 additions & 4 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "__MSG_appShortName__",
"version": "0.1.5",
"version": "0.1.6",
"manifest_version": 2,
"description": "__MSG_appDescription__",
"icons": {
Expand Down Expand Up @@ -32,8 +32,8 @@
"content_scripts": [
{
"matches": [
"http://bitbucket.org/*pull-request/*",
"https://bitbucket.org/*pull-request/*"
"http://bitbucket.org/*pull-requests/*/*",
"https://bitbucket.org/*pull-requests/*/*"
],
"css": [
"styles/content.css"
Expand All @@ -52,4 +52,4 @@
"storage"
],
"content_security_policy": "script-src 'self' https://*.googleapis.com; https://*.cloudflare.com; object-src 'self'"
}
}

0 comments on commit fb640ee

Please sign in to comment.