Skip to content

Commit 3ce6f26

Browse files
Added gh-sync action
1 parent b88392b commit 3ce6f26

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/gh-sync.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Sync GitHub with ADO
2+
3+
on:
4+
issues:
5+
types: [closed, edited, deleted, reopened, assigned, unassigned, labeled, unlabeled]
6+
issue_comment:
7+
8+
jobs:
9+
build:
10+
name: Run gh-sync from GitHub action
11+
if: ${{ github.event.label.name == 'tracking' || contains(github.event.issue.labels.*.name, 'tracking') }} # Filters out issues/events without the 'tracking' label
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: 'Trigger gh-sync'
15+
uses: microsoft/gh-sync@main
16+
with:
17+
ado-organization-url: ${{ secrets.AZURE_DEVOPS_URL }}
18+
ado-project: ${{ secrets.AZURE_DEVOPS_PROJECT }}
19+
ado-area-path: ${{ secrets.AZURE_DEVOPS_PATH }}
20+
github-repo: 'microsoft/WSL'
21+
issue-number: ${{github.event.issue.number}} # Auto-generated from GitHub action
22+
ado-token: ${{ secrets.AZURE_DEVOPS_TOKEN }} # Your Personal Access Token (PAT)
23+
github-token: ${{ secrets.GITHUB_TOKEN }} # Auto-generated from GitHub action

0 commit comments

Comments
 (0)