Remove default of 0 for camera.panBy call, add horizontal wheel and touchpad scrolling #59
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: PR Target Guard | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| # Block any PR to main that doesn't come from develop | |
| require-develop-to-main: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.ref != 'develop' | |
| steps: | |
| - name: Block non-develop PRs to main | |
| run: | | |
| gh pr comment ${{ github.event.number }} --repo ${{ github.repository }} --body "PRs to \`main\` must come from \`develop\`. Please target \`develop\` instead, or merge your changes into \`develop\` first." | |
| exit 1 | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Redirect external contributors to develop | |
| redirect-forks: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.repo.fork | |
| steps: | |
| - name: Close and redirect to develop | |
| run: | | |
| gh pr close ${{ github.event.number }} --repo ${{ github.repository }} --comment "Thanks for helping make this project better! | |
| We use a \`develop\` branch for external PRs to allow for safer review and integration. Please update your PR to target \`develop\` instead of \`main\`, then reopen it. | |
| Looking forward to reviewing your changes!" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |