Skip to content

Commit 5f8627d

Browse files
Update transfer-approved-submission.yml
1 parent 9576654 commit 5f8627d

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

β€Ž.github/workflows/transfer-approved-submission.ymlβ€Ž

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
Β (0)