Coder Social home page Coder Social logo

⚙ Configuration about app HOT 13 CLOSED

wip avatar wip commented on May 20, 2024 14
⚙ Configuration

from app.

Comments (13)

gr2m avatar gr2m commented on May 20, 2024 4

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

The option commits is slightly unintuitive if it only refers to commit subjects

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 "commit_title" is more clear than just "commit"

from app.

blairconrad avatar blairconrad commented on May 20, 2024 3

@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?

terms:
- fixup!
- squash!

check:
- commits

Thanks!

from app.

u2606 avatar u2606 commented on May 20, 2024 3

As an alternate name for check, what do you think about locations? Then both configuration options would be nouns, not a noun and a verb.


The option commits is slightly unintuitive if it only refers to commit subjects. I don’t have a strong opinion between the following:

  • changing the option to also search commit bodies
  • renaming the option to something like commit_subjects
  • renaming the option, and also adding a commit_bodies 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.

from app.

gr2m avatar gr2m commented on May 20, 2024 1

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 terms config. I don’t think there is a chance for false positives that these terms could be found in labels or the pull request title

from app.

gr2m avatar gr2m commented on May 20, 2024 1

Are there plans to also support .github/apps/wip.yml

.github/wip.yml is the convention coming from Probot, I’ll stick to it

I've noticed configurations are only supported for Pro

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.

I like location more than checks but maybe it's a bit too vague. How about check_locations or verification_locations?

Thanks for your input! I think locations is fine now, I’ll make sure to document it properly

from app.

gr2m avatar gr2m commented on May 20, 2024 1

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/

from app.

gr2m avatar gr2m commented on May 20, 2024

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

from app.

tomkerkhove avatar tomkerkhove commented on May 20, 2024

The configuration will be done via a .github/wip.yml file

Are there plans to also support .github/apps/wip.yml? Would be great to have a subfolder for apps so that GitHub configs are seperated.

from app.

tomkerkhove avatar tomkerkhove commented on May 20, 2024
  • Pricing - Based on https://github.com/wip/app/blob/marketplace-app/HOW_IT_WORKS.md I've noticed configurations are only supported for Pro. Did you consider configuration to be supported for Free as well but only for PR title? This would allow users to still configure the terms without having full power. Not a requirement for me but just thinking out loud.
  • Configuration Naming - I like location more than checks but maybe it's a bit too vague. How about check_locations or verification_locations?

from app.

gr2m avatar gr2m commented on May 20, 2024

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 🙏

from app.

gr2m avatar gr2m commented on May 20, 2024

🎉 This issue has been resolved in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from app.

gr2m avatar gr2m commented on May 20, 2024

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 pro-plan-for-free.js file.

from app.

alecmev avatar alecmev commented on May 20, 2024

Can WIP configuration defaults be changed for the whole organization, instead of on per-repo basis? If not, is it possible to implement?

from app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.