/**
 * Created by oleg on 08.07.15.
 */

@@ -1,40 +1,736 @@
-/**%0A * Created by oleg on 08.07.15.%0A */
+goog.provide('api.Bitbucket');%0Agoog.require('api.AbstractApi');%0Agoog.require('models.bitbucket.PullRequest');%0A%0A%0A/**%0A * @constructor%0A * @extends %7Bapi.AbstractApi%7D%0A */%0Aapi.Bitbucket = function() %7B%0A%09this._url = 'https://bitbucket.org/api/2.0/';%0A%09this._owner = 'interfaced';%0A%09this._repoSlug = 'persik.by'%0A%0A%7D;%0Agoog.inherits(api.Bitbucket, api.AbstractApi);%0A%0A%0A/**%0A * @return %7BIThenable%7D%0A */%0Aapi.Bitbucket.prototype.getPullRequests = function() %7B%0A%09var url = 'repositories/' + this._owner + '/' + this._repoSlug + '/pullrequests/?state=merged,open';%0A%09return this.request(url)%0A%09%09.then(function(response) %7B%0A%09%09%09var pulls = response%5B'values'%5D;%0A%09%09%09return pulls.map(function(pull) %7B%0A%09%09%09%09return new models.bitbucket.PullRequest(pull);%0A%09%09%09%7D);%0A%09%09%7D);%0A%7D;
 %0A

update bitbucket api