Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Bug report
description: An export that fails, or content that comes out missing or wrong.
title: "[Bug]: "
labels:
- bug
body:
- type: markdown
attributes:
value: |
Security issues go to security@contentrain.io, not here (see SECURITY.md).
Do not attach production credentials or a full WordPress export.
- type: input
id: bridge-version
attributes:
label: Bridge version
placeholder: "0.8.4"
validations:
required: true
- type: input
id: environment
attributes:
label: WordPress and PHP versions
placeholder: "WordPress 6.8, PHP 8.2"
validations:
required: true
- type: textarea
id: plugins
attributes:
label: Relevant plugins and theme
description: For example ACF, Yoast SEO, Elementor, the active theme.
- type: textarea
id: summary
attributes:
label: What happened?
description: What you expected in the export, and what you got.
validations:
required: true
- type: textarea
id: repro
attributes:
label: Steps to reproduce
placeholder: |
1. Create a post with ...
2. Run the export from Tools > Contentrain Bridge
3. Open ... in the export
validations:
required: true
- type: textarea
id: context
attributes:
label: Extra context
description: Warnings from the export report, PHP error log lines, screenshots.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Report a security issue
url: https://github.com/Contentrain/wordpress-bridge/blob/main/SECURITY.md
about: Report vulnerabilities privately to security@contentrain.io.
- name: Moving a whole site to Astro
url: https://migrate.contentrain.io
about: Questions about Contentrain Migrate, the paid migration service.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Feature request
description: A source the plugin should read, or an improvement to the export.
title: "[Feature]: "
labels:
- enhancement
body:
- type: textarea
id: problem
attributes:
label: Problem to solve
description: What content or setting is not exported today, or what is hard to use?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed change
description: What the export or admin screen should do.
- type: textarea
id: context
attributes:
label: Extra context
description: Plugins involved, example sites (public only), links.
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## What changes

## Why

## How it was tested

- [ ] `php -l` and `composer lint`
- [ ] `npm test`
- [ ] `npm run test:wordpress` (when export behaviour changes)
- [ ] No version bump or `readme.txt` stable tag change
77 changes: 77 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of
any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address,
without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official email address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
**info@contentrain.io**.

All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
49 changes: 49 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Contributing

Thanks for helping with Contentrain Bridge, the free WordPress plugin that exports a site's content layer as a Contentrain store.

## Ways to contribute

- Report a bug: an export that fails, a field that is missing or wrong, a plugin or theme the export does not read.
- Propose an improvement: a source the plugin should model, a clearer admin screen, better docs.
- Send a pull request with a fix or a test.

Security issues do not go in public issues. See [SECURITY.md](SECURITY.md).

## Before you open an issue

- Use the latest [release](https://github.com/Contentrain/wordpress-bridge/releases/latest).
- Include the WordPress and PHP versions, and the plugins involved (for example ACF, Yoast, a page builder).
- Never attach production credentials or a full WordPress export. A small reproduction (one post type, a few posts) is enough.

## Development

The plugin has no runtime dependency and no build step. The checks CI runs are listed in [RELEASING.md](RELEASING.md). The quick ones:

```sh
find . -name '*.php' -not -path './vendor/*' -print0 | xargs -0 -n1 php -l
composer install && composer lint
npm ci --ignore-scripts
npm test
```

The WordPress acceptance suite runs in Docker:

```sh
npm run test:wordpress
```

## Pull requests

- Keep a pull request to one change, with a test when behaviour changes.
- The output contract comes from [`@contentrain/types`](https://github.com/Contentrain/ai/tree/main/packages/types). A change to the exported store shape starts there, not in the plugin.
- The plugin must keep passing the official WordPress Plugin Check (`npm run test:plugin`).
- Do not change the version or `readme.txt` stable tag in a pull request. Releases are cut by maintainers.

## License

The plugin is licensed under [GPL-2.0-or-later](LICENSE). By opening a pull request, you agree that your contribution is licensed under the same terms.

## Code of conduct

This project follows the [Contributor Covenant](CODE_OF_CONDUCT.md).
Loading