Update autoassign.yml

This commit is contained in:
Prince Chaddha
2025-06-20 19:39:08 +08:00
committed by GitHub
parent e1855fac7c
commit 8874a7306b

View File

@@ -1,9 +1,9 @@
name: 🤖 issue/pr assignment
on:
pull_request:
types: [opened]
branches:
- main
# pull_request:
# types: [opened]
# branches:
# - main
issues:
types: [opened]
@@ -20,7 +20,7 @@ jobs:
with:
python-version: '3.10' # install the python version needed
- run: pip install requests
- if: github.event_name == 'pull_request'
run: python .github/scripts/assign_tasks.py ${{ github.event.pull_request.number }} pr ${{ secrets.GITHUB_TOKEN }}
# - if: github.event_name == 'pull_request'
# run: python .github/scripts/assign_tasks.py ${{ github.event.pull_request.number }} pr ${{ secrets.GITHUB_TOKEN }}
- if: github.event_name == 'issues'
run: python .github/scripts/assign_tasks.py ${{ github.event.issue.number }} issue ${{ secrets.GITHUB_TOKEN }}