6 secrets Bitbucket
One of the principles of design in Atlassian — conciseness. During the evolution of UX, some unpopular actions that are suited to experienced users, were hidden in drop-down lists, or shortcuts. There they await the adventurous user who accidentally stumble upon them through random keyboard strokes or mouse-click (well, or look in the manual). Here are six of my favorite tricks Bitbucket Cloud, which you may never have heard:
the
Omnibar in Bitbucket is a string of quick access to actions like ⇧⇧ in development environments JetBrains or ⌘+P in Sublime Text. Start omnibar on any page, pressing the point.
By default, it will show a set of actions corresponding to current context:

As you begin to enter characters, it will search the named repositories that belong to you or your team:

And headers task and pull requests — for all your repositories:

And even files in the current repository by their name:

By the way, in addition to the Bitbucket if you use JIRA, try to press the point, next time you see there any problem.
the
Key
the
The modifier keys vary depending on browser and operating system, the listed relevant to Chrome on OS X, so use the list of shortcut (⇧+?) in your browser to check them.

the
Even if you already use snippets in Bitbucket to share code, you may not know that with their help it is possible to share other types of files. Simply drag and drop any file into the snippet.

It can be an image, video, and even compiled code! The size of the file should not exceed 10 MB. There are also handy console command to download file:

Page Downloads in the repository allows you to download the files with its code in a state in which it was at the time a particular commit. The archive can be

Used links this page URL look like this:
Here is the format of this link:
In fact, you can replace
Moreover, you can use the links to the parent commits, so you can refer to the second progenitor of current branch
This can be quite convenient for the needs of Continuous Integration and Continuous Delivery, when it is necessary to download an image repository at the time of a particular commit. Git supports a lot of ways to identify a commit, and in addition, this method also works with Mercuruial!
the
In June, we launched the framework Bitbucket Connect, allowing you to extend the user interface of Bitbucket. Perhaps you already use some sort of third-party utilities that integrate with Bitbucket using this framework. However, with Bitbucket Connect, you can change your own Bitbucket.
For example, this JSON is a separate extension for Bitbucket Connect:
the
After installation in Bitbucket pages of commits will show the link Download as ZIP — it will use the above resource

This addon I put in the form of a snippet, and install it yourself, you can use this link.
You can use this method to add links in your repository, visualize your code or to implement completely new features based on Bitbucket. The framework is documentation and a half-hour video lesson.
the
If you've read up to here, you probably love all the new. If so, go to settings Bitbucket and select Manage features in the left menu to enable pre-release features. By the way, right now you'll find improved list of pull requests!

From time to time look into the settings again, since the Bitbucket team often puts the teaser and the beta version before the official release.
the
Thank you for reading! If you want to share your tricks in Bitbucket, or if you have a cool idea for the expansion, leave a comment here or write to Tim @kannonboy on Twitter.
I will gladly answer questions about these and other features of Bitbucket. I hope some of these tricks will be useful for you.
The author of the original article — Tim Pettersen, participated in the development of JIRA, FishEye/Crucible and Stash. Since the beginning of 2013 he talks about the development process, git, continuous integration and continuous delivery (continuous integration/deployment) and tools Atlassian for developers, especially on Bitbucket. Tim regularly publishes notes about these and other things on Twitter under the pseudonym @kannonboy.
Article based on information from habrahabr.ru
the
Omnibar
Omnibar in Bitbucket is a string of quick access to actions like ⇧⇧ in development environments JetBrains or ⌘+P in Sublime Text. Start omnibar on any page, pressing the point.
By default, it will show a set of actions corresponding to current context:

As you begin to enter characters, it will search the named repositories that belong to you or your team:

And headers task and pull requests — for all your repositories:

And even files in the current repository by their name:

By the way, in addition to the Bitbucket if you use JIRA, try to press the point, next time you see there any problem.
the
Hot keys
Key
.
to call omnibar is just one hot. Using ⇧+? on any page, you can see the list of context-sensitive keyboard shortcuts. Here are some of those in the Bitbucket team use every day:the
-
the
- / — put the cursor in the search bar
- ⌃+⏎ to post a new comment
[ — collapse/expand side menu the
The modifier keys vary depending on browser and operating system, the listed relevant to Chrome on OS X, so use the list of shortcut (⇧+?) in your browser to check them.

the
Binary snippets
Even if you already use snippets in Bitbucket to share code, you may not know that with their help it is possible to share other types of files. Simply drag and drop any file into the snippet.

It can be an image, video, and even compiled code! The size of the file should not exceed 10 MB. There are also handy console command to download file:

Zip
or tar
commit every
Page Downloads in the repository allows you to download the files with its code in a state in which it was at the time a particular commit. The archive can be
zip
, tar.gz
or tar.bz2
:
Used links this page URL look like this:
bitbucket.org/atlassian/atlassian-connect-express/get/v1.0.4.zip
Here is the format of this link:
bitbucket.org/<repo_owner>/<repo_name>/get/<revision>.<zip|tar.gz|tar.bz2>
In fact, you can replace
<revision>
is any unique identifier of the commit. For example, putting it short SHA-1 hash: bitbucket.org/.../get/badc0de.zip
Moreover, you can use the links to the parent commits, so you can refer to the second progenitor of current branch
master
: bitbucket.org/.../get/master^2~2.zip
This can be quite convenient for the needs of Continuous Integration and Continuous Delivery, when it is necessary to download an image repository at the time of a particular commit. Git supports a lot of ways to identify a commit, and in addition, this method also works with Mercuruial!
the
configuring the interface
In June, we launched the framework Bitbucket Connect, allowing you to extend the user interface of Bitbucket. Perhaps you already use some sort of third-party utilities that integrate with Bitbucket using this framework. However, with Bitbucket Connect, you can change your own Bitbucket.
For example, this JSON is a separate extension for Bitbucket Connect:
the
{
"key": "download-commit-as-zip",
"name": "Download commit as ZIP",
"description": "Adds a \"Download as ZIP\" link to the commits page on Bitbucket",
"baseUrl": "https://bitbucket.org",
"modules": {
"webItems": [{
"key": "download-link",
"url": "https://bitbucket.org/{repo_path}/get/{commit_hash}.zip"
"name": {
"value": "Download as ZIP"
},
"location": "org.bitbucket.commit.summary.actions",
"params": {
"auiIcon": "aui-iconfont-down"
}
}],
"oauthConsumer": {
"clientId": "WaLh6mhKdRUDpVcXAH"
}
},
"scopes": ["team"],
"contexts": ["personal"]
}
After installation in Bitbucket pages of commits will show the link Download as ZIP — it will use the above resource
/get/<revision>.zip
:
This addon I put in the form of a snippet, and install it yourself, you can use this link.
You can use this method to add links in your repository, visualize your code or to implement completely new features based on Bitbucket. The framework is documentation and a half-hour video lesson.
the
Enable pre-release features
If you've read up to here, you probably love all the new. If so, go to settings Bitbucket and select Manage features in the left menu to enable pre-release features. By the way, right now you'll find improved list of pull requests!

From time to time look into the settings again, since the Bitbucket team often puts the teaser and the beta version before the official release.
the
For today
Thank you for reading! If you want to share your tricks in Bitbucket, or if you have a cool idea for the expansion, leave a comment here or write to Tim @kannonboy on Twitter.
I will gladly answer questions about these and other features of Bitbucket. I hope some of these tricks will be useful for you.
The author of the original article — Tim Pettersen, participated in the development of JIRA, FishEye/Crucible and Stash. Since the beginning of 2013 he talks about the development process, git, continuous integration and continuous delivery (continuous integration/deployment) and tools Atlassian for developers, especially on Bitbucket. Tim regularly publishes notes about these and other things on Twitter under the pseudonym @kannonboy.
Комментарии
Отправить комментарий