• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / relman-auto-nag / #4532

pending completion
#4532

push

coveralls-python

web-flow
Bump pre-commit from 3.3.1 to 3.3.2 (#2073)

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.3.1...v3.3.2)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

641 of 3220 branches covered (19.91%)

1817 of 7996 relevant lines covered (22.72%)

0.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/bugbot/rules/affected_flag_confirm.py
1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
3
# You can obtain one at http://mozilla.org/MPL/2.0/.
4

5
from bugbot import utils
×
6
from bugbot.bzcleaner import BzCleaner
×
7

8

9
class AffectedFlagConfirm(BzCleaner):
×
10
    def description(self):
×
11
        return "Unconfirmed bugs that have an affected Firefox version flag"
×
12

13
    def get_bz_params(self, date):
×
14
        params = {
×
15
            "bug_status": "UNCONFIRMED",
16
            "j1": "OR",
17
            "f1": "OP",
18
        }
19

20
        statuses = ",".join(
×
21
            [
22
                "affected",
23
                "wontfix",
24
                "fix-optional",
25
                "fixed",
26
                "disabled",
27
                "verified",
28
                "verified disabled",
29
            ]
30
        )
31

32
        last_version = utils.get_nightly_version_from_bz()
×
33
        first_version = last_version - 40
×
34
        for version in range(first_version, last_version + 1):
×
35
            i = version - first_version + 2
×
36
            params[f"f{i}"] = f"cf_status_firefox{version}"
×
37
            params[f"o{i}"] = "anyexact"
×
38
            params[f"v{i}"] = statuses
×
39
        params[f"f{i+1}"] = "CP"
×
40

41
        return params
×
42

43
    def get_autofix_change(self):
×
44
        return {
×
45
            "comment": {
46
                "body": "The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed."
47
            },
48
            "status": "NEW",
49
        }
50

51

52
if __name__ == "__main__":
×
53
    AffectedFlagConfirm().run()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc