Skip to content

Commit

Permalink
migrate to public repo
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Nov 5, 2023
1 parent 6d7f650 commit 50cfaee
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autopr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
ref: main
fetch-depth: 1
- name: AutoPR
uses: raphael-francis/autopr-internal@main
uses: irgolic/autopr@main
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Below is an example of AutoPR's Living README:
This folder contains files and folders related to a workflow automation system. It provides reusable actions, triggers, and workflows for different automation scenarios. The files include configuration files for Docker images, licenses, makefile-like tasks, automatic pull request workflows, shell scripts, project dependencies, workflow schemas, and more. The folder also includes a collection of Python files for defining actions, triggers, and workflows, as well as services for managing and running automated actions. Overall, this folder supports the development and execution of automated workflows with various actions and conditions.


### [`Dockerfile`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./Dockerfile)
### [`Dockerfile`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./Dockerfile)

πŸ—οΈ Sets up a Docker image based on the `duffn/python-poetry:3.9-bullseye` image
πŸ”§ Installs git from the bullseye-backports repository
Expand All @@ -45,7 +45,7 @@ This folder contains files and folders related to a workflow automation system.
πŸš€ Sets the entrypoint to `/entrypoint.sh` for running the app


### [`LICENSE.md`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./LICENSE.md)
### [`LICENSE.md`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./LICENSE.md)

πŸ“„ This file contains the MIT License.
πŸ”’ The license grants permission to use, modify, and distribute the software.
Expand All @@ -55,7 +55,7 @@ This folder contains files and folders related to a workflow automation system.
πŸ’Ό The license is owned by Raphael Francis Ltd.


### [`Makefile`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./Makefile)
### [`Makefile`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./Makefile)

πŸ“ This file is a makefile-like configuration file.
πŸ”§ It defines various targets and their associated commands.
Expand All @@ -68,7 +68,7 @@ This folder contains files and folders related to a workflow automation system.
πŸ”§ This file is meant to automate common development tasks and ensure code quality.


### [`action.yml`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./action.yml)
### [`action.yml`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./action.yml)

πŸ“„ This file is a configuration file for an automatic pull request workflow.
πŸ”§ It specifies the details for running the workflow, such as the Docker image to use.
Expand All @@ -79,12 +79,12 @@ This folder contains files and folders related to a workflow automation system.
πŸ”„ It specifies whether to overwrite existing branches and pull requests when creating from issues.


### [`autopr/`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr)
### [`autopr/`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr)

This folder contains a collection of Python files and folders related to a workflow automation system. It includes files for defining actions, triggers, and workflows, as well as services for managing and running automated actions. There are also files for configuring logging settings, defining data models, and interacting with the GitHub platform. Overall, this folder provides a range of reusable actions, triggers, and workflows for different automation scenarios, along with the necessary services and utilities to support them.


### [`entrypoint.sh`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./entrypoint.sh)
### [`entrypoint.sh`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./entrypoint.sh)

πŸ“ The file is a shell script
πŸ”§ It sets the Git configuration for a specific directory
Expand All @@ -93,7 +93,7 @@ This folder contains a collection of Python files and folders related to a workf
🐍 It runs a Python module called `autopr.gh_actions_entrypoint`


### [`poetry.lock`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./poetry.lock)
### [`poetry.lock`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./poetry.lock)

πŸ“„ This file is an executive summary of a project or report
πŸ” It provides a high-level overview of the main points
Expand All @@ -107,7 +107,7 @@ This folder contains a collection of Python files and folders related to a workf
πŸ“Œ It is concise and easy to read, even if the file is empty


### [`pyproject.toml`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./pyproject.toml)
### [`pyproject.toml`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./pyproject.toml)

πŸ“‹ This file is a configuration file for a Python project using Poetry.
πŸ” It contains information about the project's name, version, and authors.
Expand All @@ -119,7 +119,7 @@ This folder contains a collection of Python files and folders related to a workf
πŸ” It specifies the line length and target version for the Black code formatter.


### [`strict_workflow_schema.json`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./strict_workflow_schema.json)
### [`strict_workflow_schema.json`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./strict_workflow_schema.json)

πŸ“„ The file is a JSON schema describing a strict workflow definition.
πŸ” It defines various actions that can be performed within the workflow.
Expand All @@ -133,7 +133,7 @@ This folder contains a collection of Python files and folders related to a workf
πŸ“š The file can serve as a reference for understanding the structure and capabilities of strict workflows.


### [`trigger_schema.json`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./trigger_schema.json)
### [`trigger_schema.json`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./trigger_schema.json)

πŸ“‹ The file is a JSON schema that describes a configuration for triggers and actions in a workflow.
πŸ”— It includes definitions for various action models such as comment, set_issue_title, walk_files, make_api_call, bash, etc.
Expand All @@ -147,7 +147,7 @@ This folder contains a collection of Python files and folders related to a workf
πŸ’» Overall, this file is a powerful tool for defining and configuring automated workflows with various triggers and actions.


### [`workflow_schema.json`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./workflow_schema.json)
### [`workflow_schema.json`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./workflow_schema.json)

πŸ“„ This file is a JSON schema definition for a workflow definition.
πŸ”§ It defines various types and properties for different actions and declarations used in the workflow.
Expand Down
18 changes: 9 additions & 9 deletions autopr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
This folder contains a collection of Python files and folders related to a workflow automation system. It includes files for defining actions, triggers, and workflows, as well as services for managing and running automated actions. There are also files for configuring logging settings, defining data models, and interacting with the GitHub platform. Overall, this folder provides a range of reusable actions, triggers, and workflows for different automation scenarios, along with the necessary services and utilities to support them.


### [`__init__.py`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/__init__.py)
### [`__init__.py`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/__init__.py)

This file is empty.


### [`actions/`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/actions)
### [`actions/`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/actions)

This folder contains a collection of Python files that implement various actions for automating tasks. Each file represents a different action, such as running a bash command, generating choices based on user prompts, publishing comments on GitHub issues, committing and pushing changes to a remote repository, searching for specific keywords in files, inserting content into strings, and more. The files define classes that encapsulate the logic for each action, and they often include input and output models for data validation. Some files also include example usage and test cases. Additionally, there are utility files for managing prompt context and listing files in a folder. Overall, the folder provides a range of reusable actions for different automation scenarios.


### [`gh_actions_entrypoint.py`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/gh_actions_entrypoint.py)
### [`gh_actions_entrypoint.py`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/gh_actions_entrypoint.py)

πŸ“„ This file is the entry point for a GitHub Actions workflow.
πŸ”§ It contains the main logic for running the workflow.
Expand All @@ -30,7 +30,7 @@ This folder contains a collection of Python files that implement various actions
πŸ”’ The GitHub token is used for authentication and authorization.


### [`log_config.py`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/log_config.py)
### [`log_config.py`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/log_config.py)

πŸ“ This file is used to configure logging settings and create loggers.
πŸ”§ It imports the necessary modules for logging and structlog.
Expand All @@ -42,7 +42,7 @@ This folder contains a collection of Python files that implement various actions
πŸ”§ The configure_logging function is called to configure logging on module import.


### [`main.py`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/main.py)
### [`main.py`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/main.py)

πŸ“‹ This file contains the implementation of the `MainService` class, which serves as the main entry point for the application.
πŸ”§ It initializes various services and handles the execution of triggers and workflows.
Expand All @@ -56,17 +56,17 @@ This folder contains a collection of Python files that implement various actions
πŸ”— The `TriggerService` class handles the interaction between triggers, workflows, and the commit service.


### [`models/`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/models)
### [`models/`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/models)

This folder contains files and folders related to a workflow automation system for handling events in the AutoPR system. It includes files for defining data models, handling events, configuring workflows, and executing automation actions. The files define classes and types for messages, threads, issues, pull requests, events, context variables, templates, and executables. Overall, this folder provides a flexible and extensible system for defining and configuring automated actions and workflows in the AutoPR system.


### [`services/`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/services)
### [`services/`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/services)

This folder contains a collection of Python files that implement various services and classes for managing and running automated actions in a pull request workflow. These services include the `ActionService` for handling actions, the `CacheService` for caching data, the `CommitService` for managing Git commits, the `DiffService` for working with diffs, the `PlatformService` for interacting with the GitHub platform, the `PublishService` for publishing updates to pull requests, the `TriggerService` for handling triggers and executing workflows, the `Utils` module for formatting and truncating data, and the `WorkflowService` for executing workflows and actions. Each file contains detailed documentation and comments explaining the purpose and functionality of the classes and methods.


### [`triggers.py`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/triggers.py)
### [`triggers.py`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/triggers.py)

πŸ“„ This file defines a function called `get_all_triggers`.
πŸ“‚ It imports necessary modules and classes.
Expand All @@ -80,7 +80,7 @@ This folder contains a collection of Python files that implement various service
πŸ“₯ The function takes optional parameters for the configuration directory and repository path.


### [`workflows/`](https://github.com/raphael-francis/AutoPR-internal/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/workflows)
### [`workflows/`](https://github.com/irgolic/autopr/blob/6eca175af1a796cf6de44b15fa4a9cb81752e58c/./autopr/workflows)

This folder contains a Python script (`__init__.py`) that collects and loads workflow configurations from YAML files. The script recursively searches for YAML files in a specified folder and its subfolders. It handles exceptions and logs errors during the loading and validation process. The loaded workflows are returned as the result of the `get_all_workflows()` function. The folder also includes several YAML files that define different workflows for tasks such as making API calls and saving responses to files, automating the process of summarizing files and folders, inserting content into files, managing TODO issues in code repositories, and summarizing changes in pull requests.

Expand Down
Loading

0 comments on commit 50cfaee

Please sign in to comment.