π³ Living summaries of your code in nested READMEs
π TODOs kept track of in issues
β³ Keep history of an API call's result in git
π Summarize changes by adding a "summarize" label to a PR
π«΅ Custom actions configured in YAML
Please see the installation guide.
Though used internally, this project is currently not actively maintained.
Until v0.1.2, AutoPR autonomously generated pull requests from issues. If you'd still prefer to use AutoPR for this, set the following line in your github actions yaml:
uses: docker:https://ghcr.io/irgolic/autopr:v0.1.2
Below is an example of AutoPR's Living README:
This folder contains various files and folders related to automating tasks and workflows. It includes a Dockerfile for setting up a Docker image, a license file specifying the terms of use, a Makefile for automating development tasks, an action configuration file for a pull request workflow, a shell script for executing a Python module, a lock file and a configuration file for a Python project using Poetry, JSON schemas for defining strict workflows and trigger configurations, and a JSON schema for defining workflow definitions. These files and folders provide functionality for automating tasks, managing actions and Git operations, and executing customizable workflows.
ποΈ Sets up a Docker image based on the duffn/python-poetry:3.9-bullseye
image
π§ Installs git from the bullseye-backports repository
π₯ Copies an entrypoint script and makes it executable
π₯ Copies the pyproject.toml
and poetry.lock
files
π§ Activates the virtual environment and installs the project dependencies using Poetry
π₯ Copies the rest of the files to the /app
directory
π§ Installs the application using Poetry
π Sets the entrypoint to /entrypoint.sh
for running the app
π This file contains the MIT License.
π The license grants permission to use, modify, and distribute the software.
π The license requires the copyright notice and permission notice to be included in all copies.
π« The software is provided "as is" without warranty.
π
The license is valid until 2023.
πΌ The license is owned by Raphael Francis Ltd.
π This file is a makefile-like configuration file.
π§ It defines various targets and their associated commands.
π» The targets are: format
, type
, test
, schema
, and all
.
π§ The format
target runs a command to format code using the black
tool.
π§ The type
target runs a command to perform type checking using pyright
.
π§ The test
target runs pytest on the autopr/tests
directory.
π§ The schema
target runs a command to generate configuration entrypoints using autopr.models.config
.
π§ The all
target runs all the targets in sequence: format
, type
, test
, and schema
.
π§ This file is meant to automate common development tasks and ensure code quality.
π 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.
π¨ It also includes branding information, such as the icon and color to use.
π The file defines inputs required for the workflow, such as the GitHub token and base branch.
π₯ It includes a default loading GIF URL to display while the pull request is being generated.
πΏ The file defines a template for the name of the target branch.
π It specifies whether to overwrite existing branches and pull requests when creating from issues.
This folder contains a collection of Python files and folders related to automating tasks and workflows. It includes files for actions and utilities, an entry point for GitHub Actions, logging configuration, the main service for running triggers and workflows, models for building and executing workflows, services for managing actions and Git operations, trigger configurations, and scripts and configuration files for managing workflows. These files and folders provide functionality for automating tasks, interacting with the GitHub platform, and executing customizable workflows.
π The file is a shell script
π§ It sets the Git configuration for a specific directory
βοΈ It sets the user email and name for Git commits
π¦ It activates a virtual environment
π It runs a Python module called autopr.gh_actions_entrypoint
π This file is an executive summary of a project or report
π It provides a high-level overview of the main points
π It highlights key findings, conclusions, and recommendations
π It may include a summary of data or analysis
π₯ It is intended for someone who is new to the project or report
π« It does not include trivial details or technical explanations
π‘ It gives a clear understanding of the purpose and scope of the project
π It provides a quick glance at the content without going into depth
πΌ It serves as a starting point for further exploration or discussion
π It is concise and easy to read, even if the file is empty
π This file is a configuration file for a Python project using Poetry.
π It contains information about the project's name, version, and authors.
π The license of the project is specified as MIT.
π¦ It lists the packages and their dependencies required for the project.
π§ͺ There are separate dependencies for testing and development.
π§ The build system used is Poetry.
π The file also includes configuration for the Pyright static type checker.
π It specifies the line length and target version for the Black code formatter.
π The file is a JSON schema describing a strict workflow definition.
π It defines various actions that can be performed within the workflow.
π Actions include commenting, setting issue titles, walking files, making API calls, running bash commands, and more.
π Each action has its own set of inputs and outputs.
π The workflow steps are defined as an array of actions.
π The schema also includes definitions for various data types and declarations used within the actions.
π The purpose of the file is to provide a standardized structure for defining and executing strict workflows.
ποΈ The schema can be used to validate and ensure the correctness of workflow definitions.
𧩠It allows for easy integration with other tools and systems that support the schema.
π The file can serve as a reference for understanding the structure and capabilities of strict workflows.
π This file is a JSON document describing a trigger configuration for a workflow.
π It defines various trigger types such as label, comment, push, and cron triggers.
ποΈ Each trigger type has its own set of properties and can be customized.
π Triggers can be used to initiate specific actions or workflows based on certain events.
π The document also includes definitions for different action models and their properties.
𧩠These action models can be used within the triggers to specify the desired behavior.
π The file provides a comprehensive overview of the available triggers and action models.
π§ It can be used as a reference guide for configuring and customizing workflows.
ποΈ The file structure is organized using nested objects and properties.
π It's important to review the specific trigger and action definitions to understand their functionality and usage.
π 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.
π The schema includes definitions for actions like commenting, setting issue title, walking files, making API calls, running bash commands, etc.
π It also defines different types of declarations like template, variable, constant, and lambda declarations.
π The workflow definition includes a name, description, inputs, and outputs.
π’ It consists of a list of steps which can be actions, workflow invocations, or conditional statements.
π Conditional statements can have if-else branches and support different conditions like lambda expressions and context checks.
π Workflow invocations can be either regular or iterable.
π Overall, this file provides a structured definition for creating and executing workflows with various actions and conditions.