[GH1] Add sparse related changes to merge rules
This PR would allow Quansight sparse experts (in addition to metamates) to approve sparse related changes. As the sparse module is relatively new and should not have many internal dependencies, we can start encouraging more GitHub 1st (GH1) landing for these.
This is DIFFERENT from the superuser rule because it allows non-metamates to be approvers.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75872
Approved by: https://github.com/IvanYashchuk, https://github.com/osalpekar
diff --git a/.github/merge_rules.json b/.github/merge_rules.json
index f1aec50..d5ae6d0 100644
--- a/.github/merge_rules.json
+++ b/.github/merge_rules.json
@@ -78,6 +78,28 @@
"mandatory_checks_name": ["Facebook CLA Check", "Lint"]
},
{
+ "name": "Sparse",
+ "patterns": [
+ "benchmarks/sparse",
+ "c10/util/sparse_bitset.h",
+ "docs/source/sparse.rst",
+ "torch/**/sparse/**",
+ "torch/**/*sparse*",
+ "torch/optim/sparse*",
+ "torch/ao/nn/sparse/**",
+ "torch/utils/benchmark/**/*sparse*",
+ "aten/src/ATen/native/ao_sparse/**",
+ "aten/src/ATen/native/sparse/**",
+ "aten/src/ATen/**/*Sparse*",
+ "aten/src/ATen/*Sparse*",
+ "torch/_masked/**",
+ "test/*_masked*",
+ "test/**/*sparse*"
+ ],
+ "approved_by": ["nikitaved", "cpuhrsch", "pearu", "IvanYashchuk"],
+ "mandatory_checks_name": ["Facebook CLA Check", "Lint"]
+ },
+ {
"name": "superuser",
"patterns": ["*"],
"approved_by": ["pytorch/metamates"],