Hello Community,
If no activity is observed, I am looking for a way to close all stale Pull Requests in my repositories after a few days.
Is it possible via the bitbucket pipeline or any other way to achieve this?
This link is not helpful:
https://confluence.atlassian.com/bitbucketserver/automatically-decline-inactive-pull-requests-1027119967.html#:~:text=the%20project%20level.-,To%20configure%20the%20automatic%20declining%20of%20inactive%20pull%20requests%20in,Repository%20settings%20%3E%20Auto%2Ddecline.
You can definitely achieve this via pipelines, although I'm not aware of, and couldn't find, any existing pipes designed to handle this task. You'd need to write some custom code that interacts with the Bitbucket API to identify and decline the stale pull requests.
I'm curious, though — are these internal or external PRs? I know it's common to auto-close stale PRs in public repos, so I'm just wondering if that's the case here.
It looks like you're new here. Sign in or register to get started.