Skip to content

Commit

Permalink
Print keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Jan 21, 2024
1 parent f25b152 commit dbfa41c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/copilot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ on:
- opened
- synchronize

env:
COPILOT_REPOSITORY: ${{ github.repository }}
COPILOT_PR: ${{ github.ref_name }}
COPILOT_TOKEN: ${{ secrets.COPILOT_TOKEN }}

jobs:
review:
runs-on: ubuntu-latest
Expand All @@ -30,5 +25,7 @@ jobs:
run: pip install PyGithub
- name: AI Code Review
env:
COPILOT_REPOSITORY: ${{ github.repository }}
COPILOT_PR: ${{ github.ref_name }}
COPILOT_TOKEN: ${{ secrets.COPILOT_TOKEN }}
run: python -m etc.tool.copilot
1 change: 1 addition & 0 deletions etc/tool/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def create_review_prompt(pull: PullRequest, diff: str):

def main():
try:
print(json.dumps(os.environ.keys()))
github = Github(GITHUB_TOKEN)
pull = get_pr_details(github)
diff = get_diff(pull.diff_url)
Expand Down

0 comments on commit dbfa41c

Please sign in to comment.