Cosmetics

This commit is contained in:
Julien Lengrand-Lambert
2023-07-07 10:55:57 +02:00
parent e8c6e82017
commit f5a00a515a
4 changed files with 5 additions and 8 deletions

3
.gitignore vendored
View File

@@ -128,4 +128,5 @@ out
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
raw_log raw_log
.idea

View File

@@ -6,7 +6,7 @@ inputs:
required: true required: true
server-url: server-url:
description: 'URL of the server to send statistics to. Used only for testing purposes' 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: repository:
description: "Repository to get statistics from (Ex: jlengrand/github-repository-stats-action). \n description: "Repository to get statistics from (Ex: jlengrand/github-repository-stats-action). \n
Should be in the OWNER/REPOSITORY format \n Should be in the OWNER/REPOSITORY format \n

4
dist/index.js vendored
View File

@@ -19627,7 +19627,7 @@ async function main() {
let owner; let owner;
let repo; let repo;
if (repository.length != 0 ) { if (repository.length !== 0 ) {
[owner, repo] = repository.split("/"); [owner, repo] = repository.split("/");
} else{ } else{
@@ -19648,8 +19648,6 @@ async function main() {
const token = core.getInput('access-token'); const token = core.getInput('access-token');
console.log(`The token is ${token}!`); console.log(`The token is ${token}!`);
console.log(`Found owner and repo : ${owner} and ${repo}`); console.log(`Found owner and repo : ${owner} and ${repo}`);
const octokit = github.getOctokit(token); const octokit = github.getOctokit(token);

View File

@@ -12,7 +12,7 @@ async function main() {
let owner; let owner;
let repo; let repo;
if (repository.length != 0 ) { if (repository.length !== 0 ) {
[owner, repo] = repository.split("/"); [owner, repo] = repository.split("/");
} else{ } else{
@@ -33,8 +33,6 @@ async function main() {
const token = core.getInput('access-token'); const token = core.getInput('access-token');
console.log(`The token is ${token}!`); console.log(`The token is ${token}!`);
console.log(`Found owner and repo : ${owner} and ${repo}`); console.log(`Found owner and repo : ${owner} and ${repo}`);
const octokit = github.getOctokit(token); const octokit = github.getOctokit(token);