Commit d527b88
feat: add discussions-migration script (#124)
* feat: add copy-discussions shell script
* feat: add copy-discussions node script
* feat: add functionality to close discussions in target repository if closed in source
* feat: add functionality to mark discussion comments as answers during copy
* feat: add support for copying poll data and visual representation in discussions
* fix: incomplete string escaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* docs: update README to include detailed usage and features for copy-discussions.js
* fix: ensure linting commands do not fail the workflow by adding '|| true'
* Revert "docs: update README to include detailed usage and features for copy-discussions.js"
This reverts commit ee1e0cc.
* docs: enhance README for copy-discussions.js with usage instructions and features
* feat: enhance discussion copying by preserving reactions, locked status, and pinned indicators
* Revert "fix: ensure linting commands do not fail the workflow by adding '|| true'"
This reverts commit 2df58c9.
* fix: correct formatting of metadata sections in discussions and comments
also noting pinned discussions
* fix: update script documentation to clarify copied discussion elements
* feat: add copy-discussions.sh script for transferring discussions between repositories
* Revert "feat: add copy-discussions.sh script for transferring discussions between repositories"
This reverts commit 02cd024.
* refactor: remove copy-discussions.sh script for transferring discussions between repositories
use the ./scripts/copy-discussions.js instead
* fix: enhance help message for copy-discussions.js script
* fix: improve help message and clarify environment variable usage in copy-discussions.js
* feat: configurable rate limit
* fix: reduce rate limit sleep duration and improve discussion processing efficiency
* feat: add support for resuming discussion copying with --start-from option
* fix: implement retry logic for discussion creation to handle rate limits
* docs: update documentation to clarify secondary rate limit guidelines and request limits
* feat: enhance rate limit handling with Octokit throttling and remove manual retry logic
* fix: adjust discussion processing delay to comply with GitHub's rate limit recommendations
* feat: track primary and secondary rate limit hits for improved monitoring
* refactor(scripts)!: reorganize and rename copy-discussions to migrate-discussions
- Move script to migrate-discussions/ subdirectory structure
- Rename from copy-discussions.js to migrate-discussions.js
- Update documentation to reflect migration terminology
- Add package.json with octokit dependency
- Enhance README with rate limiting and resume features
- Update .gitignore to allow nested package.json files
* docs: update README to clarify npm installation steps and environment variable usage
* docs: update README to enhance GitHub App usage instructions and clarify token recommendations
* docs: update README and script to enhance rate limit handling and retry logic
* fix: update script usage examples to reflect correct script name
---------
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>1 parent 4dea8a1 commit d527b88
File tree
6 files changed
+2222
-0
lines changed- scripts
- migrate-discussions
6 files changed
+2222
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
0 commit comments