-
Notifications
You must be signed in to change notification settings - Fork 134
79 lines (71 loc) · 2.07 KB
/
github-analytics-daily.yml
File metadata and controls
79 lines (71 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: GitHub Analytics Daily
on:
pull_request:
paths:
- .github/workflows/github-analytics-daily.yml
- tools/analytics/github_analyze.py
workflow_call:
inputs:
branch:
description: "PyTorch release branch. e.g. release/2.7"
default: "release/2.10"
required: false
type: string
milestone-id:
description: 'Release milestone ID. e.g. 54'
default: 57
required: false
type: string
workflow_dispatch:
inputs:
branch:
description: "PyTorch release branch. e.g. release/2.7"
default: "release/2.10"
required: false
type: string
milestone-id:
description: 'Release milestone ID. e.g. 54'
default: 57
required: false
type: string
jobs:
github-analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout test-infra
uses: actions/checkout@v4
- name: Checkout PyTorch repository
uses: actions/checkout@v4
with:
repository: pytorch/pytorch
path: pytorch
fetch-depth: 0 # Need full history for analysis
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
set -eux
python3 -m pip install --upgrade pip
python3 -m pip install requests==2.31.0 tqdm==4.64.1
- name: Show missing reverts
env:
BRANCH: ${{ inputs.branch || 'release/2.10' }}
run: |
python3 tools/analytics/github_analyze.py \
--repo-path ./pytorch \
--remote origin \
--branch "${BRANCH}" \
--analyze-missing-reverts-from-branch
- name: Show outstanding milestone issues
env:
BRANCH: ${{ inputs.branch || 'release/2.10' }}
MILESTONE: ${{ inputs.milestone-id || '57' }}
run: |
python3 tools/analytics/github_analyze.py \
--repo-path ./pytorch \
--remote origin \
--branch "${BRANCH}" \
--milestone-id "${MILESTONE}" \
--missing-in-branch