[Bug] GitHub App successfully applies an archived label to a new pull request #214857
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
I can confirm this is real, and it's still happening right now — not a stale report. I checked the current state with read-only API calls just now: the The docs are unambiguous about what should happen. The REST API docs for labels say "Archived labels cannot be added to issues or pull requests", and the release notes for the feature say archived labels "disappear from pickers, autocomplete, and suggestions and cannot be newly applied, but remain on existing issues, pull requests, and discussions". The web UI enforces that — an archived label doesn't show up in the label picker. But something on the API side evidently doesn't. What most likely happened: the Codex connector applied the label through the API after creating the PR. PRs can't be created with labels attached, so it would have been a second call — almost certainly One detail worth flagging: the event's actor is you ( What you can do now, short of a platform fix:
So to your four questions, as best as I can establish from outside: (1) there's no documented exemption for GitHub Apps here, and the docs state the restriction without exceptions; (2) the restriction is clearly not enforced consistently, since the UI blocks it and the API evidently allows it; (3) yes, this looks like a genuine platform defect — a validation gap between the UI and the API; (4) the only workarounds available to you today are removing the label by hand and stopping the app from re-applying it, neither of which fixes the underlying gap. This needs GitHub staff to confirm and fix. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
Summary
An archived repository label was successfully applied to a newly created pull request through a GitHub App, despite having been archived approximately 17 days earlier.
This appears to contradict the documented behavior of GitHub's label archiving feature.
Affected Resources
sallowayma-git/IELTS-practicecodex9415725699chatgpt-codex-connector1144995Verified Timeline (UTC)
codexlabel was archived byk-undurkhaan-2.codexlabel was successfully applied to PR #337 through the ChatGPT Codex Connector.The label remains archived, and its current
archived_attimestamp still corresponds to the original archival operation on November 19.API Evidence
The repository label metadata contains the following values:
{ "id": 9415725699, "name": "codex", "archived_at": "2026-11-19T02:35:45Z" }The issue event API confirms a subsequent label assignment:
{ "id": 38369343904, "event": "labeled", "created_at": "2026-12-06T06:03:57Z", "actor": { "login": "sallowayma-git" }, "label": { "name": "codex" }, "performed_via_github_app": { "id": 1144995, "slug": "chatgpt-codex-connector" } }Relevant API resources:
Expected Behavior
According to the official GitHub REST API documentation:
Reference: https://docs.github.com/en/rest/issues/labels#update-a-label
GitHub should prevent new associations with archived labels while preserving existing historical associations.
Actual Behavior
The archived label was successfully assigned to a pull request created after the archival operation. Both the label association and its archived status are visible in the GitHub Web UI and confirmed by the API.
Impact
This behavior undermines the reliability of label archiving as a repository governance control and allows automated integrations to reintroduce formally retired labels.
Requested Investigation
Could GitHub please investigate and clarify:
The evidence was collected through read-only API queries. The exact endpoint used by the GitHub App has not been independently established, and no additional mutation-based reproduction has been performed.
Thank you for your assistance.
All reactions