Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Cui committed Feb 12, 2019
1 parent de979c7 commit 6f41ca6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions config/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ repositories:
languages:
- name: zh
path: content/zh
labels:
- lang/zh
labels: []
- name: jp
path: content/jp
labels:
Expand Down
4 changes: 2 additions & 2 deletions errbot-plugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RUN /usr/local/bin/prepare.sh
COPY config.py /errbot/
COPY transbot /errbot/plugins/transbot
WORKDIR /errbot
VOLUME ["/errbot/data", "/errbot/config"]
CMD ["/usr/local/bin/entry.sh"]
VOLUME ["/errbot/data", "/errbot/config", "/errbot/repository"]
CMD ["/usr/local/bin/entry.sh"]
1 change: 1 addition & 0 deletions errbot-plugin/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ PyGithub
PyYAML
markdown<3.0
sleekxmpp
python-telegram-bot==10.1.0
errbot[slack,telegram,IRC,hipchat]
4 changes: 1 addition & 3 deletions errbot-plugin/transbot/transbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ def build_issue(trans, branch, item_list):
skip_count += 1
else:
new_count += 1
yield ("New Issue: #{}: {}".format(
new_issue.number, new_issue.title))
if new_count >= MAX_WRITE:
break
return new_count, skip_count
return new_count, skip_count


def remote_repository_name():
Expand Down
2 changes: 1 addition & 1 deletion transutil/transutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def create_issue(self, github_repository, title, body, labels=[],
dupe = True
break
else:
if set(search_labels) & set(issue_record["labels"]) == set(search_labels):
if set(search_labels).issubset(issue_record["labels"]):
dupe = True
break

Expand Down

0 comments on commit 6f41ca6

Please sign in to comment.