PR/Branch for "new" plugin? #139
Replies: 2 comments 2 replies
-
How much changes when you switch to OpenMeteo? If it's not a complete re-write/refactor of the weather plugin my thought would be to add a constant to the Then in the weather plugin itself do a conditional that checks which service to use. To answer your original question regarding creating a PR, generally the way that would work is a "feature branch" would be created, something like In other words:
|
Beta Was this translation helpful? Give feedback.
-
That makes sense, sounds like the conditional approach may be a good one.
A few options here IMO, either have them be set in the constants file as separate variables (easiest and likely preferred), or do a split on Open to other feedback, but my personal vote would be to just use a conditional inside the current plugin. Here is some pseudo code, you can test, and wrap the same
|
Beta Was this translation helpful? Give feedback.
-
I was having trouble with wttr.in being down and made a copy of the weather plugin using a site called OpenMeteo. If I were to submit a PR, would that go to a new branch or an existing one?
Beta Was this translation helpful? Give feedback.
All reactions