This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# The folowing code example will delete all merged branches to master(can be any) if the branch have no commits since 2 months. | |
echo "I am about to delete all git branches merged to master and haven't received any commits since 2 months." | |
echo "Are you sure about this? (y / n) >" | |
read answer | |
# Ops: Get all remote merged branches to master. Any filter to just list the required branchs 'Eg: grep ticket_111', so that we don't delete any major branches. | |
# remove 'origin/' from the remote branch name. Check if no commits since 2 months and if commit counts 0 the delete the remote branch | |
if [ $answer == "y" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set html = content.getFieldValue( "my_xmltext_field" ).xml|xmltext_to_html5 %} | |
<div> | |
{{ html }} | |
</div> |