The latest comment seems to be unreliable. We should use agent itself, this will
skip all the messages that were generated by toddler itself.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
If the last comment on the ticket is from your pagure_user ignore
pagure.issue.comment.added topic.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
Ping the maintainers if there is no comment from toddler user present yet. This
is a change from current behavior, when the comment was only done, when there
was no comment on the issue altogether.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
During the manual testing was found out that the json wasn't sent the way the
pagure is expecting it (as string). So this commit adds json.dumps before
sending the payload itself.
It also fixes formatting of one message.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
If manual interference is needed for SCM request, smc_request_processor first
adds comment to ticket notifying the maintainers of fedora-scm-requests
repository and then waits for subsequent comment that will validate
the issue.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This is helpful when trying to test the toddler manually. It now has main and
could be ran as separate script. It just needs configuration file and ticket
number on releng/fedora-scm-requests.
Signed-off-by: Michal Konečný <mkonecny@redhat.com>