Merge pull request #318 from Start-Out/dev/contribute #90
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: Generate issues with TODO-or-not | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
branches: | |
- dev/staging | |
push: | |
branches: | |
- dev/staging | |
jobs: | |
run_todoon: | |
runs-on: ubuntu-latest | |
environment: testing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11.7" | |
- name: Install TODO-or-not | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install todo-or-not | |
- name: Generate GH Token for todoon app | |
id: generate-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: 853479 | |
private-key: ${{ secrets.TODOON_CLIENT_PEM }} | |
- name: Run TODO-or-not | |
env: | |
GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
MAXIMUM_ISSUES_GENERATED: 10 | |
run: | | |
echo "Generate GitHub issues for each problem found, but don't fail the workflow" | |
todoon -is |