Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

feat: add go cli #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add go cli #1

wants to merge 1 commit into from

Conversation

marcelosousa
Copy link
Member

@marcelosousa marcelosousa commented Mar 22, 2023

Description

This pull request introduces a Go CLI

Closes #3.

Type of change

New feature (non-breaking change which adds functionality)

Checklist

  • I have performed a self-review of my code

Code review and merge strategy (ship/show/ask)

Ask: this pull request requires a code review before merge

@reviewpad reviewpad bot mentioned this pull request Mar 23, 2023
9 tasks
@reviewpad
Copy link
Contributor

reviewpad bot commented Mar 23, 2023

AI-Generated Pull Request Summary: This pull request adds a new Go CLI with the following changes:

  • It modifies the .gitignore to only ignore the ai-preview binary.
  • It creates three new command files: commit-msg.go, init.go, and root.go in the cmd package.
  • It adds a new Go module with the required dependencies: github.com/reviewpad/go-conventionalcommits, and github.com/spf13/cobra.
  • It creates a new go.sum file with the dependency checksums.
  • Additionally, it creates a main.go file that executes the CLI.

The CLI itself seems to offer commands for checking if a commit message respects the conventional commits format and for installing git hooks.

@reviewpad reviewpad bot requested a review from adrianoapmartins March 23, 2023 10:29
@reviewpad
Copy link
Contributor

reviewpad bot commented Mar 23, 2023

Thank you @marcelosousa for this first contribution!

@reviewpad reviewpad bot added medium Pull request is medium waiting-for-review labels Mar 23, 2023
@marcelosousa marcelosousa linked an issue Mar 29, 2023 that may be closed by this pull request
@marcelosousa
Copy link
Member Author

/reviewpad summarize

@reviewpad
Copy link
Contributor

reviewpad bot commented Mar 29, 2023

AI-Generated Pull Request Summary: This pull request introduces a new CLI tool in Go that adds support for checking if commit messages follow the conventional commits format. It also sets up basic CLI infrastructure using the Cobra library and installs Git hooks. Specifically, the changes include:

  • Adding new command files commit-msg.go, init.go, and root.go.
  • Creating a new Go module with required dependencies, including the go-conventionalcommits and cobra libraries.
  • Updating the .gitignore file.
  • Implementing the commit-msg command to check and lint commit messages.
  • Implementing the init command to install the Git hooks.
  • Adding the main entry point file main.go for the CLI application.

@marcelosousa
Copy link
Member Author

/reviewpad robin prompt is there any security vulnerabilities in this code?

@reviewpad
Copy link
Contributor

reviewpad bot commented Mar 29, 2023

From the provided patch, I don't see any apparent security vulnerabilities in the code. However, it is important to note that a comprehensive security review should involve more in-depth analysis, potentially including static code analysis and dynamic testing. Also, keep your dependencies up-to-date to mitigate any security risks that may be inherent in the third-party libraries used in your project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
medium Pull request is medium waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Go CLI
1 participant