Skip to content

Commit

Permalink
New question: CodeOfConductContact
Browse files Browse the repository at this point in the history
Decouple the Code of conduct contact from the AuthorEmail.

Closes #426
  • Loading branch information
abelsiqueira committed Sep 5, 2024
1 parent 82bd740 commit ab4d6b9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ and this project adheres to [Semantic Versioning].
- The minimum Julia version is also guessed now (#225)
- The package owner is also guessed now (#225)
- The indentation is also guessed now (#225)
- New question: JuliaMinCIVersion, which defines which Julia version to use in the CI (#400)
- New question: AutoIncludeTests, that auto-includes all `test-*.jl` files in `runtests.jl` (#261)
- New question: `JuliaMinCIVersion`, which defines which Julia version to use in the CI (#400)
- New question: `AutoIncludeTests`, that auto-includes all `test-*.jl` files in `runtests.jl` (#261)
- New question: `CodeOfConductContact`, the contact person/entity for the `CODE_OF_CONDUCT.md` file (#426)

### Changed

Expand Down
8 changes: 7 additions & 1 deletion copier/community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ AddCodeOfConduct:
when: "{{ AnswerStrategy == 'ask' }}"
type: bool
default: "{{ AnswerStrategy != 'minimum' }}"
help: Code of conduct file (Add a CODE_OF_CONDUCT.md file from Contributor Covenant? {{ AuthorEmail }} will be listed as contact point)
help: Code of conduct file (Add a CODE_OF_CONDUCT.md file from Contributor Covenant?)

CodeOfConductContact:
when: "{{ AddCodeOfConduct }}"
type: str
help: Contact person/entity listed in the CODE_OF_CONDUCT.md file (Will be listed as contact to enforce the code of conduct, if necessary)
default: "{{ AuthorEmail }}"

AddGitHubTemplates:
when: "{{ AnswerStrategy == 'ask' }}"
Expand Down
1 change: 1 addition & 0 deletions src/debug/Data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const optional_questions_with_default = Dict(
"AddContributionDocs" => true,
"AddAllcontributors" => true,
"AddCodeOfConduct" => true,
"CodeOfConductContact" => strategy_minimum["AuthorEmail"],
"AddGitHubTemplates" => true,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ 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
`{{ AuthorEmail }}`.
reported to the community leaders responsible for enforcement:
`{{ CodeOfConductContact }}`.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down

0 comments on commit ab4d6b9

Please sign in to comment.