Skip to content

Add contributor guide#285

Open
starkmarkus wants to merge 1 commit into
FyshOS:developfrom
starkmarkus:add-contributor-guide
Open

Add contributor guide#285
starkmarkus wants to merge 1 commit into
FyshOS:developfrom
starkmarkus:add-contributor-guide

Conversation

@starkmarkus

Copy link
Copy Markdown

Adds a CONTRIBUTING.md guide with branch guidance, local test commands, static analysis commands, and pull request expectations.

Why:

  • the repository has issue templates, a pull request template, and CI workflows, but no contributor guide in the GitHub community profile
  • this guide makes the expected validation path easier for outside contributors to find before opening a PR

Validation:

  • documentation-only change
  • reviewed against the PR template, CI workflows, README, and Go project layout

@andydotxyz andydotxyz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please re-word this to be a contributor focused document instead of an AI summary.

Comment thread CONTRIBUTING.md
git checkout -b your-change
```

Some local checks and tests need desktop or graphics-related system libraries. The GitHub Actions workflows install packages such as `clang`, `lld`, Mesa/OpenGL development libraries, X11/Wayland development libraries, `libpam-dev`, and `xvfb` on Linux.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems to be a report of what actions have been seen to do rather than what contributors should set up. It would be better to be explicit or link to https://docs.fyne.io/started/quick/

Comment thread CONTRIBUTING.md
Run the Go test suite before opening a pull request:

```bash
go test -tags ci -covermode=atomic -coverprofile=coverage.out ./...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

covermode adds slowness and is not required to test.

Comment thread CONTRIBUTING.md
go test -tags ci -covermode=atomic -coverprofile=coverage.out ./...
```

On Linux, the CI workflow runs the main test suite under `xvfb-run` and also runs Wayland-specific tests:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Another actions report - this is not needed for developers as they have X running already.

Comment thread CONTRIBUTING.md
- which tests and static checks you ran
- whether the change affects public APIs, desktop behavior, window manager behavior, or platform-specific code

The pull request template asks contributors to include tests, run lint and formatting checks, and confirm that tests pass. If any item does not apply, explain why in the pull request.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This also seems like an AI-ism. Describe that the user should do rather than what they might find.

i.e. When opening a pull request remember to complete the pull request template on GitHub

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.

2 participants