Github recently added new community tools which lints projects for their own open-source community recommendations, one of which is to "add a CODE_OF_CONDUCT file in your repository".

Proposed resolution

Add a core/CODE_OF_CONDUCT.txt to Drupal's repository, with the contents of Drupal's code of conduct.

I suggest putting it in whichever folder holds MAINTAINERS.txt (i.e.: another piece of documentation you'd probably want to read if you wanted to interact with the Drupal community). In Drupal 8, MAINTAINERS.txt is in the core sub-directory; in Drupal 7 MAINTAINERS.txt is in the root folder.

I suggest we make it a .txt (as opposed to a markdown document / .md) to be consistent with other documentation in that directory.

I suggest we use the text from (as opposed to the DrupalCon Code of Conduct) because someone contributing would have to do so through anyway (i.e.: not necessarily DrupalCon).

Remaining tasks

  1. Write a patch
  2. Review and feedback
  3. RTBC and feedback
  4. Commit
  5. Discuss how to backport to 7.x

User interface changes


API changes


Data model changes



mparker17 created an issue. See original summary.

mparker17’s picture

Assigned: mparker17 » Unassigned
Issue summary: View changes
Status: Active » Needs review
5.87 KB

Here's a patch for the 8.4.x branch. Reviews welcome!

aburke626’s picture

I think this is great - one suggestion - should we add a link to the existing CoC in the text, in case it changes before this can be updated/people want to find it/etc?

mparker17’s picture

@aburke626, great idea! Here's an updated patch.

heyrocker’s picture

Given that this is already required for contributing, it makes sense to codify it in the codebase as well. +1

aburke626’s picture

This looks great! Thanks for taking this on.

aburke626’s picture

Status: Needs review » Reviewed & tested by the community
davidhernandez’s picture

Issue tags: +Project governance

This sounds like something that would need to go through project governance (ie. Dries' approval) so tagging.

cilefen’s picture

Can we not simply link to the CoC URL in order to reduce the maintenance burden (i.e. "forgetting to update") the file in code?

ultimike’s picture

We (the CWG) discussed this at our meeting today and have some thoughts/action items (for us):

  • We think having the text, not just a link, in the codebase is a good idea.
  • Once this is committed, we'll add some language to to mention that the CoC text is included as part of Drupal core (this will also help us to remember to keep it up-to-date in both places).
  • We will volunteer to ensure it stays up-to-date in code (with patches) as necessary.

Thanks for making this happen!


David_Rothstein’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +needs backport to D7

Nice idea, but:

  1. I hate to bring this up, but are there licensing issues with including this text directly? Content on is under a Create Commons license which as far as I know is not compatible with the GPL. So would it be necessary to get all the authors to agree to relicense it under the GPL?
  2. Even if people remember to patch core when the Code of Conduct changes, that doesn't change the fact that outdated versions will still be included in older releases. So at an absolute minimum, I think the text here would need to make clear that isn't just where you go to find "more information", it's where you go to find the current up-to-date version.
  3. There is nothing in here that explains who the Code of Conduct is for or where it applies. That is of course more of a flaw with the Code of Conduct itself, but where it's relevant here is that just because someone has a copy of the Drupal software and is using it doesn't mean this "code of conduct" is relevant to them in any way.

To address all three of those points, I agree with @cilefen's idea of simply having this file link to the Code of Conduct on -- but also suggest that there be a brief introductory paragraph before the link that explains what the Code of Conduct actually is.