📚 Update README for Clarity on Smart Actions Usage #4
This file contains 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: Ensure new issue is properly formatted | |
# Triggers the workflow on new issue creation | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
format-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Format GitHub Issue | |
uses: PR-Pilot-AI/smart-actions/format-issue@v1 | |
with: | |
# API key for PR Pilot must be defined as a secret in the repository | |
api-key: ${{ secrets.PR_PILOT_API_KEY }} | |
# Number of the issue to be formatted | |
issue-number: ${{ github.event.issue.number }} | |
# Instructions for formatting the issue | |
formatting-instructions: | | |
- Ensure the title begins with an appropriate emoji | |
- Issue body should be properly Markdown-formatted | |
- If the issue has no labels, add some |