These might require extra configuration in Gitlab. [alias] # Push branch, create a merge request and set the branch to be removed on merge pmr = push -u origin HEAD...
...o merge_request.create -o merge_request.remove_source_branch # If you do not need a code review, but use the merge request to run a test pipeline: # Push branch, create a merge request...
This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as one pretty commit. Squashing commits with git rebase
...rebase -i master Note that rebasing to the master does not work if you merged the master into your feature branch while you were working on the new feature. If...
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
...from my-feature-branch will do nothing, as production is already in its history. Merging the feature branch into production would now merge commits 3 through 6, including commit...
branch master commit id: "3" commit id: "4" checkout production merge master commit id: "5" commit id: "6" This is not what we want. Instead, we want...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version the change was released. This might be the case for...
...o─┴─┘ Preparing for 6.1.5 release <=== this releases the commit we need c67e8d8 o Merge pull request #44641 from SkipKayhil/fix-rubocop-errors 1afe117 o Update CHANGELOG [ci skip] 87528db o Revert "Merge pull...
...the master, so you and your colleagues don't have a big overhead with merge conflicts. Get all existing offenses bundle exec rubocop --parallel --format offenses 541/541 files 383 Layout/ArrayAlignment...
...consider whether you want to keep all these changes in a feature branch or merge them regularly to the master branch, so you and your colleagues don't have a...
Switched to branch 'master' (master) $ This also works with other commands like git merge: (master) $ git checkout foobar Switched to branch 'foobar' (foobar) $ git merge - Merged branch 'master...
I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...
...and to not cause any trouble. Example Consider this scenario: Your refactoring is finished, merged into master but client approval takes its time and then over time more and more...
...touched "needlessly", the more complex detangling gets and the harder it will be to merge from master to production or vice versa. Have a workflow About branches
[path to file] is optional git restore --staged [file path]... When you have merged your branch you can use --merge flag to recreate the conflicted state in the unmerged...
In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...
...Dev machines are not blocked on test runs; Code Reviews include test badge; Automatically merge a PR on green tests Upgrade Rails 5 0 - 5 New Rails features are accessible...
collapse_whitespace: true, ignore_attr_order: true, ignore_comments: true, } options = default_options.merge(options).merge(verbose: true) diff = CompareXML.equivalent?(expected_doc, actual_doc, **options) diff.blank? end end Alternatives
We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist fills the gap. Before starting implementing, look at all designs...
When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...
If applied, this commit will release version 1.0.0 If applied, this commit will merge pull request #123 from user/branch Bad: If applied, this commit will fixed bug with Y...
...full control over file descriptors (and lets you point stdin to a file, or merge stdout and stderr) etc. Open3 however does not allow you to do this. If you...
When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...
...by using Ruby's interal coverage module. The coverage results of every spec is merged together into one matrix.After a spec finishes the results of the coverage module have to...
...rebase drastically. A more complex logic would be required to read out the difference. Merge of files is only allowed to happen when a complete test file has been run...
...Record.last, it will default to ordering by id. See also Before you make a merge request: Checklist for common mistakes
Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...
...up commits makes the process of reviewing often easier, since you can create several merge requests or review every commit one by one. So when you find out that you...
...to a given number of decimals 1.2345.round(2) # => 1.23 1.2345.round(3) # => 1.235 Hash#deep_merge(!) merge hashes recursively String#squish(!) removes leading and trailing whitespace, and converts all internal whitespace...
...filter'].version > Gem::Version.new('0.7') raise 'Check if PR https://github.com/svenfuchs/routing-filter/pull/87 has been merged and released. If yes, delete this monkey patch.' end # We cannot prepend a custom extension...