From 6838bc4848410e69a9918d8b45a60cf486a20f6b Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Apr 05 2016 17:19:15 +0000 Subject: Fix typos in hook descriptions and capitalize all hook names. --- diff --git a/pagure/hooks/fedmsg.py b/pagure/hooks/fedmsg.py index 4ccb304..5589df2 100644 --- a/pagure/hooks/fedmsg.py +++ b/pagure/hooks/fedmsg.py @@ -59,8 +59,8 @@ class Fedmsg(BaseHook): ''' Fedmsg hooks. ''' name = 'Fedmsg' - description = 'This hook push the commit messages'\ - ' to the Fedora bus to be consumed by other applications' + description = 'This hook pushes the commit messages'\ + ' to the Fedora bus to be consumed by other applications.' form = FedmsgForm db_object = FedmsgTable backref = 'fedmsg_hook' diff --git a/pagure/hooks/mail.py b/pagure/hooks/mail.py index 4a59f5a..9a17cbd 100644 --- a/pagure/hooks/mail.py +++ b/pagure/hooks/mail.py @@ -65,8 +65,8 @@ class Mail(BaseHook): ''' Mail hooks. ''' name = 'Mail' - description = 'Generate notification emails for pushes to a git repository.'\ - 'This hook sends emails describing changes introduced by pushes to a git repository' + description = 'Generate notification emails for pushes to a git repository. '\ + 'This hook sends emails describing changes introduced by pushes to a git repository.' form = MailForm db_object = MailTable backref = 'mail_hook' diff --git a/pagure/hooks/pagure_hook.py b/pagure/hooks/pagure_hook.py index f47f402..d381f6b 100644 --- a/pagure/hooks/pagure_hook.py +++ b/pagure/hooks/pagure_hook.py @@ -59,7 +59,7 @@ class PagureForm(wtf.Form): class PagureHook(BaseHook): ''' Pagure hook. ''' - name = 'pagure' + name = 'Pagure' description = 'Pagure specific hook to add comment on issues'\ ' if the commits fixes or relates to an issue.' form = PagureForm diff --git a/pagure/hooks/pagure_request_hook.py b/pagure/hooks/pagure_request_hook.py index b37d209..b79a725 100644 --- a/pagure/hooks/pagure_request_hook.py +++ b/pagure/hooks/pagure_request_hook.py @@ -61,8 +61,8 @@ class PagureRequestsForm(wtf.Form): class PagureRequestHook(BaseHook): ''' Pagure request hook. ''' - name = 'pagure requests' - description = 'Pagure specific hook to update pull-requests stored'\ + name = 'Pagure requests' + description = 'Pagure specific hook to update pull-requests stored '\ 'in the database based on the information pushed in the requests git repository.' form = PagureRequestsForm db_object = PagureRequestsTable diff --git a/pagure/hooks/pagure_ticket_hook.py b/pagure/hooks/pagure_ticket_hook.py index f55d323..39203ed 100644 --- a/pagure/hooks/pagure_ticket_hook.py +++ b/pagure/hooks/pagure_ticket_hook.py @@ -60,8 +60,8 @@ class PagureTicketsForm(wtf.Form): class PagureTicketHook(BaseHook): ''' Pagure ticket hook. ''' - name = 'pagure tickets' - description = 'Pagure specific hook to update tickets stored in the database'\ + name = 'Pagure tickets' + description = 'Pagure specific hook to update tickets stored in the database '\ 'based on the information pushed in the tickets git repository.' form = PagureTicketsForm db_object = PagureTicketsTable diff --git a/pagure/hooks/rtd.py b/pagure/hooks/rtd.py index ca287cb..788fcbc 100644 --- a/pagure/hooks/rtd.py +++ b/pagure/hooks/rtd.py @@ -58,7 +58,7 @@ class RtdForm(wtf.Form): [RequiredIf('active')] ) branches = wtforms.TextField( - 'Restrict build to these branches only (coma separated)', + 'Restrict build to these branches only (comma separated)', [wtforms.validators.Optional()] )