File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -19,36 +19,38 @@ jobs:
1919 const privateRepo = "foundation-programs-management";
2020 const assignee = "reginankenchor";
2121
22- // Step 1: Create issue in private repo
22+ const privateBody = [
23+ "π **Submission Transferred from Public Repository**",
24+ "",
25+ "------",
26+ issue.body,
27+ "------",
28+ `π @${assignee} β this submission has been approved and is now ready for program-level follow-up.`
29+ ].join("\n\n");
30+
2331 const newIssue = await github.rest.issues.create({
2432 owner: repoOwner,
2533 repo: privateRepo,
2634 title: issue.title,
27- body: `π **Submission Transferred from Public Repository**
28-
29- ---
30-
31- ${issue.body}
32-
33- ---
34-
35- π @${assignee} β this submission has been approved and is now ready for program-level follow-up.`,
35+ body: privateBody,
3636 assignees: [assignee]
3737 });
3838
39- // Step 2 : Comment on original public issue
39+ const publicComment = [
40+ "β
This submission has been **approved** and transferred to the private program management repository.",
41+ "",
42+ `π [View it here](${newIssue.data.html_url})`,
43+ "",
44+ "This issue has been closed here for tracking purposes."
45+ ].join("\n\n");
46+
4047 await github.rest.issues.createComment({
4148 owner: repoOwner,
4249 repo: publicRepo,
4350 issue_number: issue.number,
44- body : ` β
This submission has been **approved** and transferred to the private program management repository.
45-
46- π [View it here](${newIssue.data.html_url})
47-
48- This issue has been closed here for tracking purposes.`
51+ body: publicComment
4952 });
5053
51- // Step 3 : Close the public issue
5254 await github.rest.issues.update({
5355 owner: repoOwner,
5456 repo: publicRepo,
You canβt perform that action at this time.
0 commit comments