🐛 📺 pull --rebase before commit
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Update RSS / update-rss (push) Successful in 5m18s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Update RSS / update-rss (push) Successful in 5m18s
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								cli.mjs
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								cli.mjs
									
									
									
									
									
								
							@@ -32,7 +32,7 @@ $.api()
 | 
				
			|||||||
.command("pull", "Update article list")
 | 
					.command("pull", "Update article list")
 | 
				
			||||||
.option("--git", "Update git repository")
 | 
					.option("--git", "Update git repository")
 | 
				
			||||||
.action(async function pull({ git: is_git= false }){
 | 
					.action(async function pull({ git: is_git= false }){
 | 
				
			||||||
	if(is_git) s.run`git pull --force`;
 | 
						if(is_git) s.run`git pull --rebase`;
 | 
				
			||||||
	const { changed }= await sitemap().then(toRSS);
 | 
						const { changed }= await sitemap().then(toRSS);
 | 
				
			||||||
	echo("Changed files:", changed.length ? changed.join(", ") : "—");
 | 
						echo("Changed files:", changed.length ? changed.join(", ") : "—");
 | 
				
			||||||
	if(is_git) gitCommit(changed, "pull");
 | 
						if(is_git) gitCommit(changed, "pull");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user