{"repo":"adRise/update-pr-branch","free":true,"listed":false,"github":"https://github.com/adRise/update-pr-branch","clone":"git clone https://github.com/adRise/update-pr-branch.git","description":"Github Action to automatically update PR branches that match the criteria. Designed to work with the Github `auto-merge` feature.","language":"JavaScript","stars":32,"topics":["github-actions","pr-branch","continuous-integration","github-action","github-actions-ci","automation","productivity"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Update PR Branch Action Automatically update the PR branch The job of the action is to help click \"Update branch\" button for you. Designed to work with the auto-merge and \"Require branches to be up to date before merging\" options. It will update the newest open PR that match the below conditions - The PR has the auto-merge option enabled - The PR has 2 approvals and no changes-requested review (configurable) - The PR has all checks passed (configurable) - The PR branch has no conflicts with the base branch - The PR branch is behind the base branch When do you need this action You may consider to use this action if you: - Have enabled the auto-merge feature in your repo. - Have checked the \"Require branches to be up to date before merging\" checkbox for protected branches. See more Require status checks before merging Because of #2, even you have enabled auto-merge for a PR, the PR won't be automatically merged if the PR branch is behind the base branch, for example someone else merges another PR before your PR passes all CI checks. See the screenshot as below. Inputs token Required The personal access token. Need to note, you can't use GITHUB TOKEN because of this limitation Alternatively, you can use a GitHub App token for better security and flexibility. See the \"GitHub App Token Setup\" section below. base Required Default: master The base branch that the PR will use to fetch open PRs, for example, main , master or dev . The action will only check PRs that use the base as th","default_branch":null,"files":null,"tree":[],"storefront":"/r/adRise","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adRise/update-pr-branch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}