Add weekly meeting ping script
Also adds a .gitreview file so reviews can be submitted. Change-Id: I7a298d4013865a132a0773898f4f8f80f46bc036
This commit is contained in:
parent
1282a85185
commit
2b97634a01
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack/oslo.tools.git
|
|
@ -0,0 +1,56 @@
|
|||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
"""Script that is useful to run to make commands that will ping
|
||||
folks for the oslo weekly irc meeting.
|
||||
"""
|
||||
|
||||
import collections
|
||||
import sys
|
||||
|
||||
NOTIFY_PEPS = [
|
||||
'GheRivero', 'amotoki', 'amrith', 'bknudson', 'bnemec',
|
||||
'dansmith', 'dhellmann', 'dims', 'dougwig', 'e0ne', 'flaper87',
|
||||
'garyk', 'haypo', 'ihrachyshka', 'jd__', 'jecarey',
|
||||
'johnsom', 'jungleboyj', 'kgiusti', 'kragniz', 'lifeless',
|
||||
'lintan', 'lxsli', 'ozamiatin', 'redrobot', 'rpodolyaka',
|
||||
'spamaps', 'sergmelikyan', 'sreshetnyak', 'sileht',
|
||||
'sreshetnyak', 'stevemar', 'therve', 'thinrichs',
|
||||
'toabctl', 'viktors', 'zhiyan', 'zzzeek', 'gcb',
|
||||
'Nakato', 'rbradfor',
|
||||
]
|
||||
NOTIFY_PEPS = sorted(NOTIFY_PEPS, key=str.lower)
|
||||
NUM_PER_LINE = 7
|
||||
|
||||
|
||||
def main():
|
||||
sys.stdout.write("courtesy ping for ")
|
||||
num_in_line = 0
|
||||
peps = collections.deque(NOTIFY_PEPS)
|
||||
while peps:
|
||||
pep = peps.popleft()
|
||||
sys.stdout.write(pep)
|
||||
num_in_line += 1
|
||||
if num_in_line >= NUM_PER_LINE:
|
||||
sys.stdout.write("\n")
|
||||
if peps:
|
||||
sys.stdout.write("courtesy ping for ")
|
||||
num_in_line = 0
|
||||
else:
|
||||
if peps:
|
||||
sys.stdout.write(", ")
|
||||
if num_in_line:
|
||||
sys.stdout.write("\n")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Reference in New Issue