{"id":45825044,"url":"https://github.com/pkgjs/patch-my-code-of-conduct","last_synced_at":"2026-02-26T21:51:09.261Z","repository":{"id":63622120,"uuid":"564943661","full_name":"pkgjs/patch-my-code-of-conduct","owner":"pkgjs","description":"A tool for creating a code of conduct with a prefix and a patch","archived":false,"fork":false,"pushed_at":"2024-12-21T08:01:32.000Z","size":281,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-17T18:25:51.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkgjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-11T21:58:59.000Z","updated_at":"2023-04-03T17:45:44.000Z","dependencies_parsed_at":"2023-02-02T19:18:02.840Z","dependency_job_id":null,"html_url":"https://github.com/pkgjs/patch-my-code-of-conduct","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"b5984a020f1fcf290111d4aa02e2af66d01c7db5"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pkgjs/patch-my-code-of-conduct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fpatch-my-code-of-conduct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fpatch-my-code-of-conduct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fpatch-my-code-of-conduct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fpatch-my-code-of-conduct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkgjs","download_url":"https://codeload.github.com/pkgjs/patch-my-code-of-conduct/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fpatch-my-code-of-conduct/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29873854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-02-26T21:51:07.894Z","updated_at":"2026-02-26T21:51:09.251Z","avatar_url":"https://github.com/pkgjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Patch my Code of Conduct\n\nThis action adds a prefix to the default Code of Conduct template and applies the necessary templates.\n\nIf used with `gr2m/create-or-update-pull-request-action@v1` workflow automatically creates a pull\nrequest with the applied changes.\n\n- Opens a pull request if output file does not exist [(Example)](https://github.com/anonrig/patch-test/pull/1)\n- Opens a pull request if patch file is changed [(Example)](https://github.com/anonrig/patch-test/pull/7)\n\n## Example Workflow\n\n```yaml\non: [push]\n\njobs:\n  main_job:\n    runs-on: ubuntu-latest\n    name: Test Action\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n        with:\n          persist-credentials: false\n      - name: Start Patch\n        uses: pkgjs/patch-my-code-of-conduct@v1.3.0\n        with:\n          base_url: './BASE.md'\n          patch_file_path: './patch'\n          output_file_path: './CODE_OF_CONDUCT.md'\n      - uses: gr2m/create-or-update-pull-request-action@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          body: \"Applied the patch to the base Code of Conduct.\"\n          branch: actions/patch-code-of-conduct  # Custom branch *just* for this Action.\n          commit-message: 'doc: update Code of Conduct'\n          title: 'doc: update Code of Conduct'\n```\n\n## Useful Information\n\n### Generate patch file\n\n- Generate a `premable+template.md`\n- Generate a `original-expected.md` file\n\n```bash\ndiff -Naur preamble+template.md original-expected.md \u003e patch\n```\n\n### Running patching script\n\n```\npatch -i patch preamble+template.md -o expected.md --no-backup-if-mismatch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgjs%2Fpatch-my-code-of-conduct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkgjs%2Fpatch-my-code-of-conduct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgjs%2Fpatch-my-code-of-conduct/lists"}