Skip to content

📚 Update README for Clarity on Smart Actions Usage #4

📚 Update README for Clarity on Smart Actions Usage

📚 Update README for Clarity on Smart Actions Usage #4

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