Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 2.96 KB

CONTRIBUTING.md

File metadata and controls

75 lines (47 loc) · 2.96 KB

Contributing Guidelines

Thank you for your interest in contributing to our project. The following is a set of guidelines for contributing to this project.

Contributors Workflow

Configure pre-commit

We use pre-commit to ensure code quality. We kindly ask you to use it before creating a pull request.

  1. Install pre-commit using pip (if you haven't already):

    pip install pre-commit
  2. Then install the git hook scripts:

    pre-commit install

Pre-commit will now run on every commit. If you want to run pre-commit checks manually, you can use:

pre-commit run

Creating a Feature Branch

Before you start working, please create a new, "feature" branch from the repo's default one. This will ensure your ongoing work does not affect the main branch and makes it easier to merge your changes later.

To create a new branch:

git checkout -b your-new-branch

Creating a Pull Request (PR)

Once ready, you can create a PR back from your feature branch to a repo's default branch.

We require pull request titles to follow the Conventional Commits specification. Make sure to prefix the title with one of the following: fix:, feat:, feature:, chore:, hotfix:. Breaking change pull requests may include ! after the type/scope, e.g. <type>!: <description>.

Maintainers Workflow

Checking a Pull Request (PR)

After a PR is created, it needs to be checked and reviewed before merging.

Review the changes in the PR and ensure they adhere to the code quality standards and are aligned with the project's objectives.

Updating Self-Dependencies

Once PR checked, ensure the self-dependencies (occurrences of uses: epam/ai-dial-ci) in it are updated. We don't update self-dependencies automatically, e.g. with Dependabot, so it must be done in the PR manually. You may use update-self-dependencies.sh script for your convenience.

$ ./update-self-dependencies.sh
Enter the next (predicted) version tag (e.g., 1.0.1): 1.9.3
Updated all occurrences of 'epam/ai-dial-ci/' with version '1.9.3'.
$

After updating self-dependencies, commit the changes and push them to the PR branch. Approve the PR and merge it.

Creating a new release

Follow the steps below to create a new release on GitHub:

  1. Navigate to your repository homepage.
  2. Click on the "Releases" tab which is next to the "About" section on the right side of the page.
  3. Click on "Draft a new release" button which is toward the right side of the screen.
  4. Hit "Choose a tag" and enter a unique tag for the new version following semver rules. This tag must match the tag used in Updating Self-Dependencies step. Hit "Create new tag".
  5. Click "Generate Release Notes". GitHub will automatically include a changelog of all commit messages since last release.
  6. Once all the details are finalized, click on the "Publish release" button.