Skip to content

Commit

Permalink
feat!: stop adding core committer label
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kdmccormick authored and Ned Batchelder committed Jul 26, 2023
1 parent 8e5f2b8 commit 9d5c0de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. A new scriv changelog fragment.
- 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.
6 changes: 3 additions & 3 deletions docs/details.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ be changed.
- Blended pull requests get "blended" applied as a GitHub label and Jira
label.

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

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

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

Expand Down
1 change: 0 additions & 1 deletion openedx_webhooks/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

GITHUB_CATEGORY_LABELS = {
"blended",
"core committer",
"open-source-contribution",
}

Expand Down
1 change: 0 additions & 1 deletion openedx_webhooks/tasks/pr_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ def desired_support_state(pr: PrDict) -> Optional[PrDesiredInfo]:
desired.jira_labels.add("core-committer")
desired.jira_initial_status = "Waiting on Author"
desired.bot_comments.add(BotComment.CORE_COMMITTER)
desired.github_labels.add("core committer")
desired.bot_comments.add(comment)

assert settings.GITHUB_OSPR_PROJECT, "You must set GITHUB_OSPR_PROJECT"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pull_request_opened.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def test_core_committer_pr_opened(has_jira, fake_github, fake_jira):
assert is_comment_kind(BotComment.OK_TO_TEST, body)

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

0 comments on commit 9d5c0de

Please sign in to comment.