https://github.com/tejado/ghes2ado
https://github.com/tejado/ghes2ado
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tejado/ghes2ado
- Owner: tejado
- Created: 2020-05-04T14:23:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T02:33:22.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T10:22:08.452Z (10 months ago)
- Language: TypeScript
- Size: 2.03 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GHES to Azure DevOps
A proof-of-concept to push a pipeline definition (pipeline.yaml) from a private GHES (GitHub Enterprise Server) repository - not reachable by Internet - to Azure DevOps Service.
An Azure Function (func-sync-trigger) will be the webhook endpoint to receive "push" events from GHES and doing all the magic.
As an alternative, a GitHub Probot app (probot-sync) can be installed on a VM inside the private, corporate network. Following diagram illustrates the Probot approach:

## Installation & Configuration
### Probot (probot-sync)
In order to run Probot, Node.js and NPM are required. Also a GitHub App is needed, e.g. created on GHES, which is described [here](https://probot.github.io/docs/development/).
```sh
# Change directory to the probot poc
cd probot-sync
# copy .env.example to .env and adjust all necessary settings
# e.g. credentials for the Azure DevOps target repository, ...
# Install dependencies
npm install
# Run the bot
npm start
```