Run CI in merge group, only on changes sent to main #3506
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codeowners merging | |
on: | |
pull_request_target: { types: [opened] } | |
issue_comment: { types: [created] } | |
pull_request_review: { types: [submitted] } | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Codeowners merge check | |
uses: OSS-Docs-Tools/[email protected] | |
if: github.repository == 'microsoft/TypeScript-DOM-lib-generator' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
merge_method: 'squash' | |
if_no_maintainers_add_label: 'maintainers' | |
if_no_maintainers_assign: '@sandersn @jakebailey' |