25 Commits

Author SHA1 Message Date
b40d8c0053 Fix E275: missing whitespace around keywords 2022-08-18 11:05:55 +02:00
Stephan Kulow
e52dc6ce2b Harmonize imports on using lxml for XML parsing 2022-02-18 11:16:01 +01:00
Jimmy Berry
7559153cbf osclib/comments: provide request description as comment.
Useful for operating on request descriptions inline with comments.
2019-11-04 13:22:38 -06:00
Jimmy Berry
66c912475d osclib/comments: command_find(): allow seperators after user.
Users attempt both with and without seperators so might as well support.
2019-09-04 18:44:45 -05:00
Stephan Kulow
691fa83616 Convert iterator to list to avoid RuntimeError
dictionary changed size during iteration
2019-04-30 14:28:55 +02:00
Jimmy Berry
e1fac3e900 osclib/comments: force encoding to ascii to avoid OBS 400 errors. 2018-11-09 16:09:25 -06:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
d583ced482 osclib/comments: command_find: use MULTILINE mode. 2018-05-08 21:42:05 -05:00
Jimmy Berry
5cc8920689 osclib/comments: command_find: stupid \r line endings. 2018-05-08 21:41:13 -05:00
Jimmy Berry
49bc52187b osclib/comments: provide command_find() for comment commands. 2018-03-06 16:42:07 -06:00
Jimmy Berry
1bd5b99028 ReviewBot: comment_write(): provide info_extra_identical parameter.
Allows for excluding info_extra from comment_find() and compares messages
after marker has been removed.
2017-12-29 18:32:43 -06:00
Jimmy Berry
642f0536a1 ReviewBot: comment_write(): pre-truncate for correct comparison.
Otherwise, long comments that end up being truncated are re-posted.
2017-10-05 17:40:26 -05:00
Jimmy Berry
bf2832aaf2 commentapi: provide truncate() and apply during add_comment(). 2017-08-23 15:59:22 -05:00
Jimmy Berry
fe400a209b comments: avoid attempt to delete non-existent parent comments. 2017-07-10 17:12:37 -05:00
Jimmy Berry
dfcad869c9 comments: provide parent_id parameter for add_comment(). 2017-06-01 10:10:12 +02:00
Jimmy Berry
040cfde16b comments: remove unused chunks() from comment_find(). 2017-06-01 10:10:12 +02:00
Jimmy Berry
6ed8e2ea8a comments: add query parameter to _prepare_url(). 2017-06-01 10:10:12 +02:00
Jimmy Berry
47459ccb29 CommentAPI: provide comment_find() and add_marker() from ReviewBot. 2017-03-10 00:09:27 -06:00
Ludwig Nussel
6c7325f31b fix CommentAPI.delete_from_where_user 2015-05-28 13:16:36 +02:00
5962765901 action #2858 Remove code from staging relate with the old osc staging check command 2014-07-31 14:16:54 +02:00
cb74d62875 Add empty line. 2014-06-04 11:04:36 +02:00
Stephan Kulow
bef2b1bdae fix iterating over comments 2014-05-26 10:32:09 +02:00
Stephan Kulow
94f08697d4 fix issues pointed out by alberto 2014-05-23 11:51:51 +02:00
Stephan Kulow
d0a620cb7d make sure we delete comment childrens first then parents
Otherwise OBS will leave them as "this was deleted"
2014-05-23 11:20:37 +02:00
da139e58d9 Add CommentAPI class. 2014-05-20 12:26:56 +02:00