- 
                Notifications
    You must be signed in to change notification settings 
- Fork 87
          chore: add a transferIssues script [skip ci]
          #396
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Intended usage: `node scripts/transferIssues.js` to transfer all open issues from individual web component repos into the web-components monorepo for each of the web components in the ./packages folder of this monorepo. Labels on the transferred issues are transferred as well. The transferred issues remain in the same pipelines (columns) on the DS team ZH boards. If a label was missing in the web-components repo, it will be created (with the same color as in the original repo).
TODO: handle ZenHub rate limiting
The vaadin-messages repo is handled by the CE team. We could agree to move its issues separately.
If a label is present on an issue before the transfer it should be created in the target repo before it can be put on the transferred issue.
ZH epics should be skipped to be transferred manually because all ZH epic info is lost when an issue is transferred using the GH API. ZH estimates are identified to transfer them automatically (still TODO).
The changes done in this commit do not affect the functionality at all. They are done to make understanding the code easier. When reviewing functional changes, this commit may be skipped.
Also add more filtering to have a way to limit the scope of this script, which is handy for testing. To run this script 'for real' execute `PRODUCTION_RUN=true node scripts/transferIssues.js`. With the filters as they are committed right now this script would transfer a single issue: https://github.com/vaadin/magi-cli/issues/142
| one concern: I am not sure if the  | 
| 
 I do not expect the GitHub rate limiting ot be a problem. I've tried to run this script with the full scope (but not making actual changes) and GitHub was OK with all the requests this script made for 1.5k issues. Apparently, ZenHub has a more strict rate limit. | 
Automatically disable the "Issues" tab in the GitHub UI for the source repos that do not have any issues remaining after the transfer.
| SonarCloud Quality Gate failed. 
 
 | 








Description
Intended usage:
node scripts/transferIssues.jsto transfer all open issues from individual web component repos into the web-components monorepo for each of the web components in the./packagesfolder of this monorepo.Labels on the transferred issues are transferred as well. The transferred issues remain in the same pipelines (columns) on all ZenHub boards (if both the web-components monorepo and the original issue's repo are present on the board).
If a label was missing in the web-components repo, it will be created (with the same color as in the original repo).
Fixes https://github.com/vaadin/components-team-tasks/issues/580
Type of change
Checklist