Skip to content
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

Ensure Generated "Other Community Standards" Are Relevant to Project #8

Open
Alexhuszagh opened this issue Jan 9, 2020 · 0 comments

Comments

@Alexhuszagh
Copy link

In a similar fashion to #7, the current default-generated Code of Conduct includes community standards for both Github and NPM, by default, even if the project does not use Github, nor NPM.

Sample Output

### Other Community Standards

As a project on GitHub, this project is additionally covered by the [GitHub Community Guidelines](https://help.github.com/articles/github-community-guidelines/).

Additionally, as a project hosted on npm, it is covered by [npm, Inc's Code of Conduct](https://www.npmjs.com/policies/conduct).

Enforcement of those guidelines after violations overlapping with the above are the responsibility of the entities, and enforcement may happen in any or all of the services/communities.

This produces less-than-stellar defaults for projects, say, hosted on other hosting services, or using other programming languages.

Hosting Service Fix
1). Read the output of git remote -v.
2). Parse the output depending on SSH or HTTPS origins, and find the host domain name.
3). Determine if the repository is hosted on Github, Gitlab, Bitbucket, or other.
4). Add the relevant CoCs or community standards in a relevant fashion.

Package Manager Fix
1). Determine if there's a package.json without the "publish": false option.
2). Determine if there's a Cargo.toml without the publish = false option.
3). Maybe whitelist additional programming languages, like Python, etc.

@Alexhuszagh Alexhuszagh changed the title Remove the Unnecessary Community Standards Ensure Generated "Other Community Standards" Are Relevant to Project Jan 9, 2020
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

No branches or pull requests

1 participant