diff --git a/.gitignore b/.gitignore index 5ed3547..6159d2a 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,5 @@ out .yarn/install-state.gz .pnp.* -raw_log \ No newline at end of file +raw_log +.idea \ No newline at end of file diff --git a/action.yml b/action.yml index 078a4fc..d451ea5 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ inputs: required: true server-url: description: 'URL of the server to send statistics to. Used only for testing purposes' - default: 'https://www.repoinsights.com' # TODO: Change! + default: 'https://www.repoinsights.com' repository: description: "Repository to get statistics from (Ex: jlengrand/github-repository-stats-action). \n Should be in the OWNER/REPOSITORY format \n diff --git a/dist/index.js b/dist/index.js index 8244888..d31f6f0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -19627,7 +19627,7 @@ async function main() { let owner; let repo; - if (repository.length != 0 ) { + if (repository.length !== 0 ) { [owner, repo] = repository.split("/"); } else{ @@ -19648,8 +19648,6 @@ async function main() { const token = core.getInput('access-token'); console.log(`The token is ${token}!`); - - console.log(`Found owner and repo : ${owner} and ${repo}`); const octokit = github.getOctokit(token); diff --git a/index.js b/index.js index 29bab64..324c327 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ async function main() { let owner; let repo; - if (repository.length != 0 ) { + if (repository.length !== 0 ) { [owner, repo] = repository.split("/"); } else{ @@ -33,8 +33,6 @@ async function main() { const token = core.getInput('access-token'); console.log(`The token is ${token}!`); - - console.log(`Found owner and repo : ${owner} and ${repo}`); const octokit = github.getOctokit(token);