fix devops pipelienrun role
Created by: LinuxSuRen
This is a patch fix. I cannot use cherry-pick to commit it due to the following errors.
➜ console git:(release-3.2) ✗ git cherry-pick --continue
husky > pre-commit (node v16.3.0)
(node:41819) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/rick/Workspace/GitHub/kubesphere/console/node_modules/find-parent-dir/package.json' of 'find-parent-dir.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Running tasks for *.{js,jsx}
↓ Running tasks for *.{json,css,scss} [skipped]
→ No staged files match *.{json,css,scss}
❯ Running tasks for locales/**/*.js
✖ node scripts/checkRepeat.js
✖ "node scripts/checkRepeat.js" found some errors. Please fix them and try committing again.
/Users/rick/Workspace/GitHub/kubesphere/console/scripts/checkRepeat.js:31
throw errMessage
^
/locales/en/role.js文件中存在以下重复UI词条:PIPELINES_MANAGEMENT,PIPELINES_VIEW,PLATFORM_SETTINGS_MANAGEMENT,PIPELINES_MANAGEMENT_DESC,PIPELINES_VIEW_DESC,CREDENTIALS_MANAGEMENT_DESC,CREDENTIALS_VIEW_DESC
(Use `node --trace-uncaught ...` to show where the exception was thrown)
husky > pre-commit hook failed (add --no-verify to bypass)
➜ console git:(release-3.2) ✗ git cherry-pick --continue --no-verify
usage: git cherry-pick [<options>] <commit-ish>...
or: git cherry-pick <subcommand>
fix #2749 (closed)
None
/area devops /cc @kubesphere/sig-devops