Skip to content

docs: OSS starter docs - #52

Merged
zhravan merged 1 commit into
mainfrom
docs-oss
Sep 16, 2025
Merged

docs: OSS starter docs#52
zhravan merged 1 commit into
mainfrom
docs-oss

Conversation

@zhravan

@zhravan zhravan commented Sep 16, 2025

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • None
  • Documentation

    • Added comprehensive contributing guide and code of conduct.
    • Introduced a security policy with reporting instructions.
    • Updated README with a Contributing section and helpful links.
  • Chores

    • Added standardized issue templates for bug reports and feature requests to streamline submissions.
    • Added a pull request template to guide change descriptions, checks, and references.
  • Tests

    • None
  • Bug Fixes

    • None

@coderabbitai

coderabbitai Bot commented Sep 16, 2025

Copy link
Copy Markdown

Walkthrough

Adds community and contribution documentation plus GitHub issue/PR templates. Introduces CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md, two issue templates, and a PR template. README.md gains a Contributing section with links and a commands placeholder. No code or API changes.

Changes

Cohort / File(s) Summary
GitHub templates
./.github/ISSUE_TEMPLATE/bug_report.md, ./.github/ISSUE_TEMPLATE/feature_request.md, ./.github/PULL_REQUEST_TEMPLATE.md
Adds bug report and feature request issue templates with YAML front matter and guided sections; adds a PR template with summary, checklist, output, and related issues sections.
Community policies
./CODE_OF_CONDUCT.md, ./SECURITY.md
Adds Contributor Covenant-based code of conduct with enforcement details; adds security policy with supported versions and private reporting process.
Contributor docs
./CONTRIBUTING.md, ./README.md
Adds detailed contributing guide (setup, tests, workflow, exercise guidelines, licensing); updates README with Contributing section linking to contributing, code of conduct, and security docs, plus a commands placeholder.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A nibble of docs, a hop through templates bright,
I thump-approve the paths that guide our bites.
New forms, kind conduct, security in sight—
Burrows tidy now for day and night.
Hippity hooray, let’s merge this right! 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "docs: OSS starter docs" is concise, single-line, and accurately summarizes the primary change: adding starter open-source documentation (CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, issue/PR templates, and README updates), so it communicates the main intent clearly for repo history.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-oss

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zhravan
zhravan merged commit 6c1263b into main Sep 16, 2025
@zhravan
zhravan deleted the docs-oss branch September 16, 2025 23:04

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (13)
README.md (1)

40-44: Good additions; tighten phrasing and make links resilient.

  • Consider absolute repo-root links to avoid breakage when README is viewed outside GitHub (e.g., pkg.go.dev). Also add a short “Questions?” pointer.
-### Contributing
-- See [CONTRIBUTING.md](./CONTRIBUTING.md)
-- Please follow our [Code of Conduct](./CODE_OF_CONDUCT.md)
-- Security issues: see [SECURITY.md](./SECURITY.md)
+### Contributing
+- See [CONTRIBUTING.md](/CONTRIBUTING.md)
+- Please follow our [Code of Conduct](/CODE_OF_CONDUCT.md)
+- Security issues: see [SECURITY.md](/SECURITY.md)
+- Questions or ideas? Open a [discussion](https://github.com/zhravan/golearn/discussions) or [issue](https://github.com/zhravan/golearn/issues).

If Discussions aren’t enabled, drop that bullet, or I can adjust the wording.

.github/ISSUE_TEMPLATE/bug_report.md (2)

24-29: Ask for exact versions with a copy-pastable command.

Add a field for the CLI version and suggest how to capture it.

 ### Environment
-
-- OS:
-- Go version:
-- GoLearn version:
+ - OS:
+ - Go version:
+ - GoLearn version (output of `golearn --version`):

Please confirm the binary prints a version with golearn --version (or version). If it uses a different flag, I’ll update the template accordingly.


13-19: Prompt for minimal, reproducible steps.

Small tweak to nudge high-signal repros and attach logs.

-### To Reproduce
-
-Steps to reproduce the behavior:
-
-1. Command(s) run
-2. Output
+### To Reproduce
+Provide minimal steps and exact commands:
+1. Commands run
+2. Expected vs actual output
+3. Relevant logs (use `--verbose` if available) and redacted config

If the CLI supports a --verbose/--debug flag, we can reference it explicitly.

SECURITY.md (2)

8-13: Unify and harden the reporting channel.

Security contact here (security@example.com) differs from the Code of Conduct address. Use a single, monitored alias and mention GitHub Security Advisories. Add timeline expectations.

-## Reporting a vulnerability
-- Email: security@example.com
-- Please include steps to reproduce and any PoC code if available
-- Do not open public issues for security problems
+## Reporting a vulnerability
+- Email: <mrshravankumarb@gmail.com>  <!-- or a project alias like security@your-domain -->
+- You may also use GitHub Security Advisories (Private report) on this repo.
+- Include steps to reproduce and any PoC code if available.
+- Do not open public issues for security problems.
+
+Timeline: we acknowledge within 72 hours, provide an initial assessment within 7 days, and coordinate a fix and disclosure window (typically 30–90 days).

If you have or plan a project alias (e.g., security@…), I can update both SECURITY.md and CODE_OF_CONDUCT.md to match.


5-7: Clarify support window.

“Latest minor release” can be ambiguous. Consider a small table or SemVer note.

 ## Supported versions
-We generally support the latest minor release of the CLI.
+We generally support the latest minor release (SemVer) of the CLI.
+
+Examples:
+- 1.6.x: supported
+- 1.5.x and earlier: unsupported
.github/PULL_REQUEST_TEMPLATE.md (2)

5-10: Add breaking-change and security-impact prompts.

These two prompts reduce surprises post-merge.

 ## Checklist
-
 - [ ] Tests pass: `make verify` or `golearn verify <slug>`
 - [ ] Docs updated (README/CONTRIBUTING) if needed
 - [ ] No large new dependencies
+ - [ ] Breaking changes documented (flags, config, output)
+ - [ ] Security impact considered (auth, secrets, file paths)

15-17: Encourage precise linking to issues.

Nudge authors to use auto-closing syntax and multiple references.

-## Related issues
-
-Fixes #
+## Related issues
+Fixes #<id>  <!-- or closes/resolves -->
+Related: #<id>, #<id>
.github/ISSUE_TEMPLATE/feature_request.md (1)

9-23: Capture acceptance criteria and scope.

Adds success criteria and out-of-scope to align expectations.

 ### Proposal
-
 Describe the solution you'd like.
 
 ### Alternatives
-
 Describe alternatives you've considered.
 
+### Acceptance criteria
+How we’ll know this is done (clear, testable).
+
+### Out of scope
+Anything explicitly not included.
+
 ### Additional context
-
 Add any other context or screenshots.
CODE_OF_CONDUCT.md (1)

21-27: Use a project alias and add scope/enforcement guidelines snippets.

Personal inboxes don’t scale; also consider Contributor Covenant 2.1 “Enforcement Guidelines” section.

-Report unacceptable behavior to the maintainers at: <mrshravankumarb@gmail.com>.
+Report unacceptable behavior to: <conduct@your-domain> (or the primary project contact).
+
+## Scope
+This Code of Conduct applies within all project spaces and when an individual is officially representing the project.
+
+## Enforcement Guidelines
+Community leaders will follow a reasonable, documented process for determining consequences for any action they deem in violation of this Code of Conduct (see Contributor Covenant v2.1 for examples).

If you prefer to keep a single contact for both CoC and security, say so and I’ll align both files.

CONTRIBUTING.md (4)

14-28: Add go toolchain note and a tip for local paths.

Small tweaks to reduce friction for new contributors.

 ## Development setup
@@
-# Build the CLI
-make build        # or: go build ./cmd/golearn
+# Build the CLI (Go 1.22+; optionally pin with `go toolchain use go1.22.x`)
+make build        # or: go build ./cmd/golearn
@@
-# Initialize embedded exercises into a workspace
+# Initialize embedded exercises into a workspace
 mkdir -p /tmp/golearn-ws && cd /tmp/golearn-ws
-/path/to/bin/golearn init
+~/path/to/golearn/bin/golearn init   # adjust path per your setup

39-45: Suggest adding lint/static analysis guidance (lightweight).

Keeps the binary lean while catching bugs early.

 ## Code style
@@
-- Match existing formatting; run `gofmt` and `go vet`
+- Match existing formatting; run `gofmt` and `go vet`
+- Optionally run `staticcheck` or `golangci-lint` locally before PRs

48-52: Encourage conventional commit messages.

Improves changelog generation and searchability.

 1. Create a feature branch
-2. Make focused commits with descriptive messages
+2. Make focused commits with descriptive messages (e.g., Conventional Commits)
 3. Ensure `make build` and `make verify` pass
 4. Open a PR with a clear title and description (screenshots welcome)

55-59: Call out schema/validation for catalog.yaml (if available).

If you have a validator, reference it; otherwise ignore.

 - Provide hints in `internal/exercises/catalog.yaml`
+ - Validate `catalog.yaml` format before committing (add a `make catalog-validate` target if helpful)

I can add a lightweight make catalog-validate target if there’s a schema/tool you prefer.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cc91a52 and 4d1e6c8.

📒 Files selected for processing (7)
  • .github/ISSUE_TEMPLATE/bug_report.md (1 hunks)
  • .github/ISSUE_TEMPLATE/feature_request.md (1 hunks)
  • .github/PULL_REQUEST_TEMPLATE.md (1 hunks)
  • CODE_OF_CONDUCT.md (1 hunks)
  • CONTRIBUTING.md (1 hunks)
  • README.md (1 hunks)
  • SECURITY.md (1 hunks)
🔇 Additional comments (2)
CONTRIBUTING.md (2)

66-69: Nice touch including solution verification.

This is clear and actionable.


32-37: Makefile 'build' and 'verify' targets exist and match CONTRIBUTING.md.
No changes required.

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