Automatically decline inactive pull requests
Administer Bitbucket Data Center and Server
- Users and groups
- External user directories
- Global permissions
- Setting up your mail server
- Integrate with Atlassian applications
- Connect Bitbucket to an external database
- Migrating Bitbucket Server to another server
- Run Bitbucket in AWS
- Specify the Bitbucket base URL
- Configuring the application navigator
- Managing apps
- View and configure the audit log
- Update your license key
- Configuration properties
- Change Bitbucket's context path
- Data recovery and backups
- Disable HTTP(S) access to Git repositories
- Smart Mirroring
- Export and import projects and repositories
- Git Large File Storage
- Git Virtual File System (GVFS)
- Enable SSH access to Git repositories
- Use diff transcoding
- Change the port Bitbucket listens on
- Lockout recovery process
- Proxy and secure Bitbucket
- High availability for Bitbucket
- Diagnostics for third-party apps
- Enabling JMX counters for performance monitoring
- Enable debug logging
- Scaling Bitbucket Server
- Add a shortcut link to a repository
- Administer code search
- Adding additional storage for your repository data
- Add a system-wide announcement banner
- Configuring Project links across Applications
- Improving instance stability with rate limiting
- Use a CDN with Atlassian Data Center applications
- Managing personal access tokens
- Connecting to a 3rd party application using Application Links
- Setting a system-wide default branch name
- Automatically decline inactive pull requests
- Encrypt database password
On this page
Related content
- How to bulk change, enable, or disable the "auto-merge" settings for projects in Bitbucket Data Center
- How to bulk change, enable, or disable the "auto-merge" settings for projects in Bitbucket Data Center
- Find old or outdated open pull requests
- Find old or outdated open pull requests
- How to turn off the ability to delete pull requests in Bitbucket Data Center
- Add default reviewers to pull requests
- Using repository hooks
- How to turn off the ability to delete pull requests in Bitbucket Data Center
- How to perform manual garbage collection on a repository in Bitbucket Server
- Pull Requests in Bitbucket Server are not updated after pushes to source or target branch
Bitbucket Data Center and Server can automatically decline pull requests that are inactive, reducing the number of pull requests in the list that can add up. For example, if an older pull request has not had any activity (like commits, comments or approvals) in a set amount of time, it will be declined. By default, the option is on and set to 4 weeks. This period of inactivity can be overwritten for projects and repositories.
There is an instance-wide configuration property for this feature in the bitbucket.properties file that allows admins to disable or turn the feature off.
feature.pull.request.auto.decline=false
Automatically decline inactive pull requests for all repositories in a project
To configure the automatic declining of inactive pull requests in a project:
Select Project settings > Auto-decline.
Select the Auto-decline pull requests check-box to enable it.
Set the amount of time before a pull request will be automatically declined from 1, 2, 4, 8, or 12 weeks.
Select Save.
Automatically decline inactive pull requests for a repository
Configuring this setting at the repository level, will override the setting for it at the project level.
To configure the automatic declining of inactive pull requests in a single repository:
Select Repository settings > Auto-decline.
By default, settings are inherited from the project settings.
Select Use custom settings.
Select the Auto-decline pull requests check-box to enable it.
Set the amount of time before a pull request will be automatically declined from 1, 2, 4, 8, or 12 weeks.
Select Save.
Once the configuration is saved, inactive pull requests will become declined by the Bitbucket system user. This will add a comment indicating that the reason for the decline is due to inactivity.
Related content
- How to bulk change, enable, or disable the "auto-merge" settings for projects in Bitbucket Data Center
- How to bulk change, enable, or disable the "auto-merge" settings for projects in Bitbucket Data Center
- Find old or outdated open pull requests
- Find old or outdated open pull requests
- How to turn off the ability to delete pull requests in Bitbucket Data Center
- Add default reviewers to pull requests
- Using repository hooks
- How to turn off the ability to delete pull requests in Bitbucket Data Center
- How to perform manual garbage collection on a repository in Bitbucket Server
- Pull Requests in Bitbucket Server are not updated after pushes to source or target branch