mirror of
https://github.com/jlengrand/github-repository-stats-action.git
synced 2026-03-10 00:11:22 +00:00
Cosmetics
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -128,4 +128,5 @@ out
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
raw_log
|
||||
raw_log
|
||||
.idea
|
||||
@@ -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
|
||||
|
||||
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -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);
|
||||
|
||||
4
index.js
4
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);
|
||||
|
||||
Reference in New Issue
Block a user