Skip to content

Commit

Permalink
add sender
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Aug 22, 2023
1 parent 9b25312 commit be5db55
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
run: |
echo "${{ github.event.comment.body }}" > body.txt
cat body.txt
CI/commands/pr_commands.py --pr ${{ github.event.issue.number }} --body body.txt
CI/commands/pr_commands.py --pr ${{ github.event.issue.number }} --body body.txt --sender ${{ github.event.comment.sender }}
16 changes: 14 additions & 2 deletions CI/commands/pr_commands.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/usr/bin/env python3
from pathlib import Path

import sys
import typer

print(sys.argv)

def main(
pr: int = typer.Option(),
body: Path = typer.Option(),
sender: str = typer.Option(),
):
print("pr:", pr)
print("body:", body)
print("sender:", sender)


typer.run(main)

0 comments on commit be5db55

Please sign in to comment.