Apodimo is a designed with the following goals in mind:
- Migrate work items, pipelines, and wikis from one Azure DevOps/TFS project to a GitHub project
- Real world example of how to use the REST APIs
- Cross platform support
In this project I used the following libraries:
Azure DevOps:
- https://github.com/Microsoft/azure-devops-node-api
- https://docs.microsoft.com/en-us/rest/api/azure/devops/wiki/wikis/get?view=azure-devops-rest-7.1
GitHub:
- Browse and sign in to your GitHub account
- In the upper-right corner of any page, click your profile photo, then click Settings.
- Click Developer settings.
- Click Personal access tokens.
- Click Generate new token.
- Select the repo scope.
- Click Generate token.
- Browse and Sign in to your organization in Azure DevOps
- In the upper-right corner of any page, click your profile photo, then click the more option button on the right of Switch directory, click User settings and then select Personal access tokens.
- Select + New Token.
- Select the Full access scope
To run the script you can:
node index.js --azdoProject GTRekter --gitHubProject GTRekter --gitHubToken FY2W3hT9SsQI1JNUb --azdoToken D56jjHMXc5HSkvCFY2W3hT9SsQI1JNUb --azdoOrganizationUrl 'https://contoso.visualstudio.com' --gitHubOrganizationName=origin" --verbose=true