Auto-assign broken link issues to code owners#775
Merged
elisabethpatterson merged 3 commits intoJun 23, 2026
Merged
Conversation
- Create requirements.in with direct dependencies - Generate requirements.txt with pip-compile --generate-hashes - Add codeowners package for CODEOWNERS file parsing - Add CI workflow to verify requirements stay in sync - Document dependency management process in CONTRIBUTING.md
- Add resolve_assignees.py to parse CODEOWNERS and select assignees - Update weekly link check workflow to assign issues after creation - Ensures at least one owner per affected file is assigned - Respects GitHub's 10-assignee limit - Uses fallback owner when no specific owner exists Related to NOAA-RDHPCS#772 and PR NOAA-RDHPCS#773
elisabethpatterson
approved these changes
Jun 16, 2026
chanwilson
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #774
Enhances the weekly link check workflow to automatically assign created issues to the code owners of the files containing broken links.
Related to #772 and PR #773, which fix duplicate issue creation for broken links.
Changes
1. Hash-pinned dependencies for supply chain security
requirements.in(new): Direct dependencies listrequirements.txt(regenerated): Fully pinned with SHA256 hashes viapip-compile --generate-hashescodeownerspackage added for parsing CODEOWNERS files.github/workflows/check_requirements_sync.yml(new): CI check to verify requirements stay in syncCONTRIBUTING.md(updated): Documents how to manage dependencies2. Automatic issue assignment to code owners
.github/scripts/resolve_assignees.py(new): Parses issue body to extract file paths, resolves owners from CODEOWNERS.github/workflows/weekly_check_all_links.yml(updated): Assigns issues to code owners after creationAssignment Logic
.github/CODEOWNERS@elisabethpatterson)Testing
Tested locally with mock issue bodies:
Dependency Security
The new
requirements.txtincludes SHA256 hashes for all packages and their transitive dependencies. This protects against:Developers must run
pip-compile --generate-hashes requirements.inwhen updating dependencies.