Skip to content

Commit

Permalink
chore: added default roles to the configuration and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jan 3, 2025
1 parent 4ae4bb0 commit 6c57cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To configure your Ubiquity Kernel to run this plugin, add the following to the `
rolesWithReviewAuthority: ["MEMBER", "OWNER"]
requiredLabelsToStart:
- name: "Priority: 5 (Emergency)"
roles: ["admin", "collaborator"]
roles: ["admin", "collaborator", "write"]
```
# Testing
Expand Down
4 changes: 2 additions & 2 deletions src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ export function stringLiteralUnion<T extends string[]>(values: [...T]): Union<In
return T.Union(literals) as Union<IntoStringLiteralUnion<T>>;
}

const roles = stringLiteralUnion(["admin", "member", "collaborator", "contributor", "owner", "billing_manager"]);
const roles = stringLiteralUnion(["admin", "member", "collaborator", "contributor", "owner", "billing_manager", "read", "write"]);

const requiredLabel = T.Object({
name: T.String({ description: "The name of the required labels to start the task." }),
roles: T.Array(roles, {
description: "The list of allowed roles to start the task with the given label.",
uniqueItems: true,
default: ["admin", "member", "collaborator", "contributor", "owner", "billing_manager"],
default: ["admin", "member", "collaborator", "contributor", "owner", "billing_manager", "write"],
}),
});

Expand Down

0 comments on commit 6c57cbc

Please sign in to comment.