You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
-
# Teams
1
+
# CodeTeams
2
2
3
-
This gem is a simple, low-dependency, plugin-based manager for engineering teams within a codebase.
3
+
This gem is a simple, low-dependency, plugin-based manager for teams within a codebase.
4
4
5
5
## Usage
6
6
7
-
To use teams, add YML files in `config/teams` that start with structure:
7
+
To use `code_teams`, add YML files in `config/teams` that start with structure:
8
8
`config/teams/my_team.yml`
9
9
```yml
10
10
name: My Team
11
11
```
12
12
13
-
`teams` leverages a plugin system because every organization's team practices are different. Say your organization uses GitHub and wants to ensure every team YML files has a GitHub owner. To do this, you create a plugin:
13
+
`code_teams` leverages a plugin system because every organization's team practices are different. Say your organization uses GitHub and wants to ensure every team YML files has a GitHub owner. To do this, you create a plugin:
14
14
15
15
```ruby
16
-
class MyGithubPlugin < Teams::Plugin
16
+
class MyGithubPlugin < CodeTeams::Plugin
17
17
extend T::Sig
18
18
extend T::Helpers
19
19
@@ -36,7 +36,7 @@ class MyGithubPlugin < Teams::Plugin
36
36
members.include?(user)
37
37
end
38
38
39
-
sig { override.params(teams: T::Array[Teams::Team]).returns(T::Array[String]) }
39
+
sig { override.params(teams: T::Array[CodeTeams::Team]).returns(T::Array[String]) }
40
40
def self.validation_errors(teams)
41
41
errors = T.let([], T::Array[String])
42
42
@@ -61,7 +61,7 @@ github:
61
61
62
62
1) You can now use the following API to get GitHub information about that team:
63
63
```ruby
64
-
team = Teams.find('My Team')
64
+
team = CodeTeams.find('My Team')
65
65
MyGithubPlugin.for(team).github
66
66
```
67
67
2) Running team validations (see below) will ensure all teams have a GitHub team specified
@@ -76,8 +76,8 @@ Your plugins can be as simple or as complex as you want. Here are some other thi
76
76
## Configuration
77
77
You'll want to ensure that all teams are valid in your CI environment. We recommend running code like this in CI:
0 commit comments