Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Remove CODE_OF_CONDUCT.md so GitHub drops the Code of conduct tab

Claudef1fad6bb34dc
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
deleted file mode 100644
index da552cd..0000000
--- a/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Code of Conduct
-
-## Our pledge
-
-We are committed to making participation in this project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
-
-## Our standards
-
-Examples of behavior that contributes to a positive environment:
-
-- Being respectful and constructive in discussions.
-- Accepting feedback gracefully.
-- Focusing on what is best for the project and its users.
-
-Examples of unacceptable behavior:
-
-- Harassment, insults, or derogatory comments.
-- Personal or political attacks.
-- Publishing others' private information without permission.
-- Any conduct that would be inappropriate in a professional setting.
-
-## Enforcement
-
-Project maintainers may remove, edit, or reject comments, commits, issues, and pull requests that violate this Code of Conduct. Contributors who do not follow these standards may be temporarily or permanently banned from participating.
-
-To report a Code of Conduct issue, use GitHub's own reporting. Open the menu (the three dots) on the issue, pull request or comment, choose **Report content**, and then pick one of:
-
-- **Report to repository admins**, which sends your report to the people who administer this repository.
-- **Report abuse to GitHub Support**, if the problem is with a maintainer, or if GitHub offers you only this choice.
-
-The project has no email address for reports. Reports will be reviewed and handled as confidentially as practical.
-
-## Scope
-
-This Code of Conduct applies to all project spaces, including issues, pull requests, discussions, and any other communication channel associated with this repository.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1.
diff --git a/src/lib/project-contact.test.ts b/src/lib/project-contact.test.ts
index 8ce7ff5..5f03081 100644
--- a/src/lib/project-contact.test.ts
+++ b/src/lib/project-contact.test.ts
@@ -84,21 +84,15 @@ test("nothing in the repository points at a site or a mailbox run by the project
assert.deepEqual(offenders, []);
});
-test("security and conduct reports go through GitHub, not to an email address", () => {
- for (const name of ["SECURITY.md", "CODE_OF_CONDUCT.md"]) {
- const text = readFileSync(path.join(repoRoot, name), "utf8");
+test("security reports go through GitHub, not to an email address", () => {
+ const text = readFileSync(path.join(repoRoot, "SECURITY.md"), "utf8");
- assert.doesNotMatch(text, /[\w.+-]+@[\w-]+\.[a-z]{2,}/i, name);
- assert.doesNotMatch(text, /mailto:/i, name);
- }
+ assert.doesNotMatch(text, /[\w.+-]+@[\w-]+\.[a-z]{2,}/i);
+ assert.doesNotMatch(text, /mailto:/i);
assert.ok(
readFileSync(path.join(repoRoot, "SECURITY.md"), "utf8").includes(
"https://github.com/NYLLON-SOFTWARE/SignuDoc/security/advisories/new",
),
);
- assert.match(
- readFileSync(path.join(repoRoot, "CODE_OF_CONDUCT.md"), "utf8"),
- /Report content/,
- );
});