This is a fork of https://github.com/facebook/chef-cookbooks. Ideally we will send pull requests upstream for all of the changes we make here, but this repository serves as a place for us to use changes before they are accepted (if ever).
Clone this repository and ensure that you have added Facebook's repository as a git
origin:
git clone [email protected]:etsy/chef-cookbooks.git
git remote add facebook https://github.com/facebook/chef-cookbooks.git
-
Create a branch that tracks Facebook's repository:
git checkout -b to-upstream/feat-add-fb-foo --track facebook/main
-
Create your new cookbook, or edit an existing one.
-
Commit and push your changes.
-
Navigate to
https://github.com/etsy/chef-cookbooks/pull/new/<your-branch-here>
and create a pull request.Note: make sure the base repository is
facebook/chef-cookbooks
! -
Now switch back to our
main
branch and create a branch to merge your proposed change in our repository:git checkout main git checkout -b to-merge/feat-add-fb-foo
-
Then merge or cherry-pick your commits from the
to-upstream/feat-add-fb-foo
branch:git merge --squash to-upstream/feat-add-fb-foo git push
-
Navigate to
https://github.com/etsy/chef-cookbooks/compare/main...etsy:chef-cookbooks:to-merge/<your-branch-here>?expand=1
and create a pull request.Note: make sure the base repository is
etsy/chef-cookbooks
! -
Get approval on our PR, and merge. See the
README
in our internal Chef repository under thethird-party
directory for instructions on updating our dependency on this repository. -
Make changes as needed in the upstream pull request, and merge them back into our branch, and repeat steps 5 - 8 as needed.
You should strive to make changes that we can upstream, so that we remain aligned with the community-at-large. If circumstances require that you don't, you can follow this process:
-
Create a branch that tracks our repository:
git checkout -b to-merge/feat-add-fb-foo
-
Create your new cookbook, or edit an existing one.
-
Commit and push your changes.
-
Navigate to
https://github.com/etsy/chef-cookbooks/compare/main...etsy:chef-cookbooks:to-merge/<your-branch-here>?expand=1
and create a pull request.Note: make sure the base repository is
etsy/chef-cookbooks
! -
Get approval on our PR, and merge. See the
README
in our internal Chef repository under thethird-party
directory for instructions on updating our dependency on this repository.
See the instructions in our internal Chef repository under the third-party
directory.