Comments (9)
Do you run semantic release with npx
? Because if so, the plugin will not detect your package name.
from semantic-release-slack-bot.
Yes the problem is probably that we read npm_package_name
when there probably exists a better variable given from the context. I am quite sure that other plugins work while doing npx
and as this plugin is in the later stages the package name should be figured out when it's our time to execute.
from semantic-release-slack-bot.
Maybe we could do something similar 🤷
from semantic-release-slack-bot.
from semantic-release-slack-bot.
Yes, I don't know why this is a problem. We probably read the package name in a suboptimal way cause other plugins work with npx. I warmly welcome a PR that fixes this issue 😁
from semantic-release-slack-bot.
Easy enough to add. But what should the precedence rules look like? We'll have four ways of providing the package name.
Environment variable
package.json
Config setting
npm_package_name
<- not sure where this comes from 🤔
from semantic-release-slack-bot.
The github plugin gets relases
from context and then gets release.name
from them.
See:
- https://github.com/semantic-release/github/blob/1ef0a6d438a6949bbd654ce080d67ec33753409e/lib/get-success-comment.js#L12
- https://github.com/semantic-release/github/blob/1ef0a6d438a6949bbd654ce080d67ec33753409e/lib/success.js#L84
- https://github.com/semantic-release/github/blob/1ef0a6d438a6949bbd654ce080d67ec33753409e/lib/success.js#L45
- https://github.com/semantic-release/github/blob/1ef0a6d438a6949bbd654ce080d67ec33753409e/lib/success.js#L20
from semantic-release-slack-bot.
@juliuscc Do you have plans to fix that issue?
from semantic-release-slack-bot.
This is not a high priority task IMO as there are quite simple workarounds. I do however welcome PR's that fix this. If you need any more assistance than the hints above, I will gladly help 😁
from semantic-release-slack-bot.
Related Issues (20)
- SLACK CONNECTION FAILED Only absolute URLs are supported HOT 4
- Fails with latest semantic-release versions HOT 3
- TypeError: Cannot read properties of undefined (reading 'name') HOT 7
- Adding slack app fails after entering channel name HOT 6
- slack bot should extend the accepted semantic release version to 21.0 HOT 10
- Slack channel from configs doesn't work when using token
- Vulnerability issue in node-fetch
- Invalid release url for selfhosted GitLab HOT 1
- Slack Webhook doesn't respect proxy environment variables
- Unable to add the app
- Error after installation with micromark package
- Slack message seems non-rendered HOT 1
- Why `$package_name` is not define automatically? HOT 1
- Add tag to template variables
- Configuration for Slack channel HOT 10
- Support for [email protected] HOT 2
- [email protected] requires Node 14 which seems to be a breaking change HOT 4
- In the slack generated GitLab tag link is wrong! HOT 13
- Slack Message Showing version as a channel (private channel) HOT 9
- Is SLACK_ICON and SLACK_NAME working? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semantic-release-slack-bot.