aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* pkgdev commit: add optional support for Closes tags with resolutionLucio Sauer2024-07-201-2/+49
| | | | | | | | | | | | | | | | | | Support resolutions FIXED, OBSOLETE and PKGREMOVED, provided that the bug belongs to b.g.o. The default and fallback resolution is FIXED. Together with server-side changes to https://gitweb.gentoo.org/infra/githooks.git/, this patch allows Gentoo contributors to generate commit tags that cause bugs to be closed automatically with the indicated resolution. Currently, only the string after the last colon in the argument is significant for the resolution. Therefore, one could theoretically craft invalid tags such as 'Closes: https://bugs.gentoo.org/123:foo (obsolete)' Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tatt: fix template for extra fileArthur Zamarin2024-07-011-3/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* mask: support filing bugs with no dependent bugsArthur Zamarin2024-06-121-0/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* mask: fix test & improve error messagesArthur Zamarin2024-06-021-1/+6
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/188 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* mask: support comma separated bugsArthur Zamarin2024-05-311-2/+5
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* mask: support auto filing of last-rite bug & PMASKED bugsArthur Zamarin2024-05-181-35/+116
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* mask: update removal line to match GLEP-84Arthur Zamarin2024-05-171-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.2.11Arthur Zamarin2024-03-211-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tatt: test run should be after the use combinationsArthur Zamarin2024-03-121-3/+3
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/174 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tatt: fix required_use for packages from bugArthur Zamarin2024-03-121-3/+3
| | | | | | | | | | | | When invoked on bug's package list, we use nattka to find matches in the repo. Nattka requires configured repo, which we were passing beforehand. But this results in a case where we have a configured packages, without source ebuild's "required_use" (it was "configured" by the domain). While somewhat ugly, fix it by performing a second iteration, this time over the source repo, and get the expected package object we can use. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: don't crash when atom not found in historyArthur Zamarin2024-02-261-7/+17
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.2.10Arthur Zamarin2024-02-101-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: indicate why dependent packages are addedArthur Zamarin2024-01-251-4/+6
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/170 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: implement edit resulting graph before filingArthur Zamarin2024-01-231-20/+146
| | | | | Relates: https://github.com/pkgcore/pkgdev/issues/169 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* argparse: better handling of ~/.bugzrcArthur Zamarin2023-12-301-2/+8
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: improve error outputArthur Zamarin2023-12-301-7/+7
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* docs: some cleanup and improvementsArthur Zamarin2023-12-302-2/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: auto extend maintainers with projectsArthur Zamarin2023-12-291-1/+29
| | | | | | | | When ``--projects`` is passed, fetch ``projects.xml``, and extent the maintainers list with projects whose members include maintainers. Resolves: https://github.com/pkgcore/pkgdev/issues/157 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: add support for filtering targets by StableRequestArthur Zamarin2023-12-291-3/+27
| | | | | | | | Add ``--filter-stablereqs`` and ``--stabletime`` to filter targets for those which have ready StableRequest pkgcheck result. Resolves: https://github.com/pkgcore/pkgdev/issues/157 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: add ``--find-by-maintainer`` optionArthur Zamarin2023-12-291-0/+30
| | | | | | | | Scan over the whole repository to find packages maintained by passed emails. It would try to find best stable candidate from that package. Resolves: https://github.com/pkgcore/pkgdev/issues/157 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: improve best match finderArthur Zamarin2023-12-291-21/+21
| | | | | | | | | | Use ``find_best_match`` for finding the best match, for the targets list (instead of just selecting the max for each target). Apply this for stabilization groups and cmd line packages. We do need to opt out the preference for semi-stable over non-stable, as we want to stabilize those requested. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: support ~/.bugzrc fir api-key extractionArthur Zamarin2023-12-223-26/+43
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/162 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: handle merging of top level nodesArthur Zamarin2023-12-171-0/+1
| | | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/125 Resolves: https://github.com/pkgcore/pkgdev/issues/167 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: merge stable groups as first stepArthur Zamarin2023-12-151-1/+1
| | | | | | | The is no good reason to perform it as last, but as first step it does work better. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: prefer using user selected targetsArthur Zamarin2023-12-151-0/+5
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/161 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: mention age of packages in the bug descriptionArthur Zamarin2023-12-151-4/+24
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/140 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: print bug summary where existing bug is foundArthur Zamarin2023-12-151-1/+2
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/163 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tatt: add support for extra env filesArthur Zamarin2023-12-092-1/+28
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tatt: pass configuration to specific package and not all envArthur Zamarin2023-12-082-33/+67
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/149 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.2.9Arthur Zamarin2023-12-071-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* pkgdev_bugs: add warning about using --api-key, document ~/.bugz_tokenFlorian Schmaus2023-09-081-1/+3
| | | | | | Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/pkgcore/pkgdev/pull/159 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* pkgdev_bugs: remove outdated --api-key descriptionFlorian Schmaus2023-09-081-3/+1
| | | | | | | pkgdev now does perform write access to b.g.o using the API key. Signed-off-by: Florian Schmaus <flow@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* pkgdev_bugs: do not swallow exceptions when reading ~/.bugz_tokenFlorian Schmaus2023-09-081-2/+3
| | | | | | | | | In case the file is not readable, or other issues, do not swallow the exception. Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/pkgcore/pkgdev/pull/158 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: add support for stabilization groupsArthur Zamarin2023-09-011-5/+40
| | | | | | | | | | | | Uses new feature from pkgcore, which allows to specify stabilization groups (packages that should be stabilized together). You can pass groups using "@group/name" syntax, for example "@gnome/vte", and it will include all packages from the group. Note that the merging of nodes happens without care if the group was passed or not, so if you pass manually all packages, it would still work. Resolves: https://github.com/pkgcore/pkgdev/issues/154 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* push: `--ask` stops for confirmation on warningsArthur Zamarin2023-08-241-1/+8
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/150 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* commit: add support to enable/disable gpg signingArthur Zamarin2023-07-051-1/+13
| | | | | | | | | | | | You can use "--gpg-sign" and "--no-gpg-sign" to enable/disable gpg signing. If you don't specify any of them, pkgdev will use the value listed in metadata/layout.conf. You can also set this in configuration, using `commit.no-gpg-sign=` or `commit.gpg-sign=`. Resolves: https://github.com/pkgcore/pkgdev/issues/146 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: fix bugs to open countArthur Zamarin2023-06-221-1/+6
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/142 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: improve output textsArthur Zamarin2023-06-091-2/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: fix summary is too longArthur Zamarin2023-06-091-1/+5
| | | | | | | | | When there are a lot of atoms in same bug, the summary gets too long and server responds with Bad Request. For such long titles, shorten it into one atom and suffix " and friends" (great text from sam) Resolves: https://github.com/pkgcore/pkgdev/issues/141 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: fix wrong blocks_bug arg to deps bugsArthur Zamarin2023-05-281-1/+1
| | | | | | | | | When failing, fails with the following exception:: TypeError: Object of type function is not JSON serializable Fixes: f5b955018af5715bdd72ce6b094bf901be2d8ced Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: fallback to `~/.bugz_token` for api-keyArthur Zamarin2023-05-051-0/+6
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/138 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: add support for passing root blockerArthur Zamarin2023-05-051-4/+20
| | | | | | | | | | Add option to pass `--blocks [bug_no]`. The "root" bugs (those corresponding to the starting nodes, those packages passed as args) will be created and block the passed bug. You can pass multiple bugs to block, separated by comma. Resolves: https://github.com/pkgcore/pkgdev/issues/139 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.2.8Arthur Zamarin2023-04-221-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* new release 0.2.7v0.2.7Arthur Zamarin2023-04-221-1/+1
| | | | | | | There was an issue with 0.2.6 on PyPI, and I don't want a .post version, so let's just bump Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: support piping package list from stdinArthur Zamarin2023-04-221-5/+17
| | | | | | | | | | | | When calling the tool without packages (for example just `pkgdev bugs`), and you pipe (from a file or another command) a list of packages, it will read the package list and use it. The input file can have empty lines, and comments. Everything after the first # is considered a comment. Whitespaces are stripped. Resolves: https://github.com/pkgcore/pkgdev/issues/136 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: fix restriction passing to find_best_matchArthur Zamarin2023-04-221-4/+12
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/131 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: better error message when package not foundArthur Zamarin2023-04-221-1/+9
| | | | | Resolves: https://github.com/pkgcore/pkgdev/issues/134 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* git: declare PKGDEV=1 env for git commandsArthur Zamarin2023-04-211-4/+6
| | | | | | | | Can be used in git hooks to verify if we are running inside a pkgdev call. Resolves: https://github.com/pkgcore/pkgdev/issues/133 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* pkgdev bugs: Fix spelling of agent noun for 'file'Arsen Arsenović2023-04-201-1/+1
| | | | | | | The agent noun of the verb '(to) file' is 'filer'. Signed-off-by: Arsen Arsenović <arsen@gentoo.org> Closes: https://github.com/pkgcore/pkgdev/pull/135 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* bugs: query for existing open bugsArthur Zamarin2023-03-271-1/+58
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>