-
Notifications
You must be signed in to change notification settings - Fork 22
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
Enable message of the day #140
Conversation
2296d98
to
7c83ba6
Compare
This is really good. I think it's better if the script goes over every release in If this script goes over every release, then we'll be able to do things like apply messages to A rule like the following should apply to
For a rule like
could match both |
Also, do we want to have messages inline in the YAML file? It'll cut down on the number of files in git for trivial messages. |
5875d3e
to
45a6a91
Compare
"--komodo-prefix", | ||
"-k", | ||
required=True, | ||
help="Path to folder holding komodo-releases.", |
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.
Ambiguous: Path to https://github.com/equinor/komodo-releases
or /prog/res/komodo
? Perhaps "Path to komodo releases root (eg. /prog/res/komodo)"
. Also make it the default.
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.
LGTM
komodo/post_messages.py
Outdated
scripts = ( | ||
scripts + motd_db[key].get("scripts") | ||
if motd_db[key].get("scripts") is not None | ||
else scripts | ||
) |
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.
scripts.extend(motd_db[key].get("scripts", []))
?
komodo/post_messages.py
Outdated
|
||
|
||
def copy_files(file_list, dst_path, src_path): | ||
if os.path.isdir(dst_path): |
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.
should not happen, as they are cleared in the beginning
komodo/post_messages.py
Outdated
|
||
|
||
def create_inline_messages(messages, clear_old_messages, dst_path): | ||
if clear_old_messages: |
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.
should not happen, as they are cleared in the beginning
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.
Except for the comments this LGTM as well 🚀
72c0704
to
5f098b4
Compare
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.
Still LGTM 🚀
resolves equinor/ert#735
depends on https://github.com/equinor/komodo-releases/pull/620