File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 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
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. 🚀`;
You can’t perform that action at this time.
0 commit comments