Skip to content

Commit 2ea1981

Browse files
committed
refs
1 parent bc69b4d commit 2ea1981

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/milestone-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [opened, edited, closed, reopened, deleted, milestoned, demilestoned]
88
pull_request:
99
types: [opened, edited, closed, reopened, milestoned, demilestoned]
10+
push:
11+
tags:
12+
- '*'
1013
workflow_dispatch:
1114
inputs:
1215
milestone:
@@ -97,6 +100,25 @@ jobs:
97100
}
98101
}
99102
103+
// Handle tag push - find matching milestone and sync
104+
if (context.eventName === 'push' && context.ref.startsWith('refs/tags/')) {
105+
const tagName = context.ref.replace('refs/tags/', '');
106+
const milestones = [];
107+
for await (const response of github.paginate.iterator(
108+
github.rest.issues.listMilestones,
109+
{ owner, repo, state: 'all', per_page: 100 }
110+
)) {
111+
milestones.push(...response.data);
112+
}
113+
const milestone = milestones.find(ms => ms.title === tagName);
114+
if (milestone) {
115+
await syncMilestone(milestone);
116+
} else {
117+
console.log(`No milestone found matching tag '${tagName}'`);
118+
}
119+
return;
120+
}
121+
100122
// Handle manual trigger - rebuild all or specific milestone
101123
if (context.eventName === 'workflow_dispatch') {
102124
const inputMilestone = context.payload.inputs?.milestone;

src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "10.0.200",
3+
"version": "10.0.201",
44
"allowPrerelease": true,
55
"rollForward": "latestFeature"
66
}

0 commit comments

Comments
 (0)