alexellis / derek

Reduce maintainer fatigue by automating GitHub
https://github.com/alexellis/derek/blob/master/USER_GUIDE.md
MIT License
806 stars 72 forks source link

Add 1 min safety window for commit listing #145

Closed nitishkumar71 closed 4 years ago

nitishkumar71 commented 4 years ago

Add 1 min safety window for commit listing

Description

building a new function includeCommits() based includePR() which adds an 1 minute safety window for commit listing. This will help Derek to avoid including commits from prior releases.

Motivation and Context

How Has This Been Tested?

Run ./build.sh to run test cases and build Docker image

Types of changes

Checklist:

alexellis commented 4 years ago

Thank you for this PR, I would like to go ahead and merge it, but wanted to see if you could test it end to end? If it's not tested, then I'd be releasing a change into the live system which may not work as expected and could cause confusion to some of our users.

Setting up the GitHub App for Derek can take 10-15 minutes the first time you do it, but from there you can use Ngrok or https://inlets.dev/ to get a public IP and receive a Webhook.

What do you think?

Alex

nitishkumar71 commented 4 years ago

Thank you for this PR, I would like to go ahead and merge it, but wanted to see if you could test it end to end? If it's not tested, then I'd be releasing a change into the live system which may not work as expected and could cause confusion to some of our users.

Setting up the GitHub App for Derek can take 10-15 minutes the first time you do it, but from there you can use Ngrok or https://inlets.dev/ to get a public IP and receive a Webhook.

What do you think?

Alex

Sure @alexellis, sounds good to me. Just need clarification on, How should we document the result of the end to end test?

burtonr commented 4 years ago

@nitishkumar71 for the end to end tests, you could either link to a sample repo where you have your updated version of Derek running, or you could add some screenshots of the updated Derek code working like what I've done in the past: https://github.com/alexellis/derek/pull/104#issuecomment-440930941

Basically, we just need to see that it works properly in a real scenario. A link, or a screenshot would be enough to know that it's doing what it's intended to do.

If you need help getting Derek setup and running, you can ask in the #derek channel in the OpenFaaS Slack

alexellis commented 4 years ago

Thank you @burtonr 👍

I have a feeling that we will need to cover this, so will take it on and report back if there are any bugs / issues.

nitishkumar71 commented 4 years ago

@nitishkumar71 for the end to end tests, you could either link to a sample repo where you have your updated version of Derek running, or you could add some screenshots of the updated Derek code working like what I've done in the past: #104 (comment)

Basically, we just need to see that it works properly in a real scenario. A link, or a screenshot would be enough to know that it's doing what it's intended to do.

If you need help getting Derek setup and running, you can ask in the #derek channel in the OpenFaaS Slack

Got it @burtonr, will do it in some time.