You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/README.md
+1-39Lines changed: 1 addition & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,45 +32,7 @@ Configuration values to change in the script:
32
32
-`gitEmail` = If using a GitHub App, combine the App's user ID (⚠️ this is different than App ID!) and name to form an email like: `149130343+josh-issueops-bot[bot]@users.noreply.github.com`. You can find the App's user ID number by calling: `gh api '/users/josh-issueops-bot[bot]' --jq .id`
33
33
-`overwrite`: use `false` or `true` on whether it should overwrite the existing `dependabot.yml` file
34
34
35
-
## copy-discussions.js
36
-
37
-
Copy GitHub Discussions between repositories, including categories, labels, comments, and replies. This script can copy discussions across different GitHub instances and enterprises.
38
-
39
-
The script is expecting:
40
-
41
-
- environment variables `SOURCE_TOKEN` and `TARGET_TOKEN` with GitHub PATs that have `repo` and `read:discussion` scopes
- Automatically creates missing discussion categories in the target repository
56
-
- Creates labels in the target repository if they don't exist
57
-
- Copies all comments and threaded replies with proper attribution
58
-
- Copies poll results as static snapshots (with table and optional Mermaid chart)
59
-
- Handles rate limiting with exponential backoff
60
-
- Provides colored console output for better visibility
61
-
62
-
Configuration:
63
-
64
-
- Set `INCLUDE_POLL_MERMAID_CHART = false` at the top of the script to disable Mermaid pie charts for polls
65
-
66
-
Notes:
67
-
68
-
- If a category doesn't exist in the target repository, discussions will be created in the "General" category
69
-
- The script preserves discussion metadata by adding attribution text to the body and comments
70
-
- Poll results are copied as static snapshots - voting is not available in copied discussions
71
-
- Both source and target repositories must have GitHub Discussions enabled
72
-
73
-
## delete-branch-protection-rules.ps1
35
+
## ado-workitems-to-github-issues.ps1
74
36
75
37
Migrate work items from Azure DevOps to GitHub issues - this just links out to a [separate repo](https://github.com/joshjohanning/ado_workitems_to_github_issues)
0 commit comments