Bitbucket Server 4.7 release notes
2016 年 6 月 15 日
If you are upgrading from an earlier version, check the Bitbucket Server upgrade guide. Also, be sure to see the End of support announcements and the changes listed in the API changelog.
The Bitbucket 4.7 changelog is at the bottom of this page.
Add or delete tags to commits from within Bitbucket Server
Now, while viewing a commit within Bitbucket Server you can add and delete tags. Added tags can have descriptions as well. Only users with write access to the repo can add or delete tags, but users with read access can still view all tags associated with a commit.
Adding a tag to a commit
Deleting a tag from a commit
Rest and service API to manage pull request restrictions
As of Bitbucket Server 4.7.1, it is possible to manage pull request settings for a repository using REST. Refer to the Bitbucket Server REST documentation.
The new REST endpoint is located at:
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests
The endpoint accepts both GET and POST. Here's an example of what a GET response would look like:
{
"requiredApprovers": 1,
"requiredAllTasksComplete": false,
"requiredSuccessfulBuilds": 0
}
An example POST request that updates the requiredApprovers and requiredAllTasksComplete for a pull request to be merged in a specified repository would be:
{
"requiredApprovers": 2,
"requiredAllTasksComplete": true,
}
The response would look like:
{
"requiredApprovers": 2,
"requiredAllTasksComplete": true,
"requiredSuccessfulBuilds": 0
}
This is equivalent to the updated GET response. Note that not including the key for a particular setting in a POST request means that setting is won't be updated.
Additionally, it is possible for plugin developers to extend this REST endpoint, via the new Rest Fragment plugin module. An example of a plugin extending this REST endpoint can be seen in the Bitbucket Server Auto Unapprove plugin.
This functionality was added as a result of - BSERV-3644Getting issue details... STATUS .
Support for retrieving raw files from Bitbucket Server URLs
In previous versions of Bitbucket Server, sharing a URL for retrieving a raw file was difficult. To access a raw file within a repository, you would suffix a URL with ?raw
, which could cause problems for some web server configurations.
With the release of Bitbucket Server 4.7.1, now there is a new, simpler syntax you can use to retrieve raw files. Here's an example of what the URL to browse to a file typically looks like:
http://yourserver.com/projects/{projectKey}/repos/{repositoryKey}/browse/file.extension
The URL needs to have the project key, repository key, and file path to access raw files, and this new functionality allows you to replace browse
with raw
to access the raw file (similar to selecting Raw file within the file view of the UI).
So, the URL to access the raw file would look like:
http://yourserver.com/projects/{projectKey}/repos/{repositoryKey}/raw/file.extension
This functionality was added as a result of - BSERV-4036Getting issue details... STATUS .
変更履歴
This section will contain information about the Bitbucket Server 4.7 minor releases as they become available. These releases will be free to all customers with active Bitbucket Server software maintenance.
If you are upgrading from an earlier version of Bitbucket Server (or Stash), check the Bitbucket Server upgrade guide.
The issues listed below are the highlights of all those that have been resolved for the Bitbucket Server 4.7.x releases, and are ordered by votes received.
18 August 2016 - Bitbucket Server 4.7.2
15 June 2016 - Bitbucket Server 4.7.1
Bitbucket Server 4.7.0 was an internal release and is not available for download.