Skip to content

Conversation

@nzakas
Copy link
Member

@nzakas nzakas commented Jan 15, 2025

This pull request includes updates to the package.json file and significant refactoring of the src/app.js file to streamline the code and improve maintainability. The most important changes include adding a new engine requirement, removing unused imports and environment variable checks, and refactoring the plugin loading mechanism.

For some reason, Dokku was downgrading npm to v5.x when it saw package-lock.json, so hardcoding that in package.json is necessary. The rest is just cleanup using the new Probot APIs.

Updates to dependencies:

  • package.json: Added a new engine requirement for npm version 10.x.

Refactoring:

  • src/app.js: Removed unused imports and unnecessary environment variable checks.
  • src/app.js: Refactored the plugin loading mechanism to use a new appFn function that assigns plugins to the Probot instance.

mdjermanovic
mdjermanovic previously approved these changes Jan 16, 2025
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I think we tried before to specify npm in package.json and it didn't work (4a5cccd) but maybe it will work this time.

@nzakas nzakas merged commit a9a3474 into main Jan 16, 2025
3 checks passed
@nzakas nzakas deleted the deploy-fix branch January 16, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants