feat: add mise generate prompts to create AI prompt files from tasks
#29
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-draft-pr | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| jobs: | |
| auto-draft: | |
| if: >- | |
| github.event.pull_request.author_association != 'OWNER' && | |
| github.event.pull_request.author_association != 'MEMBER' && | |
| github.event.pull_request.author_association != 'COLLABORATOR' && | |
| github.event.pull_request.user.login != 'renovate[bot]' && | |
| !github.event.pull_request.draft | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Convert to draft | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| gh pr ready --undo "$PR_NUMBER" -R "${{ github.repository }}" | |
| - name: Post comment | |
| env: | |
| GH_TOKEN: ${{ secrets.MISE_PR_COMMENT_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| gh pr comment "$PR_NUMBER" -R "${{ github.repository }}" -b "Thanks for the contribution! This PR has been automatically converted to draft mode. When you're ready for human review, click **Ready for review** to take it out of draft." |