Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Hackbot cannot see members of the mozilla-employee-confidential group

未关闭 适合新手
#7,288 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
63/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
fastapi, python

调研方向

从 app/bugzilla_authorization.py 开始,重点查看 _is_user_in_group,然后追踪 app/routers/webhooks.py 中对它的调用,并检查 Bugzilla REST 对此组查询的响应。报告的问题是在检查是否属于 mozilla-employee-confidential 时收到 400 响应;请确定原因,并确认 webhook 能为该组成员成功处理授权检查。

由索引模型根据 Issue 内容生成。

描述

hackbot

Sentry Issue: HACKBOT-API-11

HTTPStatusError: Client error '400 Bad Request' for url 'https://bugzilla.mozilla.org/rest/user?names=dkl%40mozilla.com&groups=mozilla-employee-confidential&include_fields=name&permissive=1'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
(18 additional frame(s) were not displayed)
...
  File "fastapi/routing.py", line 352, in run_endpoint_function
    return await dependant.call(**values)
  File "app/routers/webhooks.py", line 182, in bugzilla_webhook
    if not await authorizer.is_authorized(detected.user_login):
  File "app/bugzilla_authorization.py", line 37, in is_authorized
    authorized = await self._is_user_in_group(login, self._authorized_group_name)
  File "app/bugzilla_authorization.py", line 57, in _is_user_in_group
    response.raise_for_status()
  File "httpx/_models.py", line 829, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
主要语言
Python
星标
576
派生
364
平均合并
3 天 3 小时
30 天内合并 PR
133

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla/bugbug 的其他 Issue

查看 mozilla/bugbug 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。