diff --git a/.github/workflows/patch-code-of-conduct.yml b/.github/workflows/patch-code-of-conduct.yml new file mode 100644 index 000000000..26c3e4dea --- /dev/null +++ b/.github/workflows/patch-code-of-conduct.yml @@ -0,0 +1,26 @@ +name: Patch Code of Conduct +on: [push] + +jobs: + main_job: + runs-on: ubuntu-latest + name: Test Action + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + persist-credentials: false + - name: Patch CoC + uses: pkgjs/patch-my-code-of-conduct@v1.1.0 + with: + base_url: 'UPDATE_THIS' + template_url: 'https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md' + patch_file_path: './conduct/artifacts/CODE_OF_CONDUCT_PATCH' + output_file_path: './CODE_OF_CONDUCT.md' + - uses: gr2m/create-or-update-pull-request-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + body: "Applied the patch to the base Code of Conduct." + commit-message: 'doc: update Code of Conduct' + title: 'doc: update Code of Conduct' diff --git a/doc/CODE_OF_CONDUCT_BASE.md b/doc/CODE_OF_CONDUCT_BASE.md new file mode 100644 index 000000000..520c1c241 --- /dev/null +++ b/doc/CODE_OF_CONDUCT_BASE.md @@ -0,0 +1,40 @@ +The OpenJS Foundation and its member projects use [Contributor Covenant v2.0](https://contributor-covenant.org/version/2/0/code_of_conduct) as their code of conduct. The full text is included [below](#contributor-covenant-code-of-conduct-v20) in English, and [translations](https://www.contributor-covenant.org/translations) are available on the Contributor Covenant website. + +## Commitment + +All recipients of reports commit to: + +- maintain the confidentiality with regard to the reporter and victim of an incident, and +- participate in the path for escalation as outlined in the section on Escalation when required. + +## Report an issue in a project + +1. To report an issue in one of the projects listed below, please use the method provided. The project itself is responsible for managing these reports. + * **AMP Project:** + * **Appium:** email maintainers + * **Electron:** + * **Express.js:** + * **Fastify:** or + * **HospitalRun:** + * **LoopBack** + * **Node.js:** + * **Node-RED:** + * **Webdriver.io:** [contact TSC reps](https://github.com/webdriverio/webdriverio/blob/HEAD/AUTHORS.md) + * **Webhint:** +2. For every other OpenJS Foundation project, please email . The Cross Project Council (CPC) is responsible for managing these reports. + + +## Report an issue in a space managed by the foundation + +For reporting issues in spaces managed by the OpenJS Foundation, for example, repositories within the OpenJS organization or an live event such as a conferences, email . The Cross Project Council (CPC) is responsible for managing these reports. + +## Escalate an issue + +The OpenJS Foundation maintains a [Code of Conduct Panel (CoCP)](https://github.com/openjs-foundation/cross-project-council/blob/HEAD/conduct/FOUNDATION_CODE_OF_CONDUCT_REQUIREMENTS.md#code-of-conduct-panel). This is a foundation-wide team established to manage escalation when a reporter believes that a report to a member project or the CPC has not been properly handled. + +In order to escalate to the CoCP, email . + +## More Info + +For more information, refer to the full +[Code of Conduct governance document](https://github.com/openjs-foundation/cross-project-council/blob/HEAD/conduct/FOUNDATION_CODE_OF_CONDUCT_REQUIREMENTS.md). diff --git a/doc/CODE_OF_CONDUCT_PATCH b/doc/CODE_OF_CONDUCT_PATCH new file mode 100644 index 000000000..e69de29bb