From 7b1d11a7f450c9adda33630921c16032b2d1a055 Mon Sep 17 00:00:00 2001 From: Mike Griffin Date: Fri, 10 May 2024 16:22:06 +0100 Subject: [PATCH] Add API and Webhooks category --- .github/lib/discussions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/lib/discussions.rb b/.github/lib/discussions.rb index 7e73544de..d42c3db4e 100644 --- a/.github/lib/discussions.rb +++ b/.github/lib/discussions.rb @@ -14,7 +14,7 @@ def self.all(owner: nil, repo: nil) return [] if owner.nil? || repo.nil? cutoff_date = Time.now.advance(days: -60).to_date.to_s - searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions label:Question" + searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" label:Question" query = <<~QUERY { @@ -72,7 +72,7 @@ def self.to_be_closed(owner: nil, repo: nil) return [] if owner.nil? || repo.nil? cutoff_date = Time.now.advance(days: -30).to_date.to_s - searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions label:Question label:inactive" + searchquery = "repo:#{owner}/#{repo} is:unanswered is:open is:unlocked updated:<#{cutoff_date} category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" label:Question label:inactive" query = <<~QUERY { @@ -135,7 +135,7 @@ def self.to_be_closed(owner: nil, repo: nil) def self.to_remove_label(owner: nil, repo: nil) return [] if owner.nil? || repo.nil? - searchquery = "repo:#{owner}/#{repo} is:unanswered is:open category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions label:Question label:inactive" + searchquery = "repo:#{owner}/#{repo} is:unanswered is:open category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors category:Actions category:\\\"API and Webhooks\\\" label:Question label:inactive" query = <<~QUERY {