Skip to content

Commit dc7688c

Browse files
Sample workflows: Document way to change pull ops (#172)
1 parent 5587307 commit dc7688c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/workflows.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ This step detects whether the changes are significant by ignoring changes
104104
to the file header. A commit and push only occur if meaningful changes are found,
105105
these filters can be modified to suit.
106106

107+
The workflow pulls translations using the `Transifex CLI <https://developers.transifex.com/docs/cli>`_
108+
and is currently configured to pull *all* files. The configuration options
109+
can be modified with the command line argument ``--pull-options``, for example:
110+
111+
.. code-block::
112+
113+
--pull-options="--mode reviewed" # This will only pull reviewed translations
114+
107115
108116
Test Build Workflow
109117
-------------------

sample-workflows/transifex-util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def fetch():
2424
exit(code)
2525
lang = LANGUAGE
2626
if PULL_OPTIONS:
27-
_call(f"tx pull -l {lang} {PULL_OPTIONS}") # XXX Do we pull everything?
27+
_call(f"tx pull -l {lang} --force {PULL_OPTIONS}") # XXX Do we pull everything?
2828
else:
2929
_call(f"tx pull -l {lang} --force")
3030
for file in Path().rglob("*.po"):

0 commit comments

Comments
 (0)