Skip to content

Commit c2975e7

Browse files
authored
Merge pull request #12731 from microsoft/main
Merge to vs
2 parents 67cf965 + 970f95b commit c2975e7

File tree

110 files changed

+642
-1880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+642
-1880
lines changed

.github/actions/AddComment/AddComment.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/AddComment/AddComment.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { daysAgoToHumanReadbleDate, daysAgoToTimestamp, safeLog } from '../commo
1010
export class AddComment extends ActionBase {
1111
constructor(
1212
private github: GitHub,
13-
private createdAfter: string,
13+
private createdAfter: string | undefined,
1414
private afterDays: number,
1515
labels: string,
1616
private addComment: string,
@@ -45,6 +45,23 @@ export class AddComment extends ActionBase {
4545
if (hydrated.open && this.validateIssue(hydrated)
4646
// TODO: Verify updated timestamp
4747
) {
48+
// Don't add a comment if already commented on by an action.
49+
let foundActionComment = false;
50+
for await (const commentBatch of issue.getComments()) {
51+
for (const comment of commentBatch) {
52+
if (comment.author.isGitHubApp) {
53+
foundActionComment = true;
54+
break;
55+
}
56+
}
57+
if (foundActionComment)
58+
break;
59+
}
60+
if (foundActionComment) {
61+
safeLog(`Issue ${hydrated.number} already commented on by an action. Ignoring.`);
62+
continue;
63+
}
64+
4865
if (this.addComment) {
4966
safeLog(`Posting comment on issue ${hydrated.number}`);
5067
await issue.postComment(this.addComment);

.github/workflows/bug-debugger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug - debugger
22
on:
33
schedule:
4-
- cron: 20 11 * * * # Run at 11:20 AM UTC (3:20 AM PST, 4:20 AM PDT)
4+
- cron: 50 12 * * * # Run at 12:50 PM UTC (4:50 AM PST, 5:50 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/by-design-closer-debugger .yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: By Design closer - debugger
22
on:
33
schedule:
4-
- cron: 10 11 * * * # Run at 11:10 AM UTC (3:10 AM PST, 4:10 AM PDT)
4+
- cron: 0 13 * * * # Run at 1:00 PM UTC (5:00 AM PST, 6:00 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/enhancement-closer-no-milestone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Enhancement Closer (no milestone)
22
on:
33
schedule:
4-
- cron: 50 11 * * * # Run at 11:50 AM UTC (3:50 AM PST, 4:50 AM PDT)
4+
- cron: 40 12 * * * # Run at 12:40 PM UTC (4:40 AM PST, 5:40 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/enhancement-closer-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Enhancement Closer (Triage)
22
on:
33
schedule:
4-
- cron: 40 11 * * * # Run at 11:40 AM UTC (3:40 AM PST, 4:40 AM PDT)
4+
- cron: 30 12 * * * # Run at 12:30 PM UTC (4:30 AM PST, 5:30 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/enhancement-reopener.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Enhancement Reopener
22
on:
33
schedule:
4-
- cron: 20 12 * * * # Run at 12:20 PM UTC (4:20 AM PST, 5:20 AM PDT)
4+
- cron: 0 11 * * * # Run at 11:00 AM UTC (3:00 AM PST, 4:00 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/external-closer-debugger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: External closer - debugger
22
on:
33
schedule:
4-
- cron: 10 11 * * * # Run at 11:10 AM UTC (3:10 AM PST, 4:10 AM PDT)
4+
- cron: 10 13 * * * # Run at 1:10 PM UTC (5:10 AM PST, 6:10 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/feature-request-debugger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature Request - debugger
22
on:
33
schedule:
4-
- cron: 20 11 * * * # Run at 11:20 AM UTC (3:20 AM PST, 4:20 AM PDT)
4+
- cron: 20 13 * * * # Run at 1:20 PM UTC (5:20 AM PST, 6:20 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

.github/workflows/investigate-closer-debugger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Investigate closer - debugger
22
on:
33
schedule:
4-
- cron: 10 11 * * * # Run at 11:10 AM UTC (3:10 AM PST, 4:10 AM PDT)
4+
- cron: 30 13 * * * # Run at 1:30 PM UTC (5:30 AM PST, 6:30 AM PDT)
55
workflow_dispatch:
66
inputs:
77
readonly:

0 commit comments

Comments
 (0)