Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First PR #1

Merged
merged 1 commit into from
Aug 3, 2024
Merged

First PR #1

merged 1 commit into from
Aug 3, 2024

Conversation

nao1215
Copy link
Owner

@nao1215 nao1215 commented Aug 3, 2024

Summary by CodeRabbit

  • New Features

    • Added funding configuration to allow users to support the project directly on GitHub.
    • Introduced structured templates for bug reports and feature requests to enhance user communication.
    • Implemented automated workflows for testing, code quality checks, and security validation.
    • Created options for configuring the Coincheck client and added functionalities for retrieving ticker and bank account information.
  • Documentation

    • Added a Code of Conduct and a Security Policy to promote a respectful community and outline vulnerability reporting.
    • Updated the Contributing guidelines to include both coding and non-coding contributions.
  • Bug Fixes

    • Enhanced error handling in the Coincheck API client to provide clearer feedback for various conditions.

Copy link

coderabbitai bot commented Aug 3, 2024

Walkthrough

This update enhances the project's GitHub repository with new templates for bug and feature requests, a funding configuration, and automated workflows for testing, linting, and security checks. It establishes a structured approach to managing dependencies, ensuring code quality, and fostering community engagement. Additionally, it introduces tools for interacting with the Coincheck API and managing authentication, thereby improving usability and security across the codebase.

Changes

File(s) Change Summary
.github/FUNDING.yml Added a funding configuration file to support project contributions through a GitHub funding button.
.github/ISSUE_TEMPLATE/*.md Introduced structured templates for bug reports and feature requests, standardizing submissions for better clarity and communication.
.github/dependabot.yml Established configuration for Dependabot to automate dependency management.
.github/workflows/*.yml Implemented multiple GitHub Actions workflows for testing, coverage reporting, security scanning, and code quality checks using various tools.
.gitignore Updated to ignore coverage profile files, keeping the repository clean from clutter.
.golangci.yml Configured GolangCI-Lint with specific rules to maintain code quality in Go projects.
.octocov.yml Added OctoCov configuration for managing and reporting code coverage metrics.
CODE_OF_CONDUCT.md Introduced guidelines to foster a respectful and inclusive community environment.
CONTRIBUTING.md Updated to include comprehensive guidelines for both coding and non-coding contributions.
Makefile Created to streamline development tasks for building, testing, and managing Go project dependencies.
README.md Modified title and content to clarify the project's dual purpose as both a public and private API client.
SECURITY.md Established a security policy outlining procedures for reporting vulnerabilities and adherence to best practices.
coincheck.go, credentials.go, errors.go, ticker.go, withdraw.go Introduced core functionalities for interacting with the Coincheck API, including methods for authentication and data retrieval.
option.go, option_test.go Defined functional options for client configuration and corresponding unit tests to ensure correctness.
test_helper_test.go Added a utility function for standardized error reporting in tests.
go.mod Set up module dependencies for the project, specifying Go version and required packages.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant GitHub
    participant CoincheckAPI
    participant CI/CD

    User->>GitHub: Create issue (bug/feature request)
    GitHub->>User: Send template
    User->>GitHub: Submit filled template
    GitHub->>CI/CD: Trigger workflows (tests, linting, coverage)
    CI/CD->>CoincheckAPI: Fetch data (tickers/accounts)
    CoincheckAPI-->>CI/CD: Return response
    CI/CD->>GitHub: Update issue status and coverage reports
    GitHub-->>User: Notify about progress and results
Loading

🐇 “In the garden where code grows,
With templates and workflows, now it flows.
Bugs reported, features asked,
In this bright space, we’re all unmasked!
With a hop and a skip, let’s contribute more,
Together we build, and the code will soar!” 🐾


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (2)
README.md (2)

23-67: Example Usage: Well-Structured but Fix Hard Tabs

The example usage section is well-structured and effectively demonstrates how to use the public API. However, the code snippet contains hard tabs which should be replaced with spaces.

-	"context"
-	"fmt"
-	"github.com/nao1215/coincheck"
-	client, err := coincheck.NewClient()
-	ticker, err := client.GetTicker(context.Background(), coincheck.GetTickerInput{
-		Pair: coincheck.PairETCJPY,
-	fmt.Printf("Last: %d\n", ticker.Last)
-	fmt.Printf("Bid: %d\n", ticker.Bid)
-	fmt.Printf("Ask: %d\n", ticker.Ask)
-	fmt.Printf("High: %d\n", ticker.High)
-	fmt.Printf("Low: %d\n", ticker.Low)
-	fmt.Printf("Volume: %s\n", ticker.Volume)
-	fmt.Printf("Timestamp: %d\n", ticker.Timestamp)
+  "context"
+  "fmt"
+  "github.com/nao1215/coincheck"
+  client, err := coincheck.NewClient()
+  ticker, err := client.GetTicker(context.Background(), coincheck.GetTickerInput{
+    Pair: coincheck.PairETCJPY,
+  fmt.Printf("Last: %d\n", ticker.Last)
+  fmt.Printf("Bid: %d\n", ticker.Bid)
+  fmt.Printf("Ask: %d\n", ticker.Ask)
+  fmt.Printf("High: %d\n", ticker.High)
+  fmt.Printf("Low: %d\n", ticker.Low)
+  fmt.Printf("Volume: %s\n", ticker.Volume)
+  fmt.Printf("Timestamp: %d\n", ticker.Timestamp)
Tools
Markdownlint

31-31: Column: 1
Hard tabs

(MD010, no-hard-tabs)


32-32: Column: 1
Hard tabs

(MD010, no-hard-tabs)


34-34: Column: 1
Hard tabs

(MD010, no-hard-tabs)


38-38: Column: 1
Hard tabs

(MD010, no-hard-tabs)


39-39: Column: 1
Hard tabs

(MD010, no-hard-tabs)


40-40: Column: 1
Hard tabs

(MD010, no-hard-tabs)


41-41: Column: 1
Hard tabs

(MD010, no-hard-tabs)


43-43: Column: 1
Hard tabs

(MD010, no-hard-tabs)


44-44: Column: 1
Hard tabs

(MD010, no-hard-tabs)


45-45: Column: 1
Hard tabs

(MD010, no-hard-tabs)


46-46: Column: 1
Hard tabs

(MD010, no-hard-tabs)


47-47: Column: 1
Hard tabs

(MD010, no-hard-tabs)


48-48: Column: 1
Hard tabs

(MD010, no-hard-tabs)


49-49: Column: 1
Hard tabs

(MD010, no-hard-tabs)


51-51: Column: 1
Hard tabs

(MD010, no-hard-tabs)


52-52: Column: 1
Hard tabs

(MD010, no-hard-tabs)


53-53: Column: 1
Hard tabs

(MD010, no-hard-tabs)


54-54: Column: 1
Hard tabs

(MD010, no-hard-tabs)


55-55: Column: 1
Hard tabs

(MD010, no-hard-tabs)


56-56: Column: 1
Hard tabs

(MD010, no-hard-tabs)


57-57: Column: 1
Hard tabs

(MD010, no-hard-tabs)


89-109: License, Contribution, and Contributors: Informative but Fix Style and Typographical Issues

The sections are informative and encourage community involvement. However, there are minor style and typographical issues.

- Please feel free to contribute to this project.
+ Contributions to this project are welcome.

- Thanks goes to these wonderful people
+ Thanks go to these wonderful people

- Contributions of any kind welcome!
+ Contributions of any kind are welcome.
Tools
LanguageTool

[style] ~95-~95: The phrase ‘feel free to’ is used quite frequently. Consider using a less frequent alternative to set your writing apart from others and make it sound more professional.
Context: ...e, GitHub Star motivates me to develop! Please feel free to contribute to this project. ## Contri...

(FEEL_FREE_TO_STYLE_ME)


[typographical] ~99-~99: It seems that a comma is missing.
Context: ...e to this project. ## Contributors ✨ Thanks goes to these wonderful people ([emoji ...

(THANKS_COMMA)


[style] ~109-~109: Using many exclamation marks might seem excessive (in this case: 4 exclamation marks for a text that’s 1805 characters long)
Context: ...ation. Contributions of any kind welcome!

(EN_EXCESSIVE_EXCLAMATION)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3fc0f9d and aa167a1.

Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
Files selected for processing (28)
  • .all-contributorsrc (1 hunks)
  • .github/FUNDING.yml (1 hunks)
  • .github/ISSUE_TEMPLATE/bug_report.md (1 hunks)
  • .github/ISSUE_TEMPLATE/feature-request.md (1 hunks)
  • .github/dependabot.yml (1 hunks)
  • .github/workflows/coverage.yml (1 hunks)
  • .github/workflows/gitleak.yml (1 hunks)
  • .github/workflows/reviewdog.yml (1 hunks)
  • .github/workflows/unit_test.yml (1 hunks)
  • .gitignore (1 hunks)
  • .golangci.yml (1 hunks)
  • .octocov.yml (1 hunks)
  • CODE_OF_CONDUCT.md (1 hunks)
  • CONTRIBUTING.md (1 hunks)
  • Makefile (1 hunks)
  • README.md (1 hunks)
  • SECURITY.md (1 hunks)
  • coincheck.go (1 hunks)
  • credentials.go (1 hunks)
  • errors.go (1 hunks)
  • go.mod (1 hunks)
  • option.go (1 hunks)
  • option_test.go (1 hunks)
  • test_helper_test.go (1 hunks)
  • ticker.go (1 hunks)
  • ticker_test.go (1 hunks)
  • withdraw.go (1 hunks)
  • withdraw_test.go (1 hunks)
Files skipped from review due to trivial changes (6)
  • .all-contributorsrc
  • .github/FUNDING.yml
  • .github/workflows/gitleak.yml
  • CONTRIBUTING.md
  • Makefile
  • go.mod
Files skipped from review as they are similar to previous changes (21)
  • .github/ISSUE_TEMPLATE/bug_report.md
  • .github/ISSUE_TEMPLATE/feature-request.md
  • .github/dependabot.yml
  • .github/workflows/coverage.yml
  • .github/workflows/reviewdog.yml
  • .github/workflows/unit_test.yml
  • .gitignore
  • .golangci.yml
  • .octocov.yml
  • CODE_OF_CONDUCT.md
  • SECURITY.md
  • coincheck.go
  • credentials.go
  • errors.go
  • option.go
  • option_test.go
  • test_helper_test.go
  • ticker.go
  • ticker_test.go
  • withdraw.go
  • withdraw_test.go
Additional context used
LanguageTool
README.md

[style] ~95-~95: The phrase ‘feel free to’ is used quite frequently. Consider using a less frequent alternative to set your writing apart from others and make it sound more professional.
Context: ...e, GitHub Star motivates me to develop! Please feel free to contribute to this project. ## Contri...

(FEEL_FREE_TO_STYLE_ME)


[typographical] ~99-~99: It seems that a comma is missing.
Context: ...e to this project. ## Contributors ✨ Thanks goes to these wonderful people ([emoji ...

(THANKS_COMMA)


[style] ~109-~109: Using many exclamation marks might seem excessive (in this case: 4 exclamation marks for a text that’s 1805 characters long)
Context: ...ation. Contributions of any kind welcome!

(EN_EXCESSIVE_EXCLAMATION)

Markdownlint
README.md

31-31: Column: 1
Hard tabs

(MD010, no-hard-tabs)


32-32: Column: 1
Hard tabs

(MD010, no-hard-tabs)


34-34: Column: 1
Hard tabs

(MD010, no-hard-tabs)


38-38: Column: 1
Hard tabs

(MD010, no-hard-tabs)


39-39: Column: 1
Hard tabs

(MD010, no-hard-tabs)


40-40: Column: 1
Hard tabs

(MD010, no-hard-tabs)


41-41: Column: 1
Hard tabs

(MD010, no-hard-tabs)


43-43: Column: 1
Hard tabs

(MD010, no-hard-tabs)


44-44: Column: 1
Hard tabs

(MD010, no-hard-tabs)


45-45: Column: 1
Hard tabs

(MD010, no-hard-tabs)


46-46: Column: 1
Hard tabs

(MD010, no-hard-tabs)


47-47: Column: 1
Hard tabs

(MD010, no-hard-tabs)


48-48: Column: 1
Hard tabs

(MD010, no-hard-tabs)


49-49: Column: 1
Hard tabs

(MD010, no-hard-tabs)


51-51: Column: 1
Hard tabs

(MD010, no-hard-tabs)


52-52: Column: 1
Hard tabs

(MD010, no-hard-tabs)


53-53: Column: 1
Hard tabs

(MD010, no-hard-tabs)


54-54: Column: 1
Hard tabs

(MD010, no-hard-tabs)


55-55: Column: 1
Hard tabs

(MD010, no-hard-tabs)


56-56: Column: 1
Hard tabs

(MD010, no-hard-tabs)


57-57: Column: 1
Hard tabs

(MD010, no-hard-tabs)


73-73: Column: 1
Hard tabs

(MD010, no-hard-tabs)

Additional comments not posted (5)
README.md (5)

1-4: Title and Badges: Good Update

The title clearly indicates the dual functionality of the library, and the badge section is a good addition for community engagement.


6-7: Important Notice: Essential Addition

The notice about the library being under development is crucial for setting user expectations.


9-16: Library Description: Informative and Clear

The description provides a clear overview of the library and its API capabilities, which is very helpful for users.


18-21: Supported OS and Go Version: Clear and Useful

The information about supported operating systems and Go versions is clear and useful for users.


76-87: API List: Well-Organized

The API list is well-organized and provides a clear overview of the available methods.

@nao1215 nao1215 merged commit 5bebda3 into main Aug 3, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant