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

Idea: customize install command in GH App #260

Closed
webpro opened this issue Oct 4, 2024 · 8 comments
Closed

Idea: customize install command in GH App #260

webpro opened this issue Oct 4, 2024 · 8 comments

Comments

@webpro
Copy link
Contributor

webpro commented Oct 4, 2024

Example output of the GH App:

⚡️ Your npm packages are published.
knip: npm i https://pkg.pr.new/knip@d9ae5dc

This is a command I often copy-paste, so with this in mind two ideas here:

  • Ability to add -D or --save-dev for when the lib is a dev dep
  • Extending this idea, not necessarily a fan myself, people could prefer to swap npm i for ni or pnpm add etc.

WDYT?

@webpro
Copy link
Contributor Author

webpro commented Oct 6, 2024

By the way, kinda surprised to see it uses Yarn in the message like here: release-it/conventional-changelog#100 (comment)

@Aslemammad
Copy link
Member

Hey, we're working on this to see what we can come up with, sorry for the late response!

Around the message, do you mean the .tgz at the end? if yes, as far as i know, yarn needs that for urls. If it does not need it anymore, we can just remove it. Let me know.

@webpro
Copy link
Contributor Author

webpro commented Oct 6, 2024

Hey, we're working on this to see what we can come up with, sorry for the late response!

No worries, just spitting out ideas and feedback, hope you don't mind! This project's such a productivity win, it's incredible.

Around the message, do you mean the .tgz at the end? if yes, as far as i know, yarn needs that for urls. If it does not need it anymore, we can just remove it. Let me know.

Guess it's just my pet peeve but what I meant is usage of yarn itself. I believe it isn't de facto standard, and everyone not using npm knows how to translate any command. That's why I thought it's a bit odd to print a command with Yarn without knowing the package manager for the repo that's using the pkg-pr-new GH App.

@Aslemammad
Copy link
Member

No worries, just spitting out ideas and feedback, hope you don't mind! This project's such a productivity win, it's incredible.

That's for sure, just feel free to share more, happy to discuss anything.

That's why I thought it's a bit odd to print a command with Yarn without knowing the package manager for the repo that's using the pkg-pr-new GH App.

Oh I see, we have a detect package manager that detects it since users wanted that, but I guess it does not work for you, because your workspace does not use yarn, correct?

@webpro
Copy link
Contributor Author

webpro commented Oct 7, 2024

Oh I see, we have a detect package manager that detects it since users wanted that, but I guess it does not work for you, because your workspace does not use yarn, correct?

Correct! It's a repo without a lockfile checked in so I'd suspect the default/fallback is Yarn.

@Aslemammad
Copy link
Member

We just landed a recipe in #262, it'd teach how you can achieve fully customizable comments thanks to @AmirSa12

@webpro
Copy link
Contributor Author

webpro commented Oct 12, 2024

Thank you!

@Aslemammad
Copy link
Member

Aslemammad commented Oct 12, 2024 via email

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

No branches or pull requests

2 participants