zioproto / github-issues-ai-assistant

MIT License
0 stars 1 forks source link

add the possibility to run the code locally #18

Closed soferreira closed 1 year ago

soferreira commented 1 year ago

Needs a .env file with: INPUT_OPENAI_API_BASE and INPUT_OPENAI_API_KEY

zioproto commented 1 year ago

I am testing like this:

python3 main.py local

I have this issue:

% python3 main.py local
Traceback (most recent call last):
  File "/Users/saverioproto/go/src/github.com/zioproto/github-issues-ai-assistant/main.py", line 99, in <module>
    run_github_action()
  File "/Users/saverioproto/go/src/github.com/zioproto/github-issues-ai-assistant/main.py", line 70, in run_github_action
    issue_number = os.environ["INPUT_ISSUE_NUMBER"]
                   ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen os>", line 679, in __getitem__
KeyError: 'INPUT_ISSUE_NUMBER'