Skip to content

Commit 9d5c0de

Browse files
kdmccormickNed Batchelder
authored andcommitted
feat!: stop adding core committer label
Stopped the bot from adding the `core committer` GitHub label to pull requests to repos on which the bot believes the author to have write access. The bot's data source for repository access, `people.yaml`, is outdated, we do not yet have a strategy for keeping it updated. Until further notice, coding Core Contributors are asked to add the `core contributor` label to their pull requests manually. Another implication of `people.yaml` being oudated is that the bot is not correctly choosing when to create Jira tickets, which welcome/help message to post, etc. We are not addressing that issue currently. Part of: #227
1 parent 8e5f2b8 commit 9d5c0de

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.. A new scriv changelog fragment.
2+
3+
- Stopped the bot from adding the ``core committer`` GitHub label to pull requests to repos on which the bot believes the author to have write access. The bot's data source for repository access, ``people.yaml``, is outdated, we do not yet have a strategy for keeping it updated. Until further notice, coding Core Contributors are asked to add the ``core contributor`` label to their pull requests manually.

docs/details.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ be changed.
8787
- Blended pull requests get "blended" applied as a GitHub label and Jira
8888
label.
8989

90-
- Core committer pull requests get "core-commiter" as a Jira label. They get
91-
"core committer" and "open-source-contribution" as GitHub labels.
90+
- Core committer pull requests get "core-commiter" as a Jira label and
91+
"open-source-contribution" as a GitHub label.
9292

93-
- Regular pull requests get "open-source-contribution" as a GitHub label.
93+
- Regular pull requests just get "open-source-contribution" as a GitHub label.
9494

9595
- The initial Jira status is set as a GitHub label on the pull request.
9696

openedx_webhooks/labels.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
GITHUB_CATEGORY_LABELS = {
1414
"blended",
15-
"core committer",
1615
"open-source-contribution",
1716
}
1817

openedx_webhooks/tasks/pr_tracking.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ def desired_support_state(pr: PrDict) -> Optional[PrDesiredInfo]:
298298
desired.jira_labels.add("core-committer")
299299
desired.jira_initial_status = "Waiting on Author"
300300
desired.bot_comments.add(BotComment.CORE_COMMITTER)
301-
desired.github_labels.add("core committer")
302301
desired.bot_comments.add(comment)
303302

304303
assert settings.GITHUB_OSPR_PROJECT, "You must set GITHUB_OSPR_PROJECT"

tests/test_pull_request_opened.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def test_core_committer_pr_opened(has_jira, fake_github, fake_jira):
287287
assert is_comment_kind(BotComment.OK_TO_TEST, body)
288288

289289
# Check the GitHub labels that got applied.
290-
expected_labels = {"open-source-contribution", "core committer"}
290+
expected_labels = {"open-source-contribution"}
291291
if has_jira:
292292
expected_labels.add("waiting on author")
293293
assert pr.labels == expected_labels

0 commit comments

Comments
 (0)