-
Notifications
You must be signed in to change notification settings - Fork 60
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
Blacklist/whitelist workflows via git commit messages #659
Conversation
Hello @JayjeetAtGithub! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-05-30 14:15:34 UTC |
870aad9
to
c881423
Compare
@ivotron Can you please explain how to deal with merge commits ? Thanks |
cli/popper/commands/cmd_run.py
Outdated
|
||
if 'Merge' in msg: | ||
log.info("Merge detected. Reading message from merged commit.") | ||
commit_id = re.search(r'Merge (.+?) into', msg).group(1) |
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.
a merge commit is a "meta-commit" that describes a commit commit A being merged into B. For example, this one. The idea is to obtain the message for A, which is the commit that is being merged, and process it so that we know whether there are any workflows being white/black listed. Since we are now using GitPython, we might be able to use it to obtain this information (as opposed to using regular expressions.
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.
Thanks !
499ec44
to
cb9937c
Compare
6a969ea
to
f85a364
Compare
@ivotron Please review. Thanks. |
awesome! Thanks a lot! |
Adds the ability to blacklist/whitelist which workflows to execute based on keywords found in a Git commit message. fixes #565
Adds the ability to blacklist/whitelist which workflows to execute based on keywords found in a Git commit message. fixes #565
Adds the ability to blacklist/whitelist which workflows to execute based on keywords found in a Git commit message. fixes #565
Adds the ability to blacklist/whitelist which workflows to execute based on keywords found in a Git commit message. fixes #565
Addresses #565