-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: inputs and build #33
Conversation
Feat/schema validation
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.
Unused files (1)
Unused dependencies (1)
Unused exports (2)
|
…opment # Conflicts: # dist/index.js
Update log level to debug for better control over log verbosity.
Updated environment variable names to camelCase as expected by the deploy plugin.
Improved descriptions for inputs to provide clearer context and usage explanations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unusual
There was a problem hiding this comment.
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"), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine.
Resolves #32
QA: https://github.com/Meniole/user-activity-watcher/actions/runs/11320647090