|
8 | 8 | schedule:
|
9 | 9 | # Run daily at 2 AM UTC
|
10 | 10 | - cron: '0 2 * * *'
|
| 11 | + workflow_call: |
| 12 | + inputs: |
| 13 | + branch: |
| 14 | + description: "PyTorch release branch. e.g. release/2.7" |
| 15 | + default: "release/2.8" |
| 16 | + required: false |
| 17 | + type: string |
| 18 | + milestone-id: |
| 19 | + description: 'Release milestone ID. e.g. 54' |
| 20 | + default: 53 |
| 21 | + required: false |
| 22 | + type: string |
11 | 23 | workflow_dispatch:
|
12 | 24 | inputs:
|
13 | 25 | branch:
|
14 | 26 | description: "PyTorch release branch. e.g. release/2.7"
|
15 |
| - default: "release/2.7" |
| 27 | + default: "release/2.8" |
| 28 | + required: false |
| 29 | + type: string |
16 | 30 | milestone-id:
|
17 | 31 | description: 'Release milestone ID. e.g. 54'
|
18 |
| - default: 54 |
19 |
| - repo-path: |
20 |
| - description: "Path to the repository to analyze" |
21 |
| - default: "./pytorch" |
22 |
| - remote: |
23 |
| - description: "Remote name to use for the repository" |
24 |
| - default: "origin" |
25 |
| - missing-in-branch: |
26 |
| - description: 'bool to flag if commits are missing in the branch' |
27 |
| - type: boolean |
28 |
| - default: true |
29 |
| - |
30 |
| - |
| 32 | + default: 53 |
| 33 | + required: false |
| 34 | + type: string |
31 | 35 |
|
32 | 36 | jobs:
|
33 | 37 | github-analyze:
|
@@ -55,25 +59,24 @@ jobs:
|
55 | 59 | python3 -m pip install --upgrade pip
|
56 | 60 | python3 -m pip install requests==2.31.0 tqdm==4.64.1
|
57 | 61 |
|
58 |
| - - name: Run GitHub Analytics |
| 62 | + - name: Show missing reverts |
59 | 63 | env:
|
60 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 64 | + BRANCH: ${{ inputs.branch }} |
61 | 65 | run: |
|
62 | 66 | python3 tools/analytics/github_analyze.py \
|
63 | 67 | --repo-path ./pytorch \
|
64 | 68 | --remote origin \
|
65 |
| - --branch release/2.7 \ |
66 |
| - --milestone-id 54 \ |
67 |
| - --missing-in-branch |
| 69 | + --branch "${BRANCH:-release/2.8}" \ |
| 70 | + --analyze-missing-reverts-from-branch |
68 | 71 |
|
69 |
| -
|
70 |
| - - name: Upload analytics results |
71 |
| - uses: actions/upload-artifact@v4 |
72 |
| - if: always() |
73 |
| - with: |
74 |
| - name: github-analytics-results-${{ github.run_id }} |
75 |
| - path: | |
76 |
| - *.json |
77 |
| - *.csv |
78 |
| - *.log |
79 |
| - retention-days: 30 |
| 72 | + - name: Show outstanding milestone issues |
| 73 | + env: |
| 74 | + BRANCH: ${{ inputs.branch }} |
| 75 | + MILESTONE: ${{ inputs.milestone-id }} |
| 76 | + run: | |
| 77 | + python3 tools/analytics/github_analyze.py \ |
| 78 | + --repo-path ./pytorch \ |
| 79 | + --remote origin \ |
| 80 | + --branch "${BRANCH:-release/2.8}" \ |
| 81 | + --milestone-id "${MILESTONE:-53}" \ |
| 82 | + --missing-in-branch |
0 commit comments