Skip to content

Commit ea43161

Browse files
authored
Website generation scripts work from Windows (InnerSourceCommons#411)
1 parent cd1a43d commit ea43161

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/get_contributors.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const graphqlWithAuth = graphql.defaults({
88
})
99

1010
module.exports = async function (filepath) {
11+
// Translate Windows-style paths to Unix-style paths.
12+
filepath = filepath.replace(/\\/g, "/")
1113
const { repository: { object: { history }}} = await graphqlWithAuth(
1214
`{
1315
repository(owner: "InnerSourceCommons", name: "InnerSourceLearningPath") {

0 commit comments

Comments
 (0)