зеркало из https://github.com/community/community.git
Merge pull request #122844 from community/mgriffin/another
Add more categories to the inactive bot
This commit is contained in:
Коммит
950a61fc15
|
@ -14,7 +14,7 @@ Discussion = Struct.new(
|
|||
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\\\" 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 label:Question"
|
||||
|
||||
query = <<~QUERY
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ Discussion = Struct.new(
|
|||
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\\\" 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 label:Question label:inactive"
|
||||
|
||||
query = <<~QUERY
|
||||
{
|
||||
|
@ -135,7 +135,7 @@ Discussion = Struct.new(
|
|||
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\\\" label:Question label:inactive"
|
||||
searchquery = "repo:#{owner}/#{repo} is:unanswered is:open category:Copilot category:Accessibility category:\\\"Projects and Issues\\\" category:Sponsors label:Question label:inactive"
|
||||
|
||||
query = <<~QUERY
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче