{"id":16725218,"url":"https://github.com/christiangalsterer/bitbucket-prsquash-plugin","last_synced_at":"2025-03-15T15:14:31.866Z","repository":{"id":75870882,"uuid":"72409976","full_name":"christiangalsterer/bitbucket-prsquash-plugin","owner":"christiangalsterer","description":"Pull Request Squash","archived":false,"fork":false,"pushed_at":"2016-11-05T06:29:28.000Z","size":333,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T05:17:35.741Z","etag":null,"topics":["atlassian","atlassian-bitbucket","bitbucket","bitbucket-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christiangalsterer.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-31T06:42:29.000Z","updated_at":"2017-11-15T19:06:05.000Z","dependencies_parsed_at":"2023-02-25T01:16:19.343Z","dependency_job_id":null,"html_url":"https://github.com/christiangalsterer/bitbucket-prsquash-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christiangalsterer%2Fbitbucket-prsquash-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christiangalsterer%2Fbitbucket-prsquash-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christiangalsterer%2Fbitbucket-prsquash-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christiangalsterer%2Fbitbucket-prsquash-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christiangalsterer","download_url":"https://codeload.github.com/christiangalsterer/bitbucket-prsquash-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243746234,"owners_count":20341203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atlassian","atlassian-bitbucket","bitbucket","bitbucket-server"],"created_at":"2024-10-12T22:48:19.225Z","updated_at":"2025-03-15T15:14:31.832Z","avatar_url":"https://github.com/christiangalsterer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Introduction\n\nAn add-on for https://www.atlassian.com/software/bitbucket/server[Atlassian Bitbucket Server] to check if all commits in the source branch of a pull request have been squashed into a single comment before the merge into the target branch.\n\n= Installation\n\nThe plugin is available in the https://marketplace.atlassian.com/plugins/org.christiangalsterer.bitbucket-prsquash-plugin[Atlassian Marketplace] and can be installed directly in Bitbucket Server using the Universal Plugin Manager (UPM), see https://marketplace.atlassian.com/plugins/org.christiangalsterer.bitbucket-prsquash-plugin#tabs-installation[here] for details.\n\n= Releases\n\n== 1.0.0 (2016-10-30)\nInitial release providing the following features:\n\n* Pull request merge check which checks that all commits in the source branch are merged into a single commit.\n\n== 1.1.0 (2016-11-05)\nNew Features:\n\n* Support to configure the Pull Request settings for a project via the standard https://developer.atlassian.com/bitbucket/server/docs/latest/how-tos/command-line-rest.html[Bitbucket REST API]. The key is \"requiredPullRequestSquash\" using \"true\" or \"false as values.\n\n= Documentation\n\n== REST API\n\nThe plugin is integrated into the standard Bitbucket REST API.\n\n=== Get PR Squash Setting for a repository\nIn order to get the current setting for a repository execute the following request:\n\nURL: http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests\nMethod: GET\n\nThe settings is saved in the \"requiredPullRequestSquash\" field.\n\n=== Set PR Squash Setting for a repository\nIn order to get the current setting for a repository execute the following request:\n\nURL: http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests\nMethod: POST\nBody: {\"requiredPullRequestSquash\":true}\n\n= License\n\n[source]\n----\n   Copyright 2016 Christian Galsterer\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristiangalsterer%2Fbitbucket-prsquash-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristiangalsterer%2Fbitbucket-prsquash-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristiangalsterer%2Fbitbucket-prsquash-plugin/lists"}