Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inputs and build #33

Merged

Conversation

gentlementlegen
Copy link
Member

@gentlementlegen gentlementlegen commented Oct 14, 2024

gentlementlegen and others added 27 commits September 25, 2024 17:59
Simplified event whitelist types and transformations for clarity.
Set default values for watch config, renamed project, and added debug log.
Corrected the order of parameters to match expected types.
Removed unnecessary console.log and clarified error messages for invalid events.
Simplified update workflow and adjusted action to a Node.js runtime.
Standardize file naming for better consistency and clarity.
Update the package name to @ubiquity-os/daemon-disqualifier.
Deleted the distribution file from the repository.
Removed unused @vercel/ncc dependency from package.json and yarn.lock.
Added dist to ignore patterns in cspell, knip, and prettierignore configs.
Copy link
Contributor

Unused files (1)

src/parser/payload.ts

Unused dependencies (1)

Filename dependencies
package.json @actions/core

Unused exports (2)

Filename exports
src/run.ts run
src/helpers/validator.ts validateAndDecodeSchemas

@gentlementlegen gentlementlegen marked this pull request as ready for review October 14, 2024 03:46
.github/workflows/update-configuration.yml Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
gentlementlegen and others added 5 commits October 14, 2024 19:45
Updated environment variable names to camelCase as expected by the deploy plugin.
Improved descriptions for inputs to provide clearer context and usage explanations.
Copy link
Member

Choose a reason for hiding this comment

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

This seems unusual

Copy link
Member Author

Choose a reason for hiding this comment

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

When using type: module ncc includes this as an ESM reminder from what I've seen.
https://github.com/vercel/ncc?tab=readme-ov-file#usage-1

@@ -12,8 +12,9 @@ export async function run(inputs: PluginInputs) {
payload: inputs.eventPayload,
config: inputs.settings,
octokit,
logger: new Logs("verbose"),
logger: new Logs("debug"),
Copy link
Member

@0x4007 0x4007 Oct 14, 2024

Choose a reason for hiding this comment

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

I think we should change the API to be something more like

new Logger({ level: "debug" });

As I presume that is what this means.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes although the SDK integrates the logger as well so might now be worth changing there right now, I will try to switch this to the SDK later as well.

Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

Code looks fine.

@gentlementlegen gentlementlegen merged commit b2fb274 into ubiquity-os-marketplace:development Oct 14, 2024
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.

Fix default for eventWhitelist and Decode
2 participants