Skip to content

Commit

Permalink
Merge pull request #7 from thalleslmF/pr-7
Browse files Browse the repository at this point in the history
Pr 7
  • Loading branch information
thalleslmF authored Jul 28, 2021
2 parents 4f5e94f + ff6a1f4 commit 068a590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions licence.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const checkLicense = async (fileNames, copyrightContent) => {
const token = core.getInput('token')
const octokit = github.getOctokit(token)
const prNumber = github.context.payload.pull_request.number
const owner = github.context.payload.repository.owner
console.log(github.context.payload.repository)
const owner = github.context.payload.repository.owner.login
const repo = github.context.payload.repository.name
const response = await octokit.request('GET /repos/{owner}/{repo}/pulls/{pull_number}', ({
owner: owner,
repo: repo,
Expand Down

0 comments on commit 068a590

Please sign in to comment.