-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add support for teams * add skip_non_organization_members field * change: refactor otterdog config class to support exclude filters for teams * fix: twofa seed key for pass provider * fix: timeout for web client * fix: update README with pass key change * fix: twofa seed key for plain provider * fix: bitwarden provider * chore: add more debugging output, reduce timeout to 10s * chore(deps): update dependencies
- Loading branch information
Showing
50 changed files
with
935 additions
and
354 deletions.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Definition of an organization `Team`, the following properties are supported: | ||
|
||
| Key | Value | Description | Note | | ||
|---------------------------------|--------------|--------------------------------------------------------------------------------------|-----------------------| | ||
| _name_ | string | The name of the team | | | ||
| _description_ | string | The description of the team | | | ||
| _privacy_ | string | The level of privacy this team should have | `visible` or `secret` | | ||
| _notifications_ | boolean | Whether the team members receive notifications when the team is @mentioned | | | ||
| _members_ | list[string] | List of users that should be a member of the team | | | ||
| _skip_members_ | boolean | If `true`, team members will be ignored | | | ||
| _skip_non_organization_members_ | boolean | If `true`, users which are not yet organization members can not be added to the team | | | ||
|
||
|
||
## Jsonnet Function | ||
|
||
``` jsonnet | ||
orgs.newTeam('<name>') { | ||
<key>: <value> | ||
} | ||
``` | ||
|
||
## Validation rules | ||
|
||
- setting `privacy` must be one of `visible` or `secret`, any other value triggers an error | ||
- specifying a non-empty list of `members` while `skip_members` is enabled, triggers an error | ||
- specifying a user in `members` that is not yet an organization member while `skip_non_organization_members` is enabled, triggers an error | ||
|
||
## Example usage | ||
|
||
=== "jsonnet" | ||
``` jsonnet | ||
orgs.newOrg('OtterdogTest') { | ||
... | ||
teams+: [ | ||
orgs.newTeam('committers') { | ||
description: "The project committers", | ||
privacy: "visible", | ||
}, | ||
], | ||
... | ||
} | ||
``` |
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
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
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
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
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
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
Oops, something went wrong.