Skip to content

Commit ef488eb

Browse files
authored
Create githubMetrics.yml
1 parent 5b650a0 commit ef488eb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Score issues in sync'd Azure DevOps work items
2+
3+
on:
4+
# On issue changes and issue comments, the action will update the
5+
# corresponding issue.
6+
issue_comment:
7+
types: [created, edited, deleted]
8+
issues:
9+
types: [opened, edited, deleted, labeled, unlabeled]
10+
# But we also run once daily to update a bunch of random issues.
11+
# This way we can hopefully pick up issues that got new reactions
12+
# (reactions do not trigger issue changes).
13+
workflow_dispatch:
14+
schedule:
15+
- cron: '0 0 * * *'
16+
17+
jobs:
18+
metrics:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: champnic/Porpoise@main
22+
env:
23+
GH_PAT: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}'
24+
GH_OWNER: 'MicrosoftEdge'
25+
GH_REPO: 'DevTools'
26+
GH_TRACKED_LABELS: 'tracked'
27+
ADO_PAT: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}'
28+
ADO_ORG: 'microsoft'

0 commit comments

Comments
 (0)