Skip to content
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

Add up_to_date_checker.js #3

Merged
merged 6 commits into from
Jan 22, 2020
Merged

Conversation

xinbinhuang
Copy link
Contributor

This component will check if the PR is up to date with master only if certain files specified in the config are modified as discussed in the mail thread.

This will check if the PR branch is up to date with master based on modified files in the PR similar to the labeller.js
@xinbinhuang
Copy link
Contributor Author

@potiuk @kaxil Please take a look.

The config will look something like this. xinbinhuang/airflow@cd2b086

And this is an example PR xinbinhuang/airflow#7

@kaxil
Copy link
Owner

kaxil commented Jan 20, 2020

@potiuk @kaxil Please take a look.

The config will look something like this. xinbinhuang/airflow@cd2b086

And this is an example PR xinbinhuang/airflow#7

Awesome, thanks for the PR @xinbinhuang . Reviewing it now

Copy link
Owner

@kaxil kaxil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const ignore = require('ignore')

/**
* Check branch up to date with master if specific files are modified in the PR
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Check branch up to date with master if specific files are modified in the PR
* Check branch is up to date with master if specific files are modified in the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rephrased the docstring. I hope it's more readable right now.

@xinbinhuang
Copy link
Contributor Author

If possible, can you add some docs around this awesome feature @xinbinhuang in https://github.com/kaxil/boring-cyborg/blob/master/README.md#features

and Config in https://github.com/kaxil/boring-cyborg/blob/master/README.md#usage

Added^. Please take a look. After this is merged, I will also submit a PR to the bot setting. Do you think the config example is good?

package.json Show resolved Hide resolved
@kaxil kaxil merged commit 203f065 into kaxil:master Jan 22, 2020
@kaxil
Copy link
Owner

kaxil commented Jan 22, 2020

If possible, can you add some docs around this awesome feature @xinbinhuang in https://github.com/kaxil/boring-cyborg/blob/master/README.md#features
and Config in https://github.com/kaxil/boring-cyborg/blob/master/README.md#usage

Added^. Please take a look. After this is merged, I will also submit a PR to the bot setting. Do you think the config example is good?

Yup, it is definitely good. Well done @xinbinhuang 🎉

@xinbinhuang
Copy link
Contributor Author

Thanks @kaxil !

@xinbinhuang xinbinhuang deleted the add_check_uptodate_bot branch January 22, 2020 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants