Skip to content

Commit 5d2b053

Browse files
authored
Merge branch 'master' into remove-gevent
2 parents 59862d2 + a2c8717 commit 5d2b053

File tree

11 files changed

+51
-33
lines changed

11 files changed

+51
-33
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Automatic PR Merger
2+
3+
on:
4+
push: {} # update PR when base branch is updated
5+
status: {} # try to merge when other checks are completed
6+
pull_request_review: # try to merge after review
7+
types:
8+
- submitted
9+
- edited
10+
- dismissed
11+
pull_request: # try to merge if labels have changed (white/black list)
12+
types:
13+
- labeled
14+
- unlabeled
15+
16+
jobs:
17+
# thats's all. single step is needed - if PR is mergeable according to
18+
# branch protection rules it will be merged automatically
19+
mergepal:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: rasahq/[email protected]
24+
with:
25+
token: ${{ secrets.RASABOT_AUTOMERGE_GITHUB_TOKEN }}

.github/workflows/continous-integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,3 +261,12 @@ jobs:
261261
pip install -U github3.py pypandoc
262262
python3 scripts/publish_gh_release_notes.py
263263
./scripts/ping_slack_about_package_release.sh
264+
265+
mergepal-merge: # run merge pal in the end
266+
runs-on: ubuntu-latest
267+
needs: [quality, test, api, docker]
268+
steps:
269+
- uses: actions/checkout@v1
270+
- uses: rasahq/[email protected]
271+
with:
272+
token: ${{ secrets.RASABOT_AUTOMERGE_GITHUB_TOKEN }}

.mergepal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
whitelist:
2+
- status:ready-to-merge
3+
method: merge

changelog/4605.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove outdated whitespace tokenizer warning in Testing Your Assistant documentation.

changelog/5757.removal.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Removed previously deprecated packages ``rasa_nlu`` and ``rasa_core``.
2+
3+
Use imports from ``rasa.core`` and ``rasa.nlu`` instead.

docs/user-guide/testing-your-assistant.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ to the left of the plot.
198198
is that an entity cannot stop or start inside a token.
199199
For example, if you have an example for a ``name`` entity
200200
like ``[Brian](name)'s house``, this is only valid if your tokenizer splits ``Brian's`` into
201-
multiple tokens. A whitespace tokenizer would not work in this case.
201+
multiple tokens.
202202

203203

204204
Response Selection

rasa/core/channels/webexteams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def send_image_url(
3939
async def send_custom_json(
4040
self, recipient_id: Text, json_message: Dict[Text, Any], **kwargs: Any
4141
) -> None:
42-
json_message.setdefault("roomID", recipient_id)
42+
json_message.setdefault("roomId", recipient_id)
4343
return self.api.messages.create(**json_message)
4444

4545

@@ -128,7 +128,7 @@ async def webhook(request: Request) -> HTTPResponse:
128128
else:
129129
metadata = self.get_metadata(request)
130130
await self.process_message(
131-
on_new_message, message.text, message.personId, metadata
131+
on_new_message, message.text, message.roomId, metadata
132132
)
133133
return response.text("")
134134

rasa/nlu/training_data/message.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ def __init__(
2525
self.output_properties = set()
2626

2727
def set(self, prop, info, add_to_output=False) -> None:
28-
self.data[prop] = info
29-
if add_to_output:
30-
self.output_properties.add(prop)
28+
if prop == TEXT:
29+
self.text = info
30+
else:
31+
self.data[prop] = info
32+
if add_to_output:
33+
self.output_properties.add(prop)
3134

3235
def get(self, prop, default=None) -> Any:
3336
if prop == TEXT:

rasa_core/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

rasa_nlu/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)