{"id":15099379,"url":"https://github.com/bogdaaamn/code-of-conduct-notifier-action","last_synced_at":"2026-01-27T06:01:24.801Z","repository":{"id":45592545,"uuid":"430881696","full_name":"bogdaaamn/code-of-conduct-notifier-action","owner":"bogdaaamn","description":"Simple Action that reminds the members of your community about the Code of Conduct","archived":false,"fork":false,"pushed_at":"2021-12-06T18:31:23.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T17:08:47.966Z","etag":null,"topics":["action","code-of-conduct","community","community-members","moderation","moderation-bot"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/code-of-conduct-notifier","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bogdaaamn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-22T22:18:13.000Z","updated_at":"2022-01-21T19:02:41.000Z","dependencies_parsed_at":"2023-01-11T17:22:49.207Z","dependency_job_id":null,"html_url":"https://github.com/bogdaaamn/code-of-conduct-notifier-action","commit_stats":{"total_commits":61,"total_committers":1,"mean_commits":61.0,"dds":0.0,"last_synced_commit":"dee5b463d76684af2d72700ed503c9d10affa583"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bogdaaamn/code-of-conduct-notifier-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdaaamn%2Fcode-of-conduct-notifier-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdaaamn%2Fcode-of-conduct-notifier-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdaaamn%2Fcode-of-conduct-notifier-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdaaamn%2Fcode-of-conduct-notifier-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bogdaaamn","download_url":"https://codeload.github.com/bogdaaamn/code-of-conduct-notifier-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdaaamn%2Fcode-of-conduct-notifier-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28805327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T05:43:52.625Z","status":"ssl_error","status_checked_at":"2026-01-27T05:43:48.957Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","code-of-conduct","community","community-members","moderation","moderation-bot"],"created_at":"2024-09-25T17:11:48.303Z","updated_at":"2026-01-27T06:01:24.784Z","avatar_url":"https://github.com/bogdaaamn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code of Conduct Notifier Action\n\n![Actions Bot commenting \"Please keep our community guidelines in mind while posting. Your message violates our code of conduct and has been removed.\"](./static/coc-notifier-action-gh.png)\n\n## Description\nThe challenge of managing online communities is continuously growing. Often times the members are spread across multiple platforms, making it harder to get a complete snapshot of its members' interactions and behavior. While platforms employ different tools and methods to moderate (potentially harmful) conversations, the moderators' priority will always be to create a safe and positive community experience for everybody. This Action aims to help just a little bit the GitHub communities moderators into enforcing their Code of Conduct. \n\n## Usage\nThis is a simple GitHub Action that notifies the members of the community of their Code of Conduct document when this is mentioned. The Action will reply to issues and pull requests comments when the keywords _code of conduct_ are mentioned. \n\n## Inputs\n\n### `comment-body`\n**Default**: `\"For questions about our community guidelines, please refer to our Code of Conduct: \u003cURL\u003e.\"`\n\nThe comment that the bot will post about the Code of Conduct. It can use the tag `\u003cURL\u003e` to be replaced with the Code of Conduct URL mentioned in the `coc-url` input. It supports multiline and markdown formatting, see [Workflows](#workflows) for examples.\n\n### `coc-url`\n**Default**: `\"CODE_OF_CONDUCT.md\"`\n\nThe URL to the Code of Conduct. Used to be mentioned in the body of the comment, where the tag `\u003cURL\u003e` is placed. It supports both relative paths (_e.g._ `/docs/CODE_OF_CONDUCT.md`) and absolute paths (_e.g._ `https://example.com/codeofconduct.html`), see [Workflows](#workflows) for examples.\n\n## Workflows\nFor all the use cases, I strongly recommend using the `if: contains(github.event.comment.body, 'code of conduct')` conditional for the job. It will skip the processing (_15s_ per comment) of the comment altogether if it does not contain the keywords _code of conduct_. The conditional is **not** case sensitive, it can mention _Code of Conduct_ or other case-y variations. \n\n### Default behavior \n```yaml\nname: CoC Notifier\n\non:\n  issue_comment: # Action gets triggered on both issues and PRs comments\n    types:\n      - created\n\njobs:\n  notify:\n    name: \"Code of Conduct Notifier\"\n    runs-on: ubuntu-latest\n    if: contains(github.event.comment.body, 'code of conduct')\n    steps:\n      - uses: BogDAAAMN/code-of-conduct-notifier-action@v1.0.0\n```\n\n### Markdown body\n```yaml\nname: CoC Notifier\n\non:\n  issue_comment: # Action gets triggered on both issues and PRs comments\n    types:\n      - created\n\njobs:\n  notify:\n    name: \"Code of Conduct Notifier\"\n    runs-on: ubuntu-latest\n    if: contains(github.event.comment.body, 'code of conduct')\n    steps:\n      - uses: BogDAAAMN/code-of-conduct-notifier-action@v1.0.0\n        with:\n          comment-body: \"For questions about our **community guidelines**, please refer to our [Code of Conduct](\u003cURL\u003e).\"\n```\n\n### Multiline body\n```yaml\nname: CoC Notifier\n\non:\n  issue_comment: # Action gets triggered on both issues and PRs comments\n    types:\n      - created\n\njobs:\n  notify:\n    name: \"Code of Conduct Notifier\"\n    runs-on: ubuntu-latest\n    if: contains(github.event.comment.body, 'code of conduct')\n    steps:\n      - uses: BogDAAAMN/code-of-conduct-notifier-action@v1.0.0\n        with:\n          comment-body: |\n            For questions about our **community guidelines**, please refer to our [Code of Conduct](\u003cURL\u003e).\n            As always, our moderator team is happy to answer questions or provide more detail.\n```\n\n### Absolute URL\n```yaml\nname: CoC Notifier\n\non:\n  issue_comment: # Action gets triggered on both issues and PRs comments\n    types:\n      - created\n\njobs:\n  notify:\n    name: \"Code of Conduct Notifier\"\n    runs-on: ubuntu-latest\n    if: contains(github.event.comment.body, 'code of conduct')\n    steps:\n      - uses: BogDAAAMN/code-of-conduct-notifier-action@v1.0.0\n        with:\n          coc-url: https://example.com/code-of-conduct.html\n          comment-body: |\n            For questions about our **community guidelines**, please refer to our [Code of Conduct](\u003cURL\u003e).\n            As always, our moderator team is happy to answer questions or provide more detail.\n```\n\n### Relative URL\n```yaml\nname: CoC Notifier\n\non:\n  issue_comment: # Action gets triggered on both issues and PRs comments\n    types:\n      - created\n\njobs:\n  notify:\n    name: \"Code of Conduct Notifier\"\n    runs-on: ubuntu-latest\n    if: contains(github.event.comment.body, 'code of conduct')\n    steps:\n      - uses: BogDAAAMN/code-of-conduct-notifier-action@v1.0.0\n        with:\n          coc-url: /docs/CODE_OF_CONDUCT.md\n          comment-body: \"For questions about our **community guidelines**, please refer to our [Code of Conduct](\u003cURL\u003e).\"\n```\n\n## Sources \nThe information presented in the description of the action, the inspiration, and the default messages used by the action are shaped from the following sources:\n\n- [Constellation Report](https://orbit.love/constellation-report-state-of-community-tools-2021): State of Community Tools 2021 by [Orbit](https://orbit.love/)\n- [Mozilla Community Participation Guidelines](https://www.mozilla.org/en-US/about/governance/policies/participation/) by [Mozilla Corporation](https://www.mozilla.org/en-US/about/)\n- Feedback and conversations with [Virtual Coffee](https://virtualcoffee.io/) friends\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogdaaamn%2Fcode-of-conduct-notifier-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbogdaaamn%2Fcode-of-conduct-notifier-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogdaaamn%2Fcode-of-conduct-notifier-action/lists"}