Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Allow customizing explanatory comment #22

Closed
raxod502 opened this issue Aug 13, 2017 · 3 comments
Closed

Allow customizing explanatory comment #22

raxod502 opened this issue Aug 13, 2017 · 3 comments

Comments

@raxod502
Copy link
Contributor

I'd like to use some different text for the explanatory comment that is posted when an issue is closed. However, currently the only way to do that is to fork the repository and build from source. It would be much more convenient to allow exporting an optional environment variable to override the explanatory comment.

raxod502 added a commit to raxod502/no-carrier that referenced this issue Aug 13, 2017
@cvrebert
Copy link
Collaborator

Yeah, I'm in favor of it being customizable. Problem is, that implies picking a templating system, and I've no idea which to choose. Recommendations welcomed.

@raxod502
Copy link
Contributor Author

For something as simple as this, I don't think it would be remiss to just use $DAYS_ELAPSED, $LABEL_NAME, etc. and then allow \$LABEL_NAME for quoting. I don't do Scala but it looks like you can do regex replacement using a function of the match, so this would be pretty trivial implementation-wise.

I'm sure there are more elegant solutions though.

@raxod502
Copy link
Contributor Author

I wrote a replacement in Python that has this feature: https://github.com/raxod502/tidier.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants