File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: 'Lock threads'
33on :
44  schedule :
55    - cron : ' 0 0 * * 0' 
6+   workflow_dispatch :
67
78permissions :
89  contents : read 
@@ -12,18 +13,21 @@ jobs:
1213    permissions :
1314      issues : write   #  for dessant/lock-threads to lock issues
1415      pull-requests : write   #  for dessant/lock-threads to lock PRs
16+       discussions : write   #  for dessant/lock-threads to lock discussions
1517    runs-on : ubuntu-latest 
1618    steps :
1719      - uses : dessant/lock-threads@v5 
1820        with :
19-           github-token :  ${{ github.token }} 
20-           issue-lock -inactive-days31 
21-           pr-lock -inactive-days31 
22-           issue-lock- comment : > 
21+           issue-inactive-days :  31 
22+           pr -inactive-days31 
23+           discussion -inactive-days31 
24+           issue-comment : > 
2325            This issue has been automatically locked since there 
2426            has not been any recent activity after it was closed. 
2527            Please open a new issue for related bugs. 
26- pr-lock- comment : > 
28+ pr-comment : > 
2729            This pull request has been automatically locked since there 
2830            has not been any recent activity after it was closed. 
29-             Please open a new issue for related bugs. 
31+ discussion-comment : > 
32+             This discussion has been automatically locked since there 
33+             has not been any recent activity after it was closed. 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments