-
Notifications
You must be signed in to change notification settings - Fork 331
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
Settings notags #25
Settings notags #25
Conversation
README.md
Outdated
@@ -140,13 +144,14 @@ should be 78 however, at the time of this writing, Github is only accepting 0 or | |||
|
|||
### env variables |
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.
are those env variables?
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, thats the way they are set. In Github actions you can set env variables or inputs that are indeed env variables that they manage prefixing with ENV_ that you access with core.getInput
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.
is it the same convention to set them in lower case for Github and Gitlab? In both systems they become env variables?
Should we actually make a title that clarifies the purpose - configuring the action? Probably users don't care how these setting are being passed to the code
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.
is it the same convention to set them in lower case for Github and Gitlab?
Yes you can use upper or lowercase. In gitlab is called variables and is the same ENV variables in the executor. If you see both yml are mostly the same aside the naming differences. That was done on purpose. Thats why we removed the inputs in Github in favour env variables. In fact there are some variables in gitlab that has to be set in the UI like secrets in Github, again all that env variables and its up to you if use lowercase or not.
Should we actually make a title that clarifies the purpose - configuring the action?
Maybe, for gh is more clear since the cant go wrong using inputs, in the case of gl I guess there is no way of mess, there is only one type of variables
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.
Maybe, for gh is more clear since the cant go wrong using inputs, in the case of gl I guess there is no way of mess, there is only one type of variables
don't quite understand the point
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.
so, if we go with env vars, why don't we use upper case?
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.
also, still think it's better to name titles from their actual purpose - the problem they solve (not from the implementation details of the solution for the problem)
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 have updated the docs a bit in this commit. Have you seen it, does it conforms a bit better your needs?
}; | ||
|
||
exports.DVC_TITLE = DVC_TITLE; | ||
exports.SKIP = SKIP; | ||
exports.DVC_TAG_PREFIX = DVC_TAG_PREFIX; | ||
exports.CI_SKIP_MESSAGE = CI_SKIP_MESSAGE; |
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.
why do we need to export this?
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.
They are used across the other modules. If they are not exported they are not visible.
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.
but we have them in settings now, right?
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.
Yep, but they will be like private for the rest of modules. Have to be exported.
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.
why private? no sure I understood the logic to be honest
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.
everything inside a module in js not exported in not visible from outside
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.
looks good
@shcheklein It's ok to merge? |
@DavidGOrtega yep! |
This PR adds: