Skip to content

Commit 5076103

Browse files
committed
chore: temporarily allow node-abi releases from 3-x-y branch
1 parent 0c34d98 commit 5076103

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/server/requesters/GitHubActionsRequester.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ const validateMetadataObject = (object: any) => {
2828
};
2929

3030
export class GitHubActionsRequester
31-
implements Requester<GitHubActionsRequesterConfig, GitHubActionsOTPRequestMetadata>
32-
{
31+
implements Requester<GitHubActionsRequesterConfig, GitHubActionsOTPRequestMetadata> {
3332
readonly slug = 'github';
3433

3534
getConfigForProject(project: Project) {
@@ -105,6 +104,12 @@ export class GitHubActionsRequester
105104
error: 'GitHub Actions build is for a tag not on the default branch',
106105
};
107106
}
107+
} else if (
108+
claims.repository_owner === 'electron' &&
109+
claims.repository === 'electron/node-abi' &&
110+
claims.ref === 'refs/heads/3-x-y'
111+
) {
112+
// Temporary hack to allow the 3-x-y branch to be used for releases on the node-abi repo
108113
} else if (claims.ref !== `refs/heads/${project.defaultBranch}`) {
109114
return {
110115
ok: false,

0 commit comments

Comments
 (0)