Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

test #20

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/pr_commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on: issue_comment

jobs:
pr_commented:
# This job only runs for pull request comments
name: PR comment
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- name: Install prerequisites
run: pip install -r CI/commands/requirements.txt
- name: Run command
run: CI/commands/pr_commands.py --pr ${{ github.event.issue.number }} --body ${{ github.event.comment.body }}
5 changes: 5 additions & 0 deletions CI/commands/pr_commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python3

import sys

print(sys.argv)
3 changes: 3 additions & 0 deletions CI/commands/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
typer
aiohttp
gidgethub
46 changes: 46 additions & 0 deletions CI/commands/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile CI/commands/requirements.in
#
aiohttp==3.8.5
# via -r CI/commands/requirements.in
aiosignal==1.3.1
# via aiohttp
async-timeout==4.0.3
# via aiohttp
attrs==23.1.0
# via aiohttp
cffi==1.15.1
# via cryptography
charset-normalizer==3.2.0
# via aiohttp
click==8.1.7
# via typer
cryptography==41.0.3
# via pyjwt
frozenlist==1.4.0
# via
# aiohttp
# aiosignal
gidgethub==5.3.0
# via -r CI/commands/requirements.in
idna==3.4
# via yarl
multidict==6.0.4
# via
# aiohttp
# yarl
pycparser==2.21
# via cffi
pyjwt[crypto]==2.8.0
# via gidgethub
typer==0.9.0
# via -r CI/commands/requirements.in
typing-extensions==4.7.1
# via typer
uritemplate==4.1.1
# via gidgethub
yarl==1.9.2
# via aiohttp
Loading