Repository navigation
chore: update documentation and scripts for improved setup and contri… #381
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Default repository owner. Add area owners as maintainers accept responsibility. | ||
| * @yashdev9274 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Maintainer playbook | ||
|
|
||
| This is a working process, not a service-level guarantee. Keep ownership and labels accurate as the team changes; contributors should be able to tell who needs to act next. | ||
|
|
||
| ## Issue triage | ||
|
|
||
| Review new issues and pull requests regularly, ideally weekly. Search for duplicates, acknowledge the report, and ask for a reproducible example or missing environment details. Confirm the affected application and expected behavior before marking work ready. Link duplicates and explain closure decisions; never ask for credentials or private user data in public. | ||
|
|
||
| Use a small, consistent label vocabulary. Existing labels may coexist during migration: | ||
|
|
||
| - `kind:bug`, `kind:feature`, `kind:docs`, `kind:maintenance` | ||
| - `area:web`, `area:cli`, `area:nova-desktop`, `area:supercode-desktop`, `area:jarvis`, `area:api`, `area:docs`, `area:marketplace`, `area:superdesign`, `area:nova-agent`, `area:packages`, `area:ci` | ||
| - `status:needs-triage`, `status:needs-info`, `status:ready`, `status:blocked` | ||
| - `priority:high`, `priority:medium`, `priority:low`; reserve `good first issue` for scoped, actionable work with context and a reviewer. | ||
|
|
||
| The PR label workflow creates and applies area labels based on changed paths. Labels do not imply a review, priority, or approval. Maintainers should apply issue, status, and priority labels as appropriate and periodically remove stale status labels. | ||
|
|
||
| ## Review and ownership | ||
|
|
||
| `CODEOWNERS` identifies the default reviewer for repository changes; update it when maintainers explicitly take responsibility for a component. Maintainers should check the linked issue, behavior, relevant tests and documentation, compatibility across consumers of shared packages, and security implications. Request screenshots or a recording where appropriate. Be specific and respectful in review, state who should act next, and close out abandoned or out-of-scope work with an explanation. Automated labels and passing checks do not replace review. | ||
|
|
||
| Configure branch protection or rulesets in GitHub to require an appropriate review and passing, reliable checks before merging; repository files alone cannot enforce these settings. Check that fork PRs have safe, secret-free CI and do not run untrusted code in privileged workflows. | ||
|
|
||
| ## CI and dependencies | ||
|
|
||
| Keep root and application-specific instructions aligned with actual scripts and runtime versions. Required CI should fail if prerequisites or generation fail. Investigate flaky checks before making them required; disclose placeholder checks instead of treating them as coverage. Review Dependabot updates, particularly runtime and framework changes, with the relevant focused tests. Changes to shared packages may require checks in multiple applications. | ||
|
|
||
| ## Releases | ||
|
|
||
| Each application can have its own release process. Follow the applicable workflow and application README; the Supercode Desktop workflow builds and verifies an artifact and creates a draft release for clean-install review. Before publishing any release, identify the commit and version, run applicable platform tests and smoke checks, verify artifacts, write user-facing notes with links to changes and known issues, and identify a rollback path. Never assume a draft artifact has been published or live-tested. | ||
|
|
||
| ## Regular health review | ||
|
|
||
| Periodically review untriaged issues, PRs waiting on maintainers, CI failures and flaky tests, outdated setup docs, dependency updates, release readiness, and area ownership. Useful measures include age of untriaged reports, time to first human response, and PRs awaiting maintainer action; use them to improve the process rather than reward raw activity. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Label pull request areas | ||
|
|
||
| # Only reads PR metadata and labels; never checks out or executes PR code. | ||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| label: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const areas = { | ||
| "area:web": ["apps/web/"], | ||
| "area:cli": ["apps/supercode-cli/"], | ||
| "area:nova-desktop": ["apps/nova-desktop/"], | ||
| "area:supercode-desktop": ["apps/supercode-desktop/"], | ||
| "area:jarvis": ["apps/jarvis/"], | ||
| "area:api": ["apps/api/"], | ||
| "area:docs": ["apps/docs/", "docs/"], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "area:marketplace": ["apps/marketplace/"], | ||
| "area:superdesign": ["apps/superdesign/"], | ||
| "area:nova-agent": ["apps/nova-agent/"], | ||
| "area:packages": ["packages/"], | ||
| "area:ci": [".github/"], | ||
| } | ||
| const { owner, repo } = context.repo | ||
| const files = await github.paginate(github.rest.pulls.listFiles, { | ||
| owner, repo, pull_number: context.issue.number, per_page: 100, | ||
| }) | ||
| const labels = Object.entries(areas) | ||
| .filter(([, prefixes]) => files.some(file => prefixes.some(prefix => file.filename.startsWith(prefix)))) | ||
| .map(([label]) => label) | ||
| for (const name of labels) { | ||
| try { | ||
| await github.rest.issues.getLabel({ owner, repo, name }) | ||
| } catch (error) { | ||
| if (error.status !== 404) throw error | ||
| try { | ||
| await github.rest.issues.createLabel({ owner, repo, name, color: "1d76db" }) | ||
| } catch (createError) { | ||
| if (createError.status !== 422) throw createError | ||
| } | ||
| } | ||
| } | ||
| if (labels.length) { | ||
| await github.rest.issues.addLabels({ owner, repo, issue_number: context.issue.number, labels }) | ||
|
Comment on lines
+52
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On |
||
| } | ||
|
Comment on lines
+52
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove stale area labels when the PR diff changes. If a PR first changes Reconcile the labels owned by
|
||
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.
Keep a closing keyword for resolved issues.
When a contributor fills in
Related issue: #123, merging the PR does not close the issue. The previousFixes #prompt did. Provide aFixes #prompt for issues the PR resolves, while allowing related issues to remain open.