From c13279a3c43d69831f1faefa2733c0fe70d8132f Mon Sep 17 00:00:00 2001 From: Ralph Schuler Date: Sun, 26 Nov 2023 04:50:33 +0100 Subject: [PATCH] chore(opencommit.yml): add OpenCommit Action workflow file This commit adds the `.github/workflows/opencommit.yml` file, which defines a workflow for the OpenCommit Action. The workflow is triggered on push events, excluding the `main` and `master` branches. It runs on the `ubuntu-latest` environment and has a timeout of 10 minutes. The workflow consists of the following steps: 1. Setup Node.js environment using the `actions/setup-node@v2` action with Node.js version 16. 2. Checkout the repository with the `actions/checkout@v3` action, setting the fetch depth to 0. 3. Use the `di-sukharev/opencommit@github-action-v1.0.4` action to run the OpenCommit Action. It requires the `GITHUB_TOKEN` secret to authenticate with the GitHub API. 4. Set environment variables for the OpenCommit Action, including the `OCO_OPENAI_API_KEY`, `OCO_OPENAI_MAX_TOKENS`, `OCO_OPENAI_BASE_PATH`, `OCO_DESCRIPTION`, `OCO_EMOJI`, `OCO_MODEL`, `OCO_LANGUAGE`, and `OCO_PROMPT_MODULE`. These changes were made to enable the OpenCommit Action in the repository, allowing for automated generation of conventional commit messages using OpenAI's GPT-3.5 Turbo model.