Skip to content

Commit 9811dfe

Browse files
Update auto-comment.yml
1 parent b1751e5 commit 9811dfe

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/auto-comment.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ jobs:
77
comment-on-issue:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Add Welcome Comment Based on Program
10+
- name: Add Welcome Comment for Nominations Only
1111
uses: actions/github-script@v6
1212
with:
1313
github-token: ${{ secrets.GITHUB_TOKEN }}
1414
script: |
1515
const issue = context.payload.issue;
1616
const labels = issue.labels.map(label => label.name.toLowerCase());
1717
18+
// Only proceed if the issue has the "nomination" label
19+
if (!labels.includes("nomination")) {
20+
console.log("Skipping: Issue is not a nomination.");
21+
return;
22+
}
23+
1824
let programName = "Foundation Initiative Program";
1925
let programDocs = "https://github.com/pytorch-fdn/foundation-initiative";
2026
@@ -33,7 +39,7 @@ jobs:
3339
Your nomination is currently under review. A team member will evaluate the submission and update the status accordingly.\n\n
3440
🔹 **Next Steps:**\n
3541
- If additional details are needed, we will comment here requesting more information.\n
36-
- If approved, we will update the status to **"approved"** ✅ we will contact you regarding the next steps.\n
42+
- If approved, we will update the status to **"approved"** ✅ and contact you regarding the next steps.\n
3743
- If the nomination does not meet the criteria, we will provide feedback and mark it as **"rejected"** ❌.\n\n
3844
📖 **Program Details & Requirements:** [Read More Here](${programDocs})\n\n
3945
Please stay tuned and feel free to respond here if you have any questions. 🚀`;

0 commit comments

Comments
 (0)