Skip to content

Instantly share code, notes, and snippets.

View fredericlepied's full-sized avatar

Frederic Lepied fredericlepied

View GitHub Profile
#!/bin/bash
changeid="$(git log -1|sed -n -e 's/^\s*Change-Id: //p')"
if [ -z "$changeid" ]; then
echo "Unable to find Change-Id in the commit message. Aborting." 1>&2
exit 1
fi
branch="$(git branch --show-current)"
#!/usr/bin/env python
#
# Update OpenStack Oslo and Clients libraries versions in rdoinfo from:
# http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt
import copy
import string
import ruamel.yaml as yaml
RDO = 'rdo.yml'
#!/bin/bash
if [ $# -lt 2 ]; then
echo "$0 <branch> <milestone> <changelog message>" 1>&2
echo "Example: $0 rdo-mitaka Rebuild for Mitaka" 1>&2
exit 1
fi
set -ex