{"repo":"OSS-Docs-Tools/code-owner-self-merge","free":true,"listed":false,"github":"https://github.com/OSS-Docs-Tools/code-owner-self-merge","clone":"git clone https://github.com/OSS-Docs-Tools/code-owner-self-merge.git","description":"A GitHub Action for letting CODEOWNERS merge PRs via green PR reviews","language":"JavaScript","stars":62,"topics":["github-actions","actions","javascript"],"license":"MIT","category":"workflow-automation","readme_excerpt":"A GitHub action that lets code-owners merge PRs via a comment. This action uses the standardized structure of a CODEOWNERS file to handle the access controls. A simple example So, with this file at: .github/CODEOWNERS : If a PR contained only a change to the README.md - this action would say that \"@orta has the ability to merge by commenting 'LGTM'\". Then, when/if this happens the GitHub Action will merge for you. A real-world example .github/CODEOWNERS : This allows any of @sasurau4 , @Quramy , @Naturalclar , @Takepepe or @orta to merge PRs which affect their areas of the translation process in the TypeScript Website repo. Code owners can use a review, or a comment to merge. Setting It Up You want a unique workflow file, e.g. .github/workflows/codeowners-merge.yml Then you should be good to go. Note that I might not have bumped the version in ^ , so double check the releases.. Also, given that this is a security focused GitHub Action, I'd recommend instead using commit references instead of @x.y.z . Security We force the use of pull request target as a workflow event to ensure that someone cannot change the CODEOWNER files at the same time as having that change be used to validate if they can merge. Issue / PR manipulation Merging a PR has strict security requirements, but closing a PR or Issue can have a weaker one. Anyone with a GitHub login in the CODEOWNER has the ability to close any PR / Issue via a comment/review which includes: A closed PR can be re-opened with: Extr","default_branch":null,"files":null,"tree":[],"storefront":"/r/OSS-Docs-Tools","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OSS-Docs-Tools/code-owner-self-merge/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."}