Skip to content

Commit

Permalink
bug 1430353 - allow for an easier to read treeherder relpro symbol. r…
Browse files Browse the repository at this point in the history
…=bstack
  • Loading branch information
escapewindow committed Jan 16, 2018
1 parent b654a30 commit 0be9df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion taskcluster/taskgraph/actions/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ def register_callback_action(name, title, symbol, description, order=10000,
def register_callback(cb):
assert isinstance(cb, FunctionType), 'callback must be a function'
assert isinstance(symbol, basestring), 'symbol must be a string'
assert 1 <= len(symbol) <= 25, 'symbol must be between 1 and 25 characters'
# Allow for json-e > 25 chars in the symbol.
if '$' not in symbol:
assert 1 <= len(symbol) <= 25, 'symbol must be between 1 and 25 characters'
assert not mem['registered'], 'register_callback_action must be used as decorator'
assert cb.__name__ not in callbacks, 'callback name {} is not unique'.format(cb.__name__)

Expand Down
2 changes: 1 addition & 1 deletion taskcluster/taskgraph/actions/release_promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def is_release_promotion_available(parameters):
@register_callback_action(
name='release-promotion',
title='Release Promotion',
symbol='Relpro',
symbol='${input.release_promotion_flavor}',
description="Promote a release.",
order=10000,
context=[],
Expand Down

0 comments on commit 0be9df7

Please sign in to comment.