Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Remove thank you message (#1103)
Browse files Browse the repository at this point in the history
As this was posted as it's own comment, it was found to be a bit spammy.

The long term fix for this is to have a *single* message when Issues/PRs
are created, see
#1081 (comment)
  • Loading branch information
gundalow committed Dec 3, 2018
1 parent 1d3ca35 commit c93eed6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
12 changes: 0 additions & 12 deletions ansibullbot/triagers/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,18 +806,6 @@ def create_actions(self, iw, actions):
if u'needs_triage' not in actions.unlabel:
actions.unlabel.append(u'needs_triage')

# Thank submitter
if iw.created_at > datetime.datetime(2018, 10, 11): # before, PR could already have been thanked
previous_comment = iw.history.last_date_for_boilerplate(u'thank_submitter')
if not previous_comment:
tvars = {
u'submitter': iw.submitter,
u'is_pullrequest': iw.is_pullrequest(),
}
comment = self.render_boilerplate(tvars, boilerplate=u'thank_submitter')
if comment not in actions.comments:
actions.comments.insert(0, comment) # thank should be first comment

# owner PRs
if iw.is_pullrequest():
if self.meta[u'owner_pr']:
Expand Down
2 changes: 1 addition & 1 deletion templates/issue_missing_data.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@{{ submitter }}: in order for the community to handle your {{ itype }} effectively, we need a bit more information.
@{{ submitter }}: Greetings! Thanks for taking the time to open this {{ itype }}. In order for the community to handle your {{ itype }} effectively, we need a bit more information.

Here are the items we could not find in your description:
{% for item in missing_sections %}
Expand Down
4 changes: 0 additions & 4 deletions templates/thank_submitter.j2

This file was deleted.

0 comments on commit c93eed6

Please sign in to comment.