|
1 |
| -name: 'Optional' |
2 |
| - |
| 1 | +name: Comment Commands |
3 | 2 | on:
|
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
7 |
| - workflow_dispatch: |
8 |
| - |
9 |
| -jobs: |
10 |
| - nightly: |
11 |
| - runs-on: ubuntu-latest |
12 |
| - timeout-minutes: 10 |
13 |
| - |
14 |
| - steps: |
15 |
| - - uses: actions/checkout@v3 |
16 |
| - |
17 |
| - - name: Install project dependencies |
18 |
| - uses: ./.github/setup |
19 |
| - with: |
20 |
| - os: ubuntu-latest |
21 |
| - python-version: '3.11' |
22 |
| - |
23 |
| - - name: Run pytest (against pandas nightly) |
24 |
| - run: poetry run poe pytest --nightly |
| 3 | + issue_comment: |
| 4 | + types: created |
25 | 5 |
|
26 |
| - mypy_nightly: |
27 |
| - runs-on: ubuntu-latest |
28 |
| - timeout-minutes: 10 |
29 |
| - |
30 |
| - steps: |
31 |
| - - uses: actions/checkout@v3 |
32 |
| - |
33 |
| - - name: Install project dependencies |
34 |
| - uses: ./.github/setup |
35 |
| - with: |
36 |
| - os: ubuntu-latest |
37 |
| - python-version: '3.11' |
| 6 | +permissions: |
| 7 | + contents: read |
| 8 | + issues: write |
| 9 | + pull-requests: write |
38 | 10 |
|
39 |
| - - name: Run mypy tests with mypy nightly |
40 |
| - run: poetry run poe mypy --mypy_nightly |
41 |
| - |
42 |
| - pyright_strict: |
| 11 | +jobs: |
| 12 | + issue_assign: |
43 | 13 | runs-on: ubuntu-latest
|
44 |
| - timeout-minutes: 10 |
45 |
| - |
| 14 | + if: (!github.event.issue.pull_request) && github.event.comment.body == 'take' |
| 15 | + concurrency: |
| 16 | + group: ${{ github.actor }}-issue-assign |
46 | 17 | steps:
|
47 |
| - - uses: actions/checkout@v3 |
48 |
| - |
49 |
| - - name: Install project dependencies |
50 |
| - uses: ./.github/setup |
51 |
| - with: |
52 |
| - os: ubuntu-latest |
53 |
| - python-version: '3.11' |
| 18 | + - run: | |
| 19 | + echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" |
54 | 20 |
|
55 |
| - - name: Run pyright tests with full strict mode |
56 |
| - run: poetry run poe pyright_strict |
| 21 | +# |
| 22 | +# name: 'Optional' |
| 23 | +# |
| 24 | +# on: |
| 25 | +# push: |
| 26 | +# branches: |
| 27 | +# - main |
| 28 | +# workflow_dispatch: |
| 29 | +# |
| 30 | +# jobs: |
| 31 | +# nightly: |
| 32 | +# runs-on: ubuntu-latest |
| 33 | +# timeout-minutes: 10 |
| 34 | +# |
| 35 | +# steps: |
| 36 | +# - uses: actions/checkout@v3 |
| 37 | +# |
| 38 | +# - name: Install project dependencies |
| 39 | +# uses: ./.github/setup |
| 40 | +# with: |
| 41 | +# os: ubuntu-latest |
| 42 | +# python-version: '3.11' |
| 43 | +# |
| 44 | +# - name: Run pytest (against pandas nightly) |
| 45 | +# run: poetry run poe pytest --nightly |
| 46 | +# |
| 47 | +# mypy_nightly: |
| 48 | +# runs-on: ubuntu-latest |
| 49 | +# timeout-minutes: 10 |
| 50 | +# |
| 51 | +# steps: |
| 52 | +# - uses: actions/checkout@v3 |
| 53 | +# |
| 54 | +# - name: Install project dependencies |
| 55 | +# uses: ./.github/setup |
| 56 | +# with: |
| 57 | +# os: ubuntu-latest |
| 58 | +# python-version: '3.11' |
| 59 | +# |
| 60 | +# - name: Run mypy tests with mypy nightly |
| 61 | +# run: poetry run poe mypy --mypy_nightly |
| 62 | +# |
| 63 | +# pyright_strict: |
| 64 | +# runs-on: ubuntu-latest |
| 65 | +# timeout-minutes: 10 |
| 66 | +# |
| 67 | +# steps: |
| 68 | +# - uses: actions/checkout@v3 |
| 69 | +# |
| 70 | +# - name: Install project dependencies |
| 71 | +# uses: ./.github/setup |
| 72 | +# with: |
| 73 | +# os: ubuntu-latest |
| 74 | +# python-version: '3.11' |
| 75 | +# |
| 76 | +# - name: Run pyright tests with full strict mode |
| 77 | +# run: poetry run poe pyright_strict |
0 commit comments