Skip to content

docs(sdk): Add CONTRIBUTING.md template#16854

Open
dingsdax wants to merge 13 commits intomasterfrom
docs/contributing-md-template
Open

docs(sdk): Add CONTRIBUTING.md template#16854
dingsdax wants to merge 13 commits intomasterfrom
docs/contributing-md-template

Conversation

@dingsdax
Copy link
Contributor

@dingsdax dingsdax commented Mar 10, 2026

Replaces the TBD placeholder in contributing-md-template.mdx with a full guide: what belongs in a CONTRIBUTING.md, good examples from 5 SDK repos, and a copyable template covering setup, workflow, testing, PR submission, code review (LOGAF), AI attribution, and getting help.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

dingsdax and others added 5 commits March 10, 2026 10:59
Replace TBD placeholder in contributing-md-template.mdx with a full
guide modeled on agents-md-template.mdx. Covers the nine standard
sections (welcome, setup, workflow, testing, PR submission, code
review with LOGAF, AI attribution, help, CoC), lists good examples
from five SDK repos, and includes a copyable template.

Also adds a .claude/skills/contributing-md/SKILL.md draft for
submission to getsentry/sdk-skills — detects ecosystem, fills
placeholders from CI config and package manifests, preserves
SDK-specific sections, and flags non-standard content with TODOs.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
- LOGAF notation: use h:/m:/l: (colon, h-first) to match review-ci standard
- LOGAF descriptions: match canonical definitions from review-ci.mdx
- Branch naming: <username>/<type>/<short-description> to match code-submission standard
- SLAs in "What Belongs": spell out "business day" instead of "BD"
- Good Examples: add lead-in sentence matching agents-md-template pattern

Co-Authored-By: Claude <noreply@anthropic.com>
- h: fix broken ../../discussions relative link — use placeholder URL
- m: fix ecosystem detection: react-native in package.json (not Podfile)
  to correctly distinguish React Native from sentry-cocoa/iOS repos
- m: fix SKILL.md checklist: "table" → "list" to match template
- l: commit format wording: "description" → "subject" to match standard

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Mar 10, 2026 3:18pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
sentry-docs Ignored Ignored Preview Mar 10, 2026 3:18pm

Request Review

dingsdax and others added 2 commits March 10, 2026 11:30
Co-Authored-By: Claude <noreply@anthropic.com>
Not a universal standard — only used in sentry-cocoa.

Co-Authored-By: Claude <noreply@anthropic.com>
dingsdax and others added 2 commits March 10, 2026 11:52
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
dingsdax and others added 3 commits March 10, 2026 12:29
Co-Authored-By: Claude <noreply@anthropic.com>
- discord.gg/sentry → discord.com/invite/sentry
- sentry-cocoa CONTRIBUTING.md master → main
- sentry-java CONTRIBUTING.md master → main

Co-Authored-By: Claude <noreply@anthropic.com>

Remove sections that don't apply and replace all `[placeholder]` values with real content.

<CopyableCard title="CONTRIBUTING.md">
Copy link

Choose a reason for hiding this comment

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

Bug: The domToMarkdown function in copyableCard.tsx lacks handlers for heading tags (h1-h6). When copying content with headings, the markdown formatting (#, ##) is lost.
Severity: MEDIUM

Suggested Fix

Update the domToMarkdown function in src/components/copyableCard.tsx to include case statements for heading elements (h1, h2, h3, etc.). These handlers should prepend the corresponding markdown characters (# , ## , ### , etc.) to the node's text content.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: develop-docs/sdk/getting-started/templates/contributing-md-template.mdx#L46

Potential issue: The `domToMarkdown` function in `src/components/copyableCard.tsx`
processes DOM nodes to generate markdown. It has handlers for various tags like `p`,
`li`, and `strong`, but lacks cases for heading tags (`h1` through `h6`). When the new
`CopyableCard` in `contributing-md-template.mdx` is used, its content, which includes
markdown headings, is rendered into HTML heading elements. Clicking "Copy body" triggers
`domToMarkdown`, which falls back to its default case for these unhandled heading tags.
This results in only the text content of the headings being copied, stripping the
essential `#` and `##` markdown prefixes and breaking the document structure.

1. Fork the repository and clone your fork.
2. \[SDK-specific setup steps — e.g. install language runtime, create virtualenv, etc.\]
3. Install dependencies: `[install command]`
4. Run tests: `[test command]`
Copy link
Contributor

Choose a reason for hiding this comment

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

not necessary to get started

Suggested change
4. Run tests: `[test command]`

Comment on lines +64 to +66
- **Commits:** follow `type(scope): subject` format (e.g. `fix(transport): handle connection timeout`). See the [code submission standard](https://develop.sentry.dev/sdk/getting-started/standards/code-submission/).
- **Branches:** `<username>/<type>/<short-description>` (e.g. `alice/fix/rate-limit-parsing`)
- **Changelog:** add an entry under `## Unreleased` in `CHANGELOG.md` for every user-facing change.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- **Commits:** follow `type(scope): subject` format (e.g. `fix(transport): handle connection timeout`). See the [code submission standard](https://develop.sentry.dev/sdk/getting-started/standards/code-submission/).
- **Branches:** `<username>/<type>/<short-description>` (e.g. `alice/fix/rate-limit-parsing`)
- **Changelog:** add an entry under `## Unreleased` in `CHANGELOG.md` for every user-facing change.
See our [principles](https://develop.sentry.dev/sdk/getting-started/principles/) and [standards](https://develop.sentry.dev/sdk/getting-started/standards/) for SDK development.

- `m:` (medium) — should fix: design, missing tests, clarity
- `l:` (low) — optional nit: style, minor suggestions

Expected SLAs: **1 business day** for Sentry engineers, **2 business days** for external contributors.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would not put that in that file

Suggested change
Expected SLAs: **1 business day** for Sentry engineers, **2 business days** for external contributors.

Copy link
Contributor

@stephanie-anderson stephanie-anderson left a comment

Choose a reason for hiding this comment

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

I'm not sure if we should be referencing playbooks for our own teams (like reviewing external contrib PRs etc). THe CONTRIBUTING.md is meant for external contributors to read to understand the rules, not necessarily our own folks. We can clarify that in the intro if you think that makes sense, and can additionally link to the develop docs, so potential candidates / hires can read what is important to us. But for community members this could be perceived as noise

Copy link
Contributor

@stephanie-anderson stephanie-anderson left a comment

Choose a reason for hiding this comment

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

Ah, one more thing! Could you please move the file from /sdk/getting-started/templates/contributing-md-template/ to /sdk/getting-started/templates/contributing-md/ and add a redirect? template is already in the URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk-develop-docs PRs touching develop-docs/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants