Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 3614840

Browse files
Add remote-name configuration
1 parent 6dbdede commit 3614840

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
"description": "Whether org features should be enabled. Requires the `admin:org` scope",
5555
"default": false,
5656
"scope": "window"
57+
},
58+
"github-actions.remote-name": {
59+
"type": "string",
60+
"description": "The name of the repository's git remote that points to GitHub",
61+
"default": "origin",
62+
"scope": "window"
5763
}
5864
}
5965
},

src/configuration/configuration.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ export async function updateOrgFeaturesEnabled(enabled: boolean) {
7777
true
7878
);
7979
}
80+
81+
export function getRemoteName(): string {
82+
return getConfiguration().get<string>(
83+
getSettingsKey("remote-name"),
84+
"origin"
85+
);
86+
}

0 commit comments

Comments
 (0)