{"_id":"@afuteam-nx/plugin-fetch-repos-branches","_rev":"3-604aab86160e2a57842c5583db223f9b","name":"@afuteam-nx/plugin-fetch-repos-branches","dist-tags":{"next":"0.0.1","latest":"0.0.4"},"versions":{"0.0.1":{"name":"@afuteam-nx/plugin-fetch-repos-branches","version":"0.0.1","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"keywords":["@afuteam/nx","nx","nx/plugins","@afuteam","branches"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-fetch-repos-branches@0.0.1","gitHead":"8ea667a410882c80d2da3fd62dfcf2e3dfba7f2e","description":"批量获取远程仓库的分支信息","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-YeEvoZ3YLG5h9z+FoTaLV4sAXZU1JkwHK3WxA11fgrhQh/MfrVnjNhNIaojbO9mca/g78gZapP84Sqv2G+BokQ==","shasum":"31ca053b7f799617ec3f9d477388b09b5eaa421b","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-fetch-repos-branches/-/plugin-fetch-repos-branches-0.0.1.tgz","fileCount":12,"unpackedSize":11944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjcy7jdZJCdvOn68lJG3mdx5KnFAzxBeao/pyyJ7McQwIgSnHCdanW7dkwS26pVOYqarfAscW6TA9sw3+Ne/Se+eE="}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-fetch-repos-branches_0.0.1_1709874648418_0.8508370317757372"},"_hasShrinkwrap":false},"0.0.2":{"name":"@afuteam-nx/plugin-fetch-repos-branches","version":"0.0.2","dependencies":{"@nx/devkit":"18.0.5","tslib":"^2.3.0"},"keywords":["@afuteam/nx","nx","nx/plugins","@afuteam","branches"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-fetch-repos-branches@0.0.2","gitHead":"76e966b0ddbdaa0b30e208bf6f3129a0ae0642e2","description":"批量获取远程仓库的分支信息","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Tel0Jl5KXpx1k4/901Lj/LmmLhDWzZIJrM17u5FSXbg687Qn/KpmnS12oE8ydww0fZvarbW2Oa357HIa3Iy/bQ==","shasum":"7b8cb7346ea5b7ee9e8837b81fc44c09b4b101e1","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-fetch-repos-branches/-/plugin-fetch-repos-branches-0.0.2.tgz","fileCount":12,"unpackedSize":11944,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGq9ryNA5tDP7rzp3SrcWFPZDHgu8ZB2Lbzi1YTZBdFDAiAeqeyUA+a56dLPKLw5f/6+T5jP/O/HUIYokCEUSNvkCQ=="}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-fetch-repos-branches_0.0.2_1710309323699_0.09661180316940365"},"_hasShrinkwrap":false},"0.0.3":{"name":"@afuteam-nx/plugin-fetch-repos-branches","version":"0.0.3","dependencies":{"@nx/devkit":"18.2.3","tslib":"^2.3.0"},"keywords":["@afuteam/nx","nx","nx/plugins","@afuteam","branches"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-fetch-repos-branches@0.0.3","gitHead":"c09bd6fefc7eaba2cbaea776898eee707928af76","description":"批量获取远程仓库的分支信息","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-VmGagU32QRYHY05YYcrn/UIET8M0/RgdZsdy7kVJTOKjDZxggUEl7iN0akulQRoQfLSurnWoz5ItnirhYqhExA==","shasum":"e74150e9f8b76ec9ea116c683c081ce067d1ada7","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-fetch-repos-branches/-/plugin-fetch-repos-branches-0.0.3.tgz","fileCount":14,"unpackedSize":13658,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX5knBo8qwpmAXpmQN5C2yCoLHWPqrzKluP0yVIBRNrwIhAJgQaDZplyHLtpgCq+cw/8mxAv86Lhj7oFrAHa9BScd2"}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-fetch-repos-branches_0.0.3_1712579391095_0.6958482046666061"},"_hasShrinkwrap":false},"0.0.4":{"name":"@afuteam-nx/plugin-fetch-repos-branches","version":"0.0.4","dependencies":{"@nx/devkit":"18.2.3","tslib":"^2.3.0"},"keywords":["@afuteam/nx","nx","nx/plugins","@afuteam","branches"],"type":"commonjs","main":"./src/index.js","typings":"./src/index.d.ts","executors":"./executors.json","_id":"@afuteam-nx/plugin-fetch-repos-branches@0.0.4","gitHead":"9cf83879f8b407986487dafcb556ef3b06d08f54","description":"批量获取远程仓库的分支信息","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-GagO4w7/mEBLHb3SvkBzgZ+XlV8oA4aSvWC0kDPaJ4AIhn8adByJvdpt9VLzJ3U++9P48oC1oS1swSyZpvEbzw==","shasum":"3c6a280c647c08c48c5da47e8da75945227a7071","tarball":"https://registry.npmjs.org/@afuteam-nx/plugin-fetch-repos-branches/-/plugin-fetch-repos-branches-0.0.4.tgz","fileCount":14,"unpackedSize":13335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsYOUuOC5SVneh6/RchQfBMGnR1IxqKM3LgtcBLqbQGwIhAN+6savyLJolI+ax/ku42qIJATFTdaNMftCEJhNhg4S+"}]},"_npmUser":{"name":"eyea","email":"deyesea@gmail.com"},"directories":{},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-fetch-repos-branches_0.0.4_1716281945619_0.13017256616466022"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-08T05:10:48.285Z","0.0.1":"2024-03-08T05:10:48.601Z","modified":"2024-05-21T08:59:06.023Z","0.0.2":"2024-03-13T05:55:23.860Z","0.0.3":"2024-04-08T12:29:51.289Z","0.0.4":"2024-05-21T08:59:05.832Z"},"maintainers":[{"name":"eyea","email":"deyesea@gmail.com"}],"description":"批量获取远程仓库的分支信息","keywords":["@afuteam/nx","nx","nx/plugins","@afuteam","branches"],"readme":"# plugin-fetch-repos-branches\n\n批量获取远程仓库的分支信息\n\n## 环境\n本插件基于 `nx` 开发，请在对应初始化好的 `your-app` 中使用\n\n## 安装\n\n```bash\npnpm i @afuteam-nx/plugin-fetch-repos-branches -D\n```\n\n## 配置\n```bash\n# 在 apps/your-app/project.json 中配置\n\"targets\": {\n  \"fetch-repos\": {\n    \"executor\": \"@afuteam-nx/plugin-fetch-repos-branches:run\",\n    \"options\": {\n      \"accessToken\": \"获取代码仓库的 accessToken\",\n      \"localJsonfilePath\": \"要统计的项目清单 allProjects.json\",\n      \"resultPath\": \"结果输出的位置 文件名 allReposBranchesInfo.json \",\n      \"gitLabBaseUrl\": \"git仓库地址，比如 https://gitlab.com\",\n      \"per_page\": \"通过git api获取项目列表时，每次获取的数量，默认 100\",\n    }\n  }\n}\n\n```\n\n## 使用\n```bash\nnx run your-app:fetch-repos-branches\n```\n\n## 输出数据结构\n`allProjects.json`\n\n```json\n[\n  {\n    \"id\": 13,\n    \"name\": \"sky\",\n    \"default_branch\": \"master\",\n    \"web_url\": \"https://gitlab.com/@afuteam/sky\",\n  }\n]\n```\n\n`allReposBranchesInfo.json`\n\n```json\n  [\n    {\n      \"repo_id\": 88888,\n      \"repo_name\": \"sky\",\n      \"default_branch\": \"master\",\n      \"branches_names\": \"brancha & branchb\",\n      \"branches_count\": 6,\n      \"merged_branches_count\": 0,\n      \"no_update_over3months_branches\": \"\",\n      \"no_update_over3months_branches_count\": 0\n    }\n\n```\n\n","readmeFilename":"README.md"}