mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
27 lines
849 B
YAML
27 lines
849 B
YAML
name: 🤖 issue/pr assignment
|
|
on:
|
|
# pull_request:
|
|
# types: [opened]
|
|
# branches:
|
|
# - main
|
|
issues:
|
|
types: [opened]
|
|
|
|
env:
|
|
ASSIGN_TASK_TOKEN: ${{ secrets.PDTEAMX_PAT }} # github personal token
|
|
|
|
jobs:
|
|
build:
|
|
permissions: write-all
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5 # checkout the repository content
|
|
- uses: actions/setup-python@v6
|
|
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 == 'issues'
|
|
run: python .github/scripts/assign_tasks.py ${{ github.event.issue.number }} issue ${{ secrets.GITHUB_TOKEN }}
|