Your code is perfect as is - let others know that they should instead fork your repository and fix "issues" locally.
This GitHub Action, while functional, is written only for satirical purpose, and should not be used in collaborative repositories. Collaborative programming, especially open source, is a beautiful thing and both contributors and maintainers should be treated respectfully for donating their time to improve projects. Please do not use this GitHub Action in bad faith.
You can change the response comment message using the message option. The default
response comment message is:
Sorry, this repository is working as intended - please fork this repository and fix any "issues" locally.
You can toggle responding to issues and pull requests individually by using the
on-issues and on-pull-requests options. The default behavior is to run for both
issues and pull requests.
You can also toggle automatically locking the conversation and closing the issue or
pull request using the lock and close options respectively. The default behavior
is to both lock and close.
Note that a token with write permissions for issues and/or pull requests is required (as necessary).
name: Remind users that your code is fine as is
on:
issues:
types: [opened, reopened]
pull_request:
types: [opened]
jobs:
notify:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: FastAndCheap/fork-instead@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
on-issues: true
on-pull-requests: true
lock: true
close: true