File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 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              "", 
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({ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You canβt perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments