Skip to content

Commit

Permalink
FORK_ONLY: fix some errors found by ts checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Gramatus committed Oct 5, 2024
1 parent cb401ec commit cac9b84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let deploymentConfig
* @param {Probot} robot
* @param {ApplicationFunctionOptions} probotOptions
*/
module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) => {
module.exports = (robot, _, Settings = require('./lib/settings')) => {
let appName = 'safe-settings'
let appSlug = 'safe-settings'
async function syncAllSettings (nop, context, repo = context.repo(), ref) {
Expand Down Expand Up @@ -209,7 +209,7 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
})
}

async function createCheckRun (context, pull_request, head_sha, head_branch) {
async function createCheckRun (context, pull_request, head_sha) {
const { payload } = context
// robot.log.debug(`Check suite was requested! for ${context.repo()} ${pull_request.number} ${head_sha} ${head_branch}`)
const res = await context.octokit.checks.create({
Expand All @@ -233,7 +233,7 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
const app = await github.apps.getAuthenticated()
appName = app.data.name
appSlug = app.data.slug
robot.log.debug(`Validated the app is configured properly = \n${JSON.stringify(app.data, null, 2)}`)
robot.log.debug(`Validated the app ${appName} is configured properly = \n${JSON.stringify(app.data, null, 2)}`)
}
}

Expand Down Expand Up @@ -443,7 +443,7 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
} catch (error) {
if (error.status === 404) {
// if the a config file does not exist, create one from the old one
const update = await context.octokit.request('PUT /repos/{owner}/{repo}/contents/{path}', {
await context.octokit.request('PUT /repos/{owner}/{repo}/contents/{path}', {
owner: payload.repository.owner.login,
repo: env.ADMIN_REPO,
path: newPath,
Expand Down

0 comments on commit cac9b84

Please sign in to comment.