Skip to content

Commit

Permalink
Merge pull request #10 from thalleslmF/pr-10
Browse files Browse the repository at this point in the history
fix?
  • Loading branch information
thalleslmF authored Jul 28, 2021
2 parents 590ba7f + 63b0cb0 commit 48e2c3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion licence.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const checkLicense = async (fileNames, copyrightContent) => {
pull_number: prNumber
}))

console.log(responsePr.data)

const responseCompare = await octokit.request('GET /repos/{owner}/{repo}/compare/{basehead}', {
owner: owner,
repo: repo,
Expand All @@ -53,8 +55,9 @@ const checkLicense = async (fileNames, copyrightContent) => {
const listFilesPr = responseCompare.data.files.map(
file => file.filename
)

console.log(listFilesPr)
for ( let name of fileNames) {

if( !listFilesPr.includes(name)) {
console.info(`${name} not in PR: ignoring...`)
continue
Expand Down

0 comments on commit 48e2c3b

Please sign in to comment.