Skip to content

Mark Canon EOS M200, EOS R50 V, and PowerShot V1 as not supported #83

Mark Canon EOS M200, EOS R50 V, and PowerShot V1 as not supported

Mark Canon EOS M200, EOS R50 V, and PowerShot V1 as not supported #83

name: Validate source/target branches of Pull Request
on:
pull_request_target:
types: [ opened, reopened ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
validation:
runs-on: ubuntu-latest
steps:
- name: Fetch/Checkout RawSpeed git repo
timeout-minutes: 1
uses: actions/checkout@v4
with:
path: 'rawspeed'
- if: github.event_name == 'pull_request_target' && github.base_ref != 'develop'
name: Close Pull if PR is to a wrong branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd rawspeed
gh pr close --comment "Pull Requests should only be submitted to 'develop' branch" ${{ github.event.number }}
exit 1
- if: github.event_name == 'pull_request_target' && github.head_ref == github.base_ref
name: Close Pull if PR is not from a proper branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd rawspeed
gh pr close --comment "Pull Requests source branch should be branched off of the Pull Request's target branch" ${{ github.event.number }}
exit 1