-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
First PR #1
Conversation
WalkthroughThis 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
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
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configuration File (
|
0eb9914
to
aa167a1
Compare
There was a problem hiding this 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 TabsThe 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 IssuesThe 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
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 UpdateThe 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 AdditionThe notice about the library being under development is crucial for setting user expectations.
9-16
: Library Description: Informative and ClearThe 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 UsefulThe information about supported operating systems and Go versions is clear and useful for users.
76-87
: API List: Well-OrganizedThe API list is well-organized and provides a clear overview of the available methods.
Summary by CodeRabbit
New Features
Documentation
Bug Fixes