Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed May 20, 2023
1 parent 9e03fe4 commit 920e1bc
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/usr/bin/env python3
"""
This module generates a pull request description using
the OpenAI GPT-3.5 language model.
This module generates a pull request description using the OpenAI GPT-3.5 language model.
The module includes a 'main' function that serves as the entry point for the script. It reads configuration from a YAML file,
initializes logging, performs preflight checks, interacts with the GitHub API to retrieve information about the pull request,
generates a diff of the pull request, makes an AI request using the OpenAI model to generate a description based on the diff,
updates the description of the pull request, and sets GitHub Action outputs.
Example usage:
--------------
$ python3 main.py
"""
import os
import sys
Expand All @@ -16,6 +25,12 @@


def main():
"""
The main function that serves as the entry point for the script.
Returns:
None
"""
config = parse.Yaml('config.yaml').conf
logs.init(config)
env = preflight.Env(config)
Expand Down

0 comments on commit 920e1bc

Please sign in to comment.