Repository navigation
Bump docker/setup-qemu-action from 3 to 4 #39
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: Auto-close External PRs | ||
|
Check warning on line 1 in .github/workflows/auto-close-external-prs.yml
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened] | ||
| jobs: | ||
| auto-close: | ||
| runs-on: ubuntu-latest | ||
| if: ${{ !contains(fromJSON(vars.ALLOWED_PR_AUTHORS), github.actor) }} | ||
| permissions: | ||
| pull-requests: write | ||
| issues: write | ||
| steps: | ||
| - name: Close PR with message | ||
| uses: actions/github-script@v9 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| const message = `Thank you so much for your interest in ControlR! I really appreciate you taking the time to contribute. | ||
| However, I am not accepting PRs at the moment for the following reasons: | ||
| **Legal and Financial Considerations** | ||
| With Remotely, I found out that there are legal impliciations to accepting external contributions. Once I have a Contributor's License Agreement (CLA) in place, I want to have an attorney review everything to make sure I'm not missing anything. | ||
| **Foundational Changes** | ||
| During these early stages of the project, there will be (and have already been) large foundational changes. I'll be able to move quicker and maintain a clear vision during this period if I'm not having to coordinate with distributed changes. | ||
| **Reviewing AI Code** | ||
| With the rise of AI, I'm worried that I'd spend the vast majority of my time reviewing AI-generated PRs, which would detract from my ability to keep the project moving forward. I don't know yet how I'm going to handle this issue, but I don't currently have the bandwidth to find solutions. | ||
| I will begin accepting external contributions once ControlR reaches a more mature state and I've been able to resolve the above concerns. Thank you for understanding! | ||
| If you have ideas, suggestions, or found a bug, please feel free to open an issue instead. I'd love to hear your feedback! | ||
| Thank you again for your interest in the project! 🙏`; | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| body: message | ||
| }); | ||
| await github.rest.pulls.update({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| pull_number: context.issue.number, | ||
| state: 'closed' | ||
| }); | ||