-
Notifications
You must be signed in to change notification settings - Fork 26
Update Github CodeTeam Plugin to enforce github.team
presence
#79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
professor
merged 10 commits into
rubyatscale:main
from
timlkelly:github-code-teams-plugin
Nov 29, 2023
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
23f996e
Update Github CodeTeam Plugin to enforce `github.team` presence
timlkelly d8148c6
Use GithubStruct
timlkelly 91dbe38
Ignore CodeTeams without a `github.team` key
timlkelly 694b464
Add `require_github_teams` configuration option
timlkelly f8e3e1e
Update Github Plugin to enforce required_github_teams
timlkelly 538d035
Fix github_codeowners_up_to_date_spec.rb:759
timlkelly 428b44f
Add spec for require_github_teams configuration
timlkelly 9675d51
Update uniqueness of github teams spec
timlkelly 6406107
Bump minor version to 1.35.0
timlkelly 77338ad
Update Gemfile.lock
timlkelly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes sense, but one concern is that this is technically a breaking change since it was previously allowed to be
nil
and now it is no longer allowed to be.One alternative to simplify this is to just ignore teams that do not have this set when specifying teams used more than once. That way it wouldn't be considered an error and wouldn't show up in the confusing way you described in the PR description.
Let me know what ya think @timlkelly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great call out! Thanks for bringing that up. Is there interest in a separate team plugin to require the Github key? Then it could potentially be opt-in and a non-breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That could be a separate plugin. Another possibility is if the code ownership configuration YML file could support an optional configuration flag, e.g.
require_github_teams
that errors if any are nil. That way it can be opt-in without needing to fragment the plugin.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexevanczuk good idea. I've updated it to include a new configuration key. I'm new to sorbet, so let me know if I missed anything there.