mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Add eslint-plugin-github and fix issues (#29201)
				
					
				
			This plugin has a few useful rules. The only thing I dislike about it is that it pulls in a rather big number of dependencies for react-related rules we don't use, but it can't really be avoided. Rule docs: https://github.com/github/eslint-plugin-github?tab=readme-ov-file#rules
This commit is contained in:
		@@ -344,19 +344,15 @@ export async function updateIssuesMeta(url, action, issueIds, elementId) {
 | 
			
		||||
export function initRepoIssueComments() {
 | 
			
		||||
  if ($('.repository.view.issue .timeline').length === 0) return;
 | 
			
		||||
 | 
			
		||||
  $('.re-request-review').on('click', function (e) {
 | 
			
		||||
  $('.re-request-review').on('click', async function (e) {
 | 
			
		||||
    e.preventDefault();
 | 
			
		||||
    const url = $(this).data('update-url');
 | 
			
		||||
    const issueId = $(this).data('issue-id');
 | 
			
		||||
    const id = $(this).data('id');
 | 
			
		||||
    const isChecked = $(this).hasClass('checked');
 | 
			
		||||
 | 
			
		||||
    updateIssuesMeta(
 | 
			
		||||
      url,
 | 
			
		||||
      isChecked ? 'detach' : 'attach',
 | 
			
		||||
      issueId,
 | 
			
		||||
      id,
 | 
			
		||||
    ).then(() => window.location.reload());
 | 
			
		||||
    await updateIssuesMeta(url, isChecked ? 'detach' : 'attach', issueId, id);
 | 
			
		||||
    window.location.reload();
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  $(document).on('click', (event) => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user