| 1 |
# Fired by Github Actions every time an issue, PR or comment is created. |
| 2 |
|
| 3 |
name: issues |
| 4 |
on: |
| 5 |
issues: |
| 6 |
types: [opened] |
| 7 |
pull_request: |
| 8 |
typed: [opened] |
| 9 |
issue_comment: |
| 10 |
types: [created] |
| 11 |
jobs: |
| 12 |
build: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
# install python |
| 16 |
- uses: actions/checkout@v4 |
| 17 |
- name: Install Python |
| 18 |
uses: actions/setup-python@v5 |
| 19 |
with: |
| 20 |
python-version: "3.x" |
| 21 |
|
| 22 |
# install deps |
| 23 |
- name: Install deps |
| 24 |
run: python3 -m pip install PyGithub |
| 25 |
|
| 26 |
# run |
| 27 |
- name: Run |
| 28 |
env: |
| 29 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 30 |
run: | |
| 31 |
PYTHONUNBUFFERED=1 PYTHONWARNINGS=always python3 .github/workflows/issues.py |