Set labels on new issues
Closed this issue · 3 comments
ApwFA commented
We need to add default tags to issues created via email - is this possible?
eranrund commented
Unfortunately not at the moment. GitHub's permission system is inflexible - to allow the bot user to assign labels it will need write access to the repository. This will also grant the bot access to push commits. We are trying to avoid asking for that to reduce the security impart of granting a 3rd party application access to repositories.
JFQueralt commented
I was looking for the same and the rationale that makes it impossible is sensible and reasonable.
One solution could be:
- Fire-bot creates the Issue
- An Action detects Issues created by Fire-bot and sets the corresponding labels and other necessary default settings.
This should work:
https://github.com/marketplace/actions/auto-label
Great job with the bot, @eranrund .
Related Issue: #422
eranrund commented
Thank you @JFQueralt !