{"id":22731012,"url":"https://github.com/vizeat/gitpo","last_synced_at":"2026-04-27T21:31:34.325Z","repository":{"id":51797573,"uuid":"111324461","full_name":"vizeat/gitpo","owner":"vizeat","description":"Utility to manage POEditor connected repositories both manually (CLI) and programmatically ","archived":false,"fork":false,"pushed_at":"2024-03-22T12:02:37.000Z","size":285,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-21T02:55:37.391Z","etag":null,"topics":["cli-app","github","i18n","poeditor","poeditor-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gitpo","language":"JavaScript","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/vizeat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-19T19:17:09.000Z","updated_at":"2020-11-19T17:14:06.000Z","dependencies_parsed_at":"2024-12-10T19:19:22.915Z","dependency_job_id":"f3144f45-6501-4986-a1c8-3e35cf04ba6f","html_url":"https://github.com/vizeat/gitpo","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/vizeat/gitpo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizeat%2Fgitpo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizeat%2Fgitpo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizeat%2Fgitpo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizeat%2Fgitpo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vizeat","download_url":"https://codeload.github.com/vizeat/gitpo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vizeat%2Fgitpo/sbom","scorecard":{"id":924729,"data":{"date":"2025-08-04","repo":{"name":"github.com/vizeat/gitpo","commit":"48eadc3836ffda0e5ed5cecdd7cd40270e659fb8"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-25T10:12:14.136Z","repository_id":51797573,"created_at":"2025-08-25T10:12:14.136Z","updated_at":"2025-08-25T10:12:14.136Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"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":["cli-app","github","i18n","poeditor","poeditor-api"],"created_at":"2024-12-10T19:18:58.786Z","updated_at":"2026-04-27T21:31:34.307Z","avatar_url":"https://github.com/vizeat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GITPO\n\nSmall utility to manage translations for POEditor projects linked to GitHub repositories: trigger [import/export/sync...](https://poeditor.com/help/how_to_use_the_github_webhook) webhooks manually or programatically.\n\nThis is not a full API client and does not intend to be.\nFor this you should checkout [node-poeditor](https://github.com/mwiesmueller/node-poeditor) or other solutions.\n\n## Install\n\n```\nyarn add gitpo\n```\n\nAdd a `.gitporc` with the followings:\n\n```json\n{\n  \"API_TOKEN\": \"\u003cyour POEditor API key\u003e\",\n  \"HOOKS\": {\n    \"\u003cprojectId\u003e\": {\n      \"IMPORT\": \"\u003cwebhook_url\u003e\",\n      \"SYNC\": \"\u003cwebhook_url\u003e\",\n      \"EXPORT\": {\n        \"fr\": \"\u003cwebhook_url\u003e\",\n        \"en\": \"\u003cwebhook_url\u003e\"\n      }\n    }\n  }\n}\n```\n\nThe `HOOKS` need to be defined on POEditor, this is due to a change on POEditor's side which prevent us from building the hooks url or creating them automatically through API calls.\nCheck [POEditor WebHooks guide](https://poeditor.com/help/how_to_use_the_github_webhook) for more information.\n\n## Usage\n\n### CLI Usage\n\nThis package provide a CLI powered by [Inquirer](https://github.com/sboudrias/Inquirer.js)\n\n```\n? What would you like to do: (Use arrow keys)\n❯ View Project Details\n  Update Code (POEditor → GitHub)\n  Update POEditor (GitHub → POEditor)\n  Remove default Translations\n  Manage contributors\n```\n\nYou'll be able to trigger webhooks from POEditor to run associated actions.\n\n**Remove default Translations** is a utility to which you need to pass a JSON file path and that will remove values that are the same as the keys.\neg:\n\n```json\n{\n  \"hello world\": \"hello world\",\n  \"this key will not be cleaned\": \"because the value is different\"\n}\n```\n\nwill be turned into\n\n```json\n{\n  \"hello world\": \"\",\n  \"this key will not be cleaned\": \"because the value is different\"\n}\n```\n\nAs we use gettext based i18n solution and english fallback in our transaltion files, this help remove english fallbacks from our output files when we need to reprocess them.\n\n---\n\n### Programatical Usage\n\n```js\nconst {\n  addContributor,\n  cleanTranslationJSON,\n  importNewTerms,\n  listContributors,\n  listProjectLanguages,\n  listProjects,\n  removeContributor,\n  synchronizeTerms,\n  updateTranslations,\n  viewProject\n} = require(\"gitpo\");\n\nconst languages = await listProjectLanguages(projectId);\nconsole.log(languages);\n\n// [\n//   { name: 'English',\n//     code: 'en',\n//     translations: 2067,\n//     percentage: 100,\n//     updated: '2017-11-16T09:14:45+0000' },\n//   { name: 'French',\n//     code: 'fr',\n//     translations: 1456,\n//     percentage: 70.44,\n//     updated: '2017-11-16T11:33:54+0000' },\n// ]\n```\n\n---\n\n### Reference\n\nAll functions are async and return a Promise.\n\n#### Utility\n\n##### cleanTranslationJSON(file, override)\n\n| Type     | Param      | Description                                                  |\n| -------- | ---------- | ------------------------------------------------------------ |\n| _String_ | `file`     | is a path to the file to clean                               |\n| _Bool_   | `override` | should override the existing file or not, default to `false` |\n\nClean JSON translation file of any default value:\n\n```json\n{\n  \"hello world\": \"hello world\",\n  \"this key will not be cleaned\": \"because the value is different\"\n}\n```\n\nwill be turned into\n\n```json\n{\n  \"hello world\": \"\",\n  \"this key will not be cleaned\": \"because the value is different\"\n}\n```\n\nIt will create a file next to the input if override is set to false, eg: `en.json` → `en.clean.json`)\n\n#### Webhooks\n\nManual trigger of webhooks to update POEditor from a Github repository \u0026 vice versa.\n\n##### importNewTerms(projectId)\n\n| Type     | Param       | Description             |\n| -------- | ----------- | ----------------------- |\n| _Number_ | `projectId` | The POEditor project id |\n\nRun the `import_translations` webhook on the given project (see: [POEdtor Webhook Documentation](https://poeditor.com/help/how_to_use_the_github_webhook))\n\n#### synchronizeTerms(projectId)\n\n| Type     | Param       | Description             |\n| -------- | ----------- | ----------------------- |\n| _Number_ | `projectId` | The POEditor project id |\n\nRun the `sync_terms_and_translations` webhook on the given project (see: [POEdtor Webhook Documentation](https://poeditor.com/help/how_to_use_the_github_webhook))\n\n#### updateTranslations(projectId, languages)\n\n| Type     | Param       | Description             |\n| -------- | ----------- | ----------------------- |\n| _Number_ | `projectId` | The POEditor project id |\n| _Array_  | `languages` | List of language code   |\n\nRun the `export_terms_and_translations` webhook on the given project and languages (see: [POEdtor Webhook Documentation](https://poeditor.com/help/how_to_use_the_github_webhook))\n\n:warning: To complete this action, one call per language will be made.\n\n#### API\n\n##### listProjectLanguages(projectId)\n\n| Type     | Param       | Description             |\n| -------- | ----------- | ----------------------- |\n| _Number_ | `projectId` | The POEditor project id |\n\nList languages for a given project (see: [POEdtor API Documentation](https://poeditor.com/docs/api#languages_list))\n\nExample of value returned on `Promise.resolve`\n\n```json\n[\n  {\n    \"name\": \"English\",\n    \"code\": \"en\",\n    \"translations\": 2067,\n    \"percentage\": 100,\n    \"updated\": \"2017-11-16T09:14:45+0000\"\n  },\n  {\n    \"name\": \"French\",\n    \"code\": \"fr\",\n    \"translations\": 1456,\n    \"percentage\": 70.44,\n    \"updated\": \"2017-11-16T11:33:54+0000\"\n  }\n]\n```\n\n#### listProjects()\n\nList projects you can access (see: [POEdtor API Documentation](https://poeditor.com/docs/api#projects_list))\n\nExample of value returned on `Promise.resolve`\n\n```json\n[\n  {\n    \"id\": 1111,\n    \"name\": \"Project Name\",\n    \"public\": 0,\n    \"open\": 0,\n    \"created\": \"2014-06-06T12:00:00+0000\"\n  }\n]\n```\n\n#### viewProject(projectId)\n\n| Type     | Param       | Description             |\n| -------- | ----------- | ----------------------- |\n| _Number_ | `projectId` | The POEditor project id |\n\nGet the details of a given project (see: [POEdtor API Documentation](https://poeditor.com/docs/api#projects_view))\n\nExample of value returned on `Promise.resolve`\n\n```json\n[\n  {\n    \"id\": 1111,\n    \"name\": \"Project Name\",\n    \"public\": 0,\n    \"open\": 0,\n    \"created\": \"2014-06-06T12:00:00+0000\"\n  }\n]\n```\n\n#### listContributors()\n\nList contributors to your projects\n\nExample of value returned on `Promise.resolve`\n\n```json\n[\n  {\n    \"name\": \"Alice\",\n    \"email\": \"alice@example.com\",\n    \"permissions\": [\n      {\n        \"project\": {\n          \"id\": 1111,\n          \"name\": \"Project Name\"\n        },\n        \"type\": \"administrator\"\n      }\n    ],\n    \"created\": \"2014-06-06T12:00:00+0000\"\n  },\n  {\n    \"name\": \"Bob\",\n    \"email\": \"bob@example.com\",\n    \"permissions\": [\n      {\n        \"project\": {\n          \"id\": 1111,\n          \"name\": \"Project Name\"\n        },\n        \"type\": \"contributor\",\n        \"languages\": [\"fr\", \"en\"]\n      }\n    ],\n    \"created\": \"2014-06-06T12:00:00+0000\"\n  }\n]\n```\n\n#### addContributors(email, fullname, projects, languages)\n\n| Type     | Param       | Description                 |\n| -------- | ----------- | --------------------------- |\n| _String_ | `email`     | Contributor's email address |\n| _String_ | `fullname`  | Contributor's fullname      |\n| _Array_  | `projects`  | List of POEditor project id |\n| _Array_  | `languages` | List of language code       |\n\nAdd the given contributor to the list of project / language.\n\n:warning: **NOTE:** An assumption is made here that may require some changes to support a more general use case:\n\n- All projects have all the same languages\n  _or_\n- Poeditor API will ignore addition to non existing languages for a given project\n\n**These cases where not tested**\n\n:warning: An API call is made for every language in every project.\n\n#### removeContributors(email, projects, languages)\n\n| Type     | Param       | Description                 |\n| -------- | ----------- | --------------------------- |\n| _String_ | `email`     | Contributor's email address |\n| _Array_  | `projects`  | List of POEditor project id |\n| _Array_  | `languages` | List of language code       |\n\nRemove the given contributor from the list of project / language.\n\n:warning: **NOTE:** An assumption is made here that may require some changes to support a more general use case:\n\n- All projects have all the same languages\n  _or_\n- Poeditor API will ignore addition to non existing languages for a given project\n\n**These cases where not tested**\n\n:warning: An API call is made for every language in every project.\n\n---\n\n## Contributing\n\nFormat code using the provided `yarn fmt` command\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizeat%2Fgitpo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvizeat%2Fgitpo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvizeat%2Fgitpo/lists"}