Skip to content

Commit 582d74f

Browse files
Update transfer-approved-submission.yml
1 parent 35fbd4e commit 582d74f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
if: github.event.label.name == 'approved'
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Transfer Issue to Private Repo
12+
- name: Transfer Issue
1313
uses: actions/github-script@v6
1414
with:
1515
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -20,25 +20,25 @@ jobs:
2020
const privateRepo = "foundation-programs-management";
2121
const assignee = "reginankenchor";
2222
23-
const privateBody = [
24-
"πŸ“ **Submission Transferred from Public Repository**",
23+
const bodyContent = [
24+
"πŸ“ Submission Transferred from Public Repository",
2525
"",
26-
"------",
26+
"----------------------------------------",
2727
issue.body,
28-
"------",
28+
"----------------------------------------",
2929
`πŸ”” @${assignee} β€” this submission has been approved and is now ready for program-level follow-up.`
3030
].join("\n\n");
3131
3232
const newIssue = await github.rest.issues.create({
3333
owner: repoOwner,
3434
repo: privateRepo,
3535
title: issue.title,
36-
body: privateBody,
36+
body: bodyContent,
3737
assignees: [assignee]
3838
});
3939
40-
const publicComment = [
41-
"βœ… This submission has been **approved** and transferred to the private program management repository.",
40+
const confirmation = [
41+
"βœ… This submission has been approved and transferred to the private program management repository.",
4242
"",
4343
`πŸ”— [View it here](${newIssue.data.html_url})`,
4444
"",
@@ -49,7 +49,7 @@ jobs:
4949
owner: repoOwner,
5050
repo: publicRepo,
5151
issue_number: issue.number,
52-
body: publicComment
52+
body: confirmation
5353
});
5454
5555
await github.rest.issues.update({

0 commit comments

Comments
Β (0)