github-community-projects / github-community-projects/safe-settings

2.1.19 Cannot read properties of null (reading 'info')

Open
#955 1 comment 12 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
921
Forks
226
Avg merge
18h 3m
Merged PRs (30d)
14

Description

## Problem Description

### What is actually happening
Since 2.1.19 I get "Cannot read properties of null (reading 'info') at performFullSync (/home/runner/_work/admin/admin/.safe-settings-code/full-sync.js:7:14)

probot.log.info(`Starting full sync with NOP=${nop}`)

Which is breaking the whole sync. I guess it is cause of the breaking changes in probot version 14.

### What is the expected behavior

Sync should run through without errors

### Error output, if available

```
> node ./full-sync.js
Fatal error during full sync: TypeError: Cannot read properties of null (reading 'info')
at performFullSync (/home/runner/_work/admin/admin/.safe-settings-code/full-sync.js:7:14)
at Object. (/home/runner/_work/admin/admin/.safe-settings-code/full-sync.js:25:1)
at Module._compile (node:internal/modules/cjs/loader:1705:14)
at Object..js (node:internal/modules/cjs/loader:1838:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Function._load (node:internal/modules/cjs/loader:1263:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49
```

## Context

### Are you using the hosted instance of probot/settings or running your own?
Within GitHub Actions

### If running your own instance, are you using it with github.com or GitHub Enterprise?
github.com

#### Version of probot/settings
2.1.9

#### Version of GitHub Enterprise

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.