-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
⚙ Configuration #96
Comments
@gr2m, I like the configuration file location. The configuration looks good, and easy to understand. This is added complexity, but have you considered allowing the application of different terms to each check location? Probably more bother than it's worth… Regarding this issue's relation to #55, I take it I could then configure like this to replicate the behaviour I was interested in?
Thanks! |
I think for the usecase to block PRs if there are commits with "fixup!" or "squash!" it works good enough to add them to the |
As an alternate name for The option
My team’s workflow is to not allow merging if there’s a “hold” label, a “fixup!” or “squash!” commit, or “WIP” in the PR title or a commit. I’m not concerned about false positives for “fixup!”, “squash!”, or “WIP”, but I could see “hold” being used for unrelated reasons in commit titles. A potential syntax for configuration per check location could look like: -
terms:
- hold
locations:
- label
-
terms:
- fixup!
- squash!
locations:
- commits
-
terms:
- WIP
locations:
- title
- commit That is, each set of term/location pairs would be a list item. |
These are great suggestions, thank you! I particularly like the suggestion of supporting a list of configurations of terms/locations pairs 👍 I think that's simple enough to explain and implement
I had the same thought. I can’t think of a use case where I would look for a term in a commit body, but I agree that |
it’s now implemented as part of #94 You can see it working at wip/sandbox#3, configuration at https://github.com/wip/sandbox/blob/8377a438bfed66888c8ba7f72945c80bcaa55cb2/.github/wip.yml |
Are there plans to also support |
|
Honestly if you need the configuration but can’t afford the $1/month (it will all be donated to https://railsgirlssummerofcode.org/) then I’m sure I can get you a voucher or something, don’t worry about it.
Thanks for your input! I think |
Configuration is here 🎉I’ve pushed it to the beta version of the WIP app and would love all your help testing it, please see my update in the 🤖📯 Updates issue. Thank you all for your patience and help 🙏 |
🎉 This issue has been resolved in version 3.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
You can sign up for the pro plan on marketplace now to use the configuration feature https://github.com/marketplace/wip. All revenue from the "pro" plan will be donated to Rails Girls Summer of Code. I only added the paid plan to make the WIP a real-life GitHub App example. If you cannot pay but depend on the pro features you can add your account with an explanation to the |
Can WIP configuration defaults be changed for the whole organization, instead of on per-repo basis? If not, is it possible to implement? |
Not yet, but once this PR gets merged and released, you can create a .github repository and out the default configuration file for your user or org in there: probot/probot-config#16 (comment) What you can do today is reference other config files, see docs at https://github.com/probot/probot-config/ |
I’m in the process of submitting the WIP app to the Marketplace. The new version will support configuration and I’d like to invite y’all to discuss what the configuration should look like. Please share your workflows and how WIP would ideally work to seamlessly integrate with it :)
Right now I see two things that should be configurable
The configuration will be done via a
.github/wip.yml
file in your repository. See https://github.com/probot/probot-config for how configuration works with Probot and stale app usage for an exampleExample configuration
This is my base of discussion, please comment below if it that works for you or if you have any questions/suggestions
Discussion
I’m not happy with the term "check". Maybe someone has a better idea?
The text was updated successfully, but these errors were encountered: