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
Which git branch should be based on when submitting a pull request #4827
Comments
In addition, I have encountered another problem: After cloning the code to the local, checkout the
Does that expected ? Or the managers will resolve these kind of code style problems before build? |
Is anyone could help? Thanks! |
Hey, as you've noticed the master branch is for lodash's next major version, while the 4.17.15-post branch are for edits to the previous version (v4), which have to be back-ported for bugfixes. So only bugfixes should move into the v4 branch, while other changes should go into master. |
@bnjmnt4n First of all thank you very much for your reply! And sorry to bother you again, I haven’t seen the issue closed when I write the reply. I still have a little question.
I have added some code locally based on the 4.17.15-post branch, and I plan to submit two PRs later. But according to your reply above, now I'm a little confused whether they are bugfixes or just enhancements. Can you please help me judge which one they belong to? Both PRs are related to
let re = /(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/u;
let result = re.exec('2015-01-02');
console.log('result: \n', result)
console.log('result from shallow copy:\n', _.clone(result))
console.log('result from deep copy:\n',_.cloneDeep(result)) Later I will submit a PR to make
const obj = {a: 1}
const map = new Map()
map.set(obj, 1)
var deepClonedMap = _.cloneDeep(map)
deepClonedMap.get(obj) // 1, which proves that the key of deepClonedMap is still `obj`
deepClonedMap.forEach((value,key) => {
console.log('key:', key) // {a: 1}
console.log('key === obj:', key === obj) // true
}) Later I will submit a PR to make In your opinion, should they be bug fixes, or is it more appropriate to call them enhancements? Thanks a lot! |
@bnjmnt4n Sorry to bother you, could you please help me solve the above questions? Thanks a lot! |
Hi, I'd eventually like to contribute in some way but I encountered a problem.
Brief of question
This is my first time participating in open source work. So I searched for the correct way to submit a PR. Then I found the most appropriate path forward would be to fork, test, and build out of one git branch(e.g. the
master
branch). But after reading the CONTRIBUTING.md,I was confused about which git branch should I commit to:
master
or4.17.15-post
.The ways I had tried to solve this problem:
In the
Contributing to Lodash
section I found:It seems like I should checkout a new branch based
master
, but then I found that in the sectionPull request
:I didn't find
lodash.js
under themaster
branch, andnpm run test
also didn't work because of the lack of files needed for building and testing.But I found the
lodash.js
under the4.17.15-post
branch, andnpm run test
could work .So, if I want to fix a bug, should I develop based on the
4.17.15-post
branch?Then I found the following paragraph in the
Notice
section:Does this mean contributions should not commit to the master branch for now?
To figure it out, I checked some recent pull requests, and found that some were commited based on the
master
branch (PR#4681), and some were commited based on4.17.15-post
branch (PR#4515), so I was completly confused:Detail of question
If I want to fix a bug, which branch should be used for development?
If I only modify a document file like
REAMDE.md
orCONTRIBUTING.md
, which branch should be used to submit?Hope someone can help.
The text was updated successfully, but these errors were encountered: