File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
CachedConfigTracker ,
13
13
hasApprovedPullRuns ,
14
14
isFirstTimeContributor ,
15
- isPyTorchOrg ,
15
+ isPyTorchManagedOrg ,
16
16
isPyTorchPyTorch ,
17
17
reactOnComment ,
18
18
} from "./utils" ;
@@ -274,7 +274,7 @@ The explanation needs to be clear on why this is needed. Here are some good exam
274
274
275
275
if ( forceRequested ) {
276
276
rejection_reason = await this . reasonToRejectForceRequest ( forceMessage ) ;
277
- } else if ( isPyTorchOrg ( this . owner ) ) {
277
+ } else if ( isPyTorchManagedOrg ( this . owner ) ) {
278
278
// Ensure the PR has been signed off on
279
279
let approval_status = await this . getApprovalStatus ( ) ;
280
280
if ( approval_status == PR_CHANGES_REQUESTED ) {
Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ export function repoKey(context: Context): string {
16
16
return `${ repo . owner } /${ repo . repo } ` ;
17
17
}
18
18
19
- export function isPyTorchOrg ( owner : string ) : boolean {
20
- return owner === "pytorch" ;
19
+ export function isPyTorchManagedOrg ( owner : string ) : boolean {
20
+ return owner === "pytorch" || owner === "meta-pytorch" ;
21
21
}
22
22
23
23
export function isPyTorchPyTorch ( owner : string , repo : string ) : boolean {
24
- return isPyTorchOrg ( owner ) && repo === "pytorch" ;
24
+ return owner === "pytorch" && repo === "pytorch" ;
25
25
}
26
26
27
27
export function isDrCIEnabled ( owner : string , repo : string ) : boolean {
28
28
return (
29
- isPyTorchOrg ( owner ) &&
29
+ isPyTorchManagedOrg ( owner ) &&
30
30
[
31
31
"pytorch" ,
32
32
"vision" ,
You can’t perform that action at this time.
0 commit comments