ea83401500
devel-project: skip to update reminder repeatedly for particular projects
...
If the target project of a submit request is part of 'reminder-once-only-target-projects',
devel-project should skip to update reminder comment if there is a one
already.
2025-01-20 17:58:50 +08:00
Dirk Müller
730630f06f
Use f-strings where possible
2024-05-07 21:52:32 +02:00
8e5674b5ca
devel-project: limit request has review state only
2023-05-11 21:59:59 +08:00
81882680ff
Use old function to pass tests
2023-01-25 17:16:35 +01:00
Stephan Kulow
aaab4af930
Target F401 - Unused imports
2022-02-18 18:29:27 +01:00
Stephan Kulow
f86579642b
Target E501 - Line too long
...
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
529d1dafae
Target E302 - add two comment lines before class
2022-02-18 17:15:48 +01:00
Stephan Kulow
4e9c8eabbe
Target E305 - Have two empty lines of a class
2022-02-18 17:11:46 +01:00
Stephan Kulow
579145b52c
Target F841 - Remove unused variables
2022-02-18 17:01:38 +01:00
Martin Vidner
71baf59779
devel-project: make "list" the default command work in Python 3.3
...
Improves the previous commit,
fixes "AttributeError: 'Namespace' object has no attribute 'write'"
after showing the listing
2021-08-05 11:58:02 +02:00
4e54cb5678
devel-project: Add a func callback to main parser
...
Workarouds https://bugs.python.org/issue16308
Which otherwise causes:
AttributeError: 'Namespace' object has no attribute 'func'
2021-08-05 11:17:04 +02:00
ec88760187
Fix Flake E241
...
One more step towards white space sanity. Next group is E20x.
2019-12-10 08:46:02 +01:00
Stephan Kulow
6dbc1c88f0
Run devel projects reminder on gocd
2019-05-29 07:50:42 +02:00
Jimmy Berry
45bc515ed8
osclib/core: rework as package_list_kind_filtered().
2019-05-14 18:58:19 -05:00
Jimmy Berry
e855d915ed
devel-project: notify: catch smtp exceptions rather than crashing.
2019-03-08 10:02:53 -06:00
Jimmy Berry
4dbcc5bc40
osclib/util: mail_send() utilize Config.get() pattern.
2019-03-06 15:49:50 -06:00
Jimmy Berry
4de13f332e
devel-projects: remove workaround for OBS xpath bug during request search.
...
Now that the bug related to openSUSE/open-build-service#5571 has been fixed
the inverted behavior of exclude_target_projects no longer works. As such
the argument should be removed and only way to get the desired behavior
is to override include_request_from_project which includes request sourced
from specific project. For the purposes of `devel-projects requests` only
interested in requests targeting a specific project.
See also commit 0b342a5.
2018-10-31 20:14:44 -05:00
Jimmy Berry
536e17cb79
osclib/stagingapi: rename dashboard_content_* methods to pseudometa_file_*.
...
No need to be confusing and use the deprecated dashboard name.
2018-08-17 23:19:24 -05:00
Jimmy Berry
24b15d6b0b
Replace relevant 'dashboard' package references with pseudometa lookup.
...
Skipping some of the broader once which have no tangible impact, but are
expensive to change.
2018-08-17 23:18:32 -05:00
Jimmy Berry
760ddf39e6
osclib/conf: decouple from StagingAPI and always fetch remote config.
...
As the remote config is no longer optional for SLE and is utilized by
openSUSE to the point were it is dangerous not to load the remote config
it should be required. Currently only certain users call apply_remote()
while this will make it built-in during construction and thus makes the
usage consistent and no longer require StagingAPI.
2018-08-16 21:53:40 -05:00
Jimmy Berry
600a486745
Utilize ET.fromstringlist() intead of joining strings.
2018-08-16 00:26:53 -05:00
Ludwig Nussel
cfa8d8482b
devel-project: reword notifier
2018-06-11 10:27:43 +02:00
Jimmy Berry
9c214723c1
devel-project: notify: utilize osclib.core.package_list_without_links().
...
Otherwise, all packages are returned which include psuedo-packages like
kernel-default which is really a multi-build of kernel-source. When
invoking devel_project_fallback() the return ends up being
openSUSE:Factory/kernel-source which is less than desireable.
2018-04-17 17:31:34 -05:00
Jimmy Berry
1dc269feaf
devel-project: remove unused imports.
2018-04-17 17:15:48 -05:00
Jimmy Berry
72c057949b
devel-project: provide notify sub-command.
2018-04-10 22:55:33 -05:00
Jimmy Berry
b1fd3ad49a
osclib/core: request_age() return delta and handle Request object.
...
In #1370 devel-project.py was broken since it need delta.days and uses
Request class.
2018-01-29 03:14:24 -06:00
Jimmy Berry
b8c91eaed7
devel-project: utilize osclib.core.request_age().
2018-01-25 21:27:04 -06:00
Jimmy Berry
c2955c0233
devel-project: override osc.core.search() to include withfullhistory for get_review_list().
...
#1206 was a bit to optimistic as the deficiency was only half resolved.
2017-10-27 19:19:58 -05:00
Jimmy Berry
a6d397e88f
devel-project: list: only remove self if in devel project list.
2017-10-24 16:23:04 -05:00
Jimmy Berry
be5b3ec12d
Merge pull request #1206 from jberry-suse/devel-project-osc-160
...
devel-project: utilize get_request_list(withfullhistory) param provided by osc 0.160.0.
2017-10-19 14:50:31 -05:00
Jimmy Berry
5f714c2608
devel-project: utilize get_request_list(withfullhistory) param provided by osc 0.160.0.
...
The addition of queries to search() breaks the altered implementation of
search. The custom search() can be dropped since openSUSE/osc@902b48f
provides the missing functionality.
2017-10-18 14:46:17 -05:00
3cf49d9556
Python 2.6+ / 3.x style except clauses
...
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
Jimmy Berry
85dbc57f12
stagingapi: provide dashboard_content_{load,save,ensure}() and utilize.
2017-07-27 23:52:58 -05:00
Jimmy Berry
623e9d5cbf
devel-project: provide maintainer command to check for relevant groups.
2017-07-19 00:49:38 -05:00
Jimmy Berry
cf65210d2c
devel-project: get(): utilize osc.core.search() and improve xpath loop.
2017-07-19 00:11:33 -05:00
Jimmy Berry
a3d840a653
devel-project: ensure self does not end up in list.
...
Otherwise, openSUSE:Factory ends up in the list and causes undesirable
results when using the requires sub-command.
2017-04-18 17:37:00 -05:00
Jimmy Berry
eab1adb90b
devel-project: gracefully skip when removal of previous comment fails.
...
Given that previous comment is used as a basis for determining the time
since last reminder if it cannot be removed a new reminder should not be
created.
2017-04-11 15:38:45 -05:00
Jimmy Berry
df088b32bc
devel-project: drop user list if no maintainers.
2017-03-10 13:24:00 -06:00
Jimmy Berry
32dba4ab62
devel-project: fallback to project if package has no maintainers.
2017-03-10 13:23:29 -06:00
Jimmy Berry
1393c61c71
devel-project: provide --remind and --repeat-age options.
2017-03-10 00:29:22 -06:00
Jimmy Berry
1e58ea8bbe
devel-project: print age of request and filter via --min-age.
2017-03-09 23:56:14 -06:00
Jimmy Berry
ebc9543d7b
devel-project: add reviews subcommand.
2017-03-09 23:41:32 -06:00
Jimmy Berry
bb9c77ab1b
devel-project: add requests subcommand.
2017-03-09 23:41:16 -06:00
Jimmy Berry
74badbf075
devel-project: import http_GET and makeurl.
2017-03-09 23:40:41 -06:00
Jimmy Berry
d1c33026df
devel-project: provide devel_projects_load().
2017-03-09 23:40:31 -06:00
Jimmy Berry
98bf596937
devel-project: check if list changed before saving.
2017-03-09 18:17:06 -06:00
Jimmy Berry
2f59755ec6
devel-project: refactor structure to allow subcommands.
2017-03-09 18:15:31 -06:00
Jimmy Berry
cf8413b3ce
devel-project: rename from devel-project-list.
2017-03-09 18:14:19 -06:00