elixir-cloud-aai / actions

Central repo for reusable Github actions
0 stars 0 forks source link

feat: add common ci #1

Open JaeAeich opened 2 months ago

JaeAeich commented 2 months ago

Summary by Sourcery

Add a common CI configuration for PR evaluations, including workflows for detecting unresolved conflicts, running pre-commit checks, and validating semantic PR titles. Include documentation for each action to guide users on their usage and configuration.

CI:

Documentation:

sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request introduces a common CI configuration for pull request evaluations. It adds several GitHub Actions workflows and their corresponding action files to perform various checks on pull requests, including detecting unresolved conflicts, running pre-commit checks, and validating semantic PR titles.

File-Level Changes

Change Details Files
Added a GitHub Actions workflow for PR evaluations
  • Configured workflow to run on push to main and various pull request events
  • Added job to detect unresolved conflicts
  • Added job for pre-commit checks
  • Added job for semantic PR title check
actions/common/pr-evaluations/example.yaml
Implemented semantic PR title check action
  • Created composite action for checking PR title semantics
  • Configured allowed types for semantic PR titles
  • Added check for PR title length (max 50 characters)
  • Included error message for non-compliant PR titles
actions/common/pr-evaluations/semantic-pr-title/action.yaml
actions/common/pr-evaluations/semantic-pr-title/README.md
Added pre-commit check action
  • Created composite action for running pre-commit checks
  • Added step to install pre-commit
  • Configured action to run all pre-commit checks defined in .pre-commit-config.yaml
actions/common/pr-evaluations/pre-commit/action.yaml
actions/common/pr-evaluations/pre-commit/README.md
Implemented unresolved conflicts detection action
  • Created composite action for detecting unresolved merge conflicts
  • Added step to check for merge conflict markers in the repository
  • Configured action to exit with an error if conflict markers are found
actions/common/pr-evaluations/unresolved-conflicts/action.yaml
actions/common/pr-evaluations/unresolved-conflicts/README.md

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.