31 lines
991 B
YAML
31 lines
991 B
YAML
name: Welcome new issues
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
|
|
permissions:
|
|
issues: write
|
|
actions: write
|
|
|
|
jobs:
|
|
supporter-priority-note:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Post supporter priority note
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
GH_REPO: ${{ github.repository }}
|
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
run: |
|
|
gh issue comment "$ISSUE_NUMBER" --repo "$GH_REPO" --body-file - <<'EOF'
|
|
Thank you for opening this issue.
|
|
|
|
If you support OpenCADStudio on [Patreon](https://www.patreon.com/HakanSeven12), send me either your GitHub username or this issue number in a Patreon message. After I verify your support, I will prioritize the issue.
|
|
EOF
|
|
|
|
- name: Remove this run from Actions history
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
GH_REPO: ${{ github.repository }}
|
|
run: gh api --method DELETE "repos/$GH_REPO/actions/runs/$GITHUB_RUN_ID"
|