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

Defining the Contribution Process and Project Management Process #256

Merged

Conversation

davidvonthenen
Copy link
Contributor

@davidvonthenen davidvonthenen commented Jul 11, 2024

Proposed changes

This PR explicitly (and hopefully without any ambiguity) defines:

  • updates the main CONTRIBUTING.md landing page to include references to the following pages below:
    • CODE_CONTRIBUTIONS_GUIDE.md describes how someone can setup their environment/laptop/desktop for this project to contribute
    • GITHUB_WORKFLOW.md describes the code contribution workflow for ALL individuals (admin, project maintainer, any Deepgram employee contributor, 3rd party/external contributor, etc). We all follow the same process.

      Commentary on why this is so important:
      Project maintainers (and Deepgram employees) should lead by example... considering external contributors have no choice but to follow this workflow (not because this document said so or I did, like legitimately that's their ONLY choice unless random 3rd party people are given "special" access to the repo which is bad and also doesn't scale). Do what they are going to do.

      Even if you don't want to (which I get.. it's just another thing to learn), do it because you need to understand how to help external contributors when they have problems with branching, or rebasing, or etc. Do this because oftentimes external contributors are going to get into git commit hell and you should know how to help without saying "create a new branch", "refork the repo", (blindly) "force push"ing because the commit history is wonky; those should NEVER be the answer. As a maintainer (or Deepgran employee), you should know how to unwind or resync even the most complex git commit hell.

      And we haven't even gotten to technical reasons why you don't want to create branches directly on the upstream repo....

    • BRANCH_AND_RELEASE_PROCESS.md describes the branch and release process for this project

Other fixes:

  • CODE_OF_CONDUCT.md had a number of markdown errors being flagged by the markdown linter
  • Organization fixes for README.md

Types of changes

What types of changes does your code introduce to the community Go SDK?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update or tests (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have lint'ed all of my code using repo standards
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

NA

Summary by CodeRabbit

  • Documentation

    • Added a comprehensive guide for contributing to the Go SDK project.
    • Improved the structure and enforcement guidelines in the Code of Conduct.
    • Reorganized the CONTRIBUTING.md file for better clarity and added a new section on prerequisites.
    • Introduced a detailed GitHub workflow guide for project contributions.
    • Refined the quickstart sections in the README.md to better distinguish between different audio processing capabilities.
  • New Features

    • Introduced a hybrid branching strategy combining GitHub Flow and Git Flow for better collaboration and CI/CD support.

Copy link

coderabbitai bot commented Jul 11, 2024

Warning

Rate limit exceeded

@dvonthenen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 13 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between db54827 and 71ee4e0.

Walkthrough

The recent changes involve updating documentation files within the repository to improve clarity, structure, and consistency. Significant alterations include refinements to guides on code contributions, GitHub workflow, and conduct. Additionally, the README.md file was reorganized for better readability, and some function names in the source code were modified for clarity.

Changes

File Change Summary
.github/CODE_CONTRIBUTIONS_GUIDE.md Added a comprehensive guide on contributing to the Go SDK project, from setup to GitHub workflow.
.github/CODE_OF_CONDUCT.md Refined heading levels, enforcement guidelines, and overall document structure for better clarity.
.github/CONTRIBUTING.md Reorganized content structure, added a section on submission prerequisites, and refined contribution process steps.
.github/GITHUB_WORKFLOW.md Added detailed guide to GitHub workflow, emphasizing best practices like preferring rebase over git pull.
README.md Refactored quickstart sections, distinguishing between live/streaming audio and pre-recorded audio processing.
.github/BRANCH_AND_RELEASE_PROCESS.md Introduced a hybrid branching strategy combining GitHub Flow and Git Flow to facilitate collaboration and CI/CD adoption.
src/deepgram.go, src/speak.go Renamed functions for clarity, e.g., client.NewWithDefaults() to client.NewRESTWithDefaults().

Sequence Diagram(s)

Silently ignoring generating this section.


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: 1

Outside diff range, codebase verification and nitpick comments (10)
.github/CONTRIBUTING.md (4)

16-27: Correct minor typographical error and improve clarity.

Correct the minor typographical error in the first sentence and improve the clarity of the suggestions list.

- The first step to getting starting contributing to Go SDK is to find something to work on. Help is always welcome, and no contribution is too small (but see below)!
+ The first step to getting started with contributing to the Go SDK is to find something to work on. Help is always welcome, and no contribution is too small (but see below)!

Here are some things you can do today to get started contributing:

- Help improve the documentation.
- Clarify code, variables, or functions by adding comments.
- Write test coverage.
- Help triage issues.

29-44: Ensure consistency in contribution types formatting.

Ensure that the formatting of the contribution types is consistent and clear.

-  - If you find a bug, please first report it using Github Issues.
-  - Issues that have already been identified as a bug will be labeled `🐛 bug`.
-    - Before you start any coding or implementation, please see the [Making Code Contributions](#making-code-contributions) section first.
+  - If you find a bug, please first report it using GitHub Issues.
+  - Issues that have already been identified as a bug will be labeled `🐛 bug`.
+  - Before you start any coding or implementation, please see the [Making Code Contributions](#making-code-contributions) section first.

48-48: Capitalize the first word in the sentence.

Capitalize the first word to maintain consistency in the documentation.

- for those interested in contributing code to the project, please review the [Code Contribution Guide](https://github.com/deepgram/deepgram-go-sdk/blob/main/.github/CODE_CONTRIBUTIONS_GUIDE.md) for more details.
+ For those interested in contributing code to the project, please review the [Code Contribution Guide](https://github.com/deepgram/deepgram-go-sdk/blob/main/.github/CODE_CONTRIBUTIONS_GUIDE.md) for more details.

5-7: Ensure internal links are functional.

The internal link to the "Contribution Types" section is broken because the section header is missing in the .github/CONTRIBUTING.md file.

  • Missing Section: ## Contribution Types
Analysis chain

Ensure internal links are functional.

Verify that the internal links for "Your First Contribution," "Contribution Types," and "Making Code Contributions" are correctly set up and functional.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the internal links in the CONTRIBUTING.md file.

# Test: Check if the internal links are functional. Expect: All links to be valid.
grep -E '\(#your-first-contribution\)|\(#contribution-types\)|\(#making-code-contributions\)' .github/CONTRIBUTING.md

Length of output: 561


Script:

#!/bin/bash
# Description: Verify the presence of section headers in the CONTRIBUTING.md file.

# Test: Check if the section headers exist. Expect: All headers to be present.
grep -E '^## (Your First Contribution|Contribution Types|Making Code Contributions)' .github/CONTRIBUTING.md

Length of output: 167

README.md (6)

86-113: Correct minor typographical errors and improve clarity.

Correct minor typographical errors in the code comments and improve the clarity of the sample code.

-    Sample_rate: 16000,
+    SampleRate: 16000,
+}

+// create the client
+dgClient, err := client.NewWebSocketWithDefaults(ctx, transcriptOptions, callback)
+if err != nil {
+    log.Println("ERROR creating LiveTranscription connection:", err)
+    os.Exit(1)
+}

+// call connect!
+wsconn := dgClient.Connect()
+if wsconn == nil {
+    log.Println("Client.Connect failed")
+    os.Exit(1)
+}

Line range hint 115-139:
Ensure consistency in variable naming and improve clarity.

Ensure that the variable naming is consistent and improve the clarity of the sample code.

- URL := "https://my-domain.com/files/my-conversation.mp3"
- res, err := dg.FromURL(ctx, URL, options)
+ url := "https://my-domain.com/files/my-conversation.mp3"
+ res, err := dg.FromURL(ctx, url, options)

143-169: Correct minor typographical errors and improve clarity.

Correct minor typographical errors in the code comments and improve the clarity of the sample code.

-    fmt.Println("ERROR creating TTS connection:", err)
+    log.Println("ERROR creating TTS connection:", err)

171-188: Correct minor typographical errors and improve clarity.

Correct minor typographical errors in the code comments and improve the clarity of the sample code.

-    fmt.Printf("FromStream failed. Err: %v\n", err)
+    log.Printf("FromStream failed. Err: %v\n", err)

199-203: Ensure consistency in example links formatting.

Ensure that the formatting of the example links is consistent and clear.

-  - From a Microphone - [examples/speech-to-text/websocket/microphone](https://github.com/deepgram/deepgram-go-sdk/blob/main/examples/speech-to-text/websocket/microphone/main.go)
-  - From an HTTP Endpoint - [examples/speech-to-text/websocket/http](https://github.com/deepgram/deepgram-go-sdk/blob/main/examples/speech-to-text/websocket/http/main.go)
+  - From a Microphone - [examples/speech-to-text/websocket/microphone](https://github.com/deepgram/deepgram-go-sdk/blob/main/examples/speech-to-text/websocket/microphone/main.go)
+  - From an HTTP Endpoint - [examples/speech-to-text/websocket/http](https://github.com/deepgram/deepgram-go-sdk/blob/main/examples/speech-to-text/websocket/http/main.go)

13-16: Ensure all quickstart links are functional.

The following quickstart links in the README.md file are not functional because their corresponding section headers are missing:

Please add the missing sections or remove the links if they are not needed.

Analysis chain

Ensure quickstart links are functional.

Verify that the quickstart links are correctly set up and functional.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the quickstart links in the README.md file.

# Test: Check if the quickstart links are functional. Expect: All links to be valid.
grep -E '\(#speech-to-text-from-livestreaming-audio-quickstart\)|\(#speech-to-text-from-prerecorded-audio-quickstart\)|\(#text-to-speech-websocket-quickstart\)|\(#text-to-speech-rest-quickstart\)' README.md

Length of output: 594


Script:

#!/bin/bash
# Description: Verify that the corresponding section headers exist in the README.md file.

# Test: Check if the section headers for the quickstart links exist.
grep -E '##\sSpeech-to-Text\sWebSocket\s\(from\sLive/Streaming\sAudio\)\sQuickstart|##\sSpeech-to-Text\sREST\s\(from\sPreRecorded\sAudio\)\sQuickstart|##\sText-to-Speech\sWebSocket\sQuickstart|##\sText-to-Speech\sREST\sQuickstart' README.md

Length of output: 317

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1456965 and 62ae7e0.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review due to trivial changes (4)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CODE_OF_CONDUCT.md
  • .github/GITHUB_WORKFLOW.md

.github/CONTRIBUTING.md Show resolved Hide resolved
@davidvonthenen davidvonthenen force-pushed the docs-refresh-tts-contrib branch from 62ae7e0 to 47bd2c4 Compare July 12, 2024 00:05
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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 62ae7e0 and 47bd2c4.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review as they are similar to previous changes (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CODE_OF_CONDUCT.md
  • .github/CONTRIBUTING.md
  • .github/GITHUB_WORKFLOW.md
  • README.md

@davidvonthenen davidvonthenen force-pushed the docs-refresh-tts-contrib branch from 47bd2c4 to 087d250 Compare July 12, 2024 00:19
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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 47bd2c4 and 087d250.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review as they are similar to previous changes (5)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CONTRIBUTING.md
  • .github/GITHUB_WORKFLOW.md
  • README.md
Additional comments not posted (8)
.github/CODE_OF_CONDUCT.md (8)

5-5: LGTM! Heading level changed for consistency.

The change to the heading level for "Being a Good Community Member" improves consistency with other major sections.


66-66: LGTM! Heading level changed for consistency.

The change to the heading level for "Additional rules for online spaces" improves consistency with other sections.


90-90: LGTM! Heading level changed for consistency.

The change to the heading level for "Enforcement & Reporting" improves consistency with other sections.


94-94: LGTM! Heading level changed for consistency.

The change to the heading level for "Enforcement Guidelines" improves consistency with the nesting structure of the document.


98-98: LGTM! Heading level changed for consistency.

The change to the heading level for "1. Correction" improves consistency with the nesting structure of the document.


104-104: LGTM! Heading level changed for consistency.

The change to the heading level for "2. Warning" improves consistency with the nesting structure of the document.


110-110: LGTM! Heading level changed for consistency.

The change to the heading level for "3. Temporary Ban" improves consistency with the nesting structure of the document.


116-116: LGTM! Heading level changed for consistency.

The change to the heading level for "4. Permanent Ban" improves consistency with the nesting structure of the document.

@davidvonthenen davidvonthenen force-pushed the docs-refresh-tts-contrib branch 2 times, most recently from ae8143e to 73b59a0 Compare July 12, 2024 14:37
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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 087d250 and ae8143e.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review as they are similar to previous changes (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CODE_OF_CONDUCT.md
  • .github/CONTRIBUTING.md
  • .github/GITHUB_WORKFLOW.md
  • README.md

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ae8143e and 73b59a0.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review as they are similar to previous changes (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CODE_OF_CONDUCT.md
  • .github/CONTRIBUTING.md
  • .github/GITHUB_WORKFLOW.md
  • README.md

@davidvonthenen davidvonthenen force-pushed the docs-refresh-tts-contrib branch from 73b59a0 to 27efcbc Compare July 12, 2024 15:53
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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 73b59a0 and 27efcbc.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review as they are similar to previous changes (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CODE_OF_CONDUCT.md
  • .github/CONTRIBUTING.md
  • .github/GITHUB_WORKFLOW.md
  • README.md

@davidvonthenen davidvonthenen force-pushed the docs-refresh-tts-contrib branch 2 times, most recently from 0671fab to db54827 Compare July 15, 2024 17:49
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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 27efcbc and db54827.

Files selected for processing (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md (1 hunks)
  • .github/CODE_CONTRIBUTIONS_GUIDE.md (1 hunks)
  • .github/CODE_OF_CONDUCT.md (3 hunks)
  • .github/CONTRIBUTING.md (1 hunks)
  • .github/GITHUB_WORKFLOW.md (1 hunks)
  • README.md (6 hunks)
Files skipped from review as they are similar to previous changes (6)
  • .github/BRANCH_AND_RELEASE_PROCESS.md
  • .github/CODE_CONTRIBUTIONS_GUIDE.md
  • .github/CODE_OF_CONDUCT.md
  • .github/CONTRIBUTING.md
  • .github/GITHUB_WORKFLOW.md
  • README.md

@davidvonthenen davidvonthenen force-pushed the docs-refresh-tts-contrib branch from db54827 to 71ee4e0 Compare July 19, 2024 00:08
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.

3 participants