Skip to content

Commit 855e904

Browse files
authored
Merge pull request #245 from Sakib25800/feat/extend-delegation
Extend delegation command for specific permissions
2 parents 141a7ba + fcb9688 commit 855e904

20 files changed

+337
-98
lines changed

.sqlx/query-1e5d97de9e3b8c34ac2cfa4c00a6dd191dc70a3db77def03371d8bdfde2ae5e6.json renamed to .sqlx/query-20af51652af617c2dd08fa93dd1d15f4d489033bff42397fc0afb4ea5eb54b3f.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-c167f66a34b486f57451b2fe2b56818a7eecc35e2746ad6b8d02046ccc11d2d1.json renamed to .sqlx/query-39dfcf0ddecf2f8289e73f2d89aa390c91fb8f792a8f52eb2a4431bb1a64693d.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-493281673a29a83ddf6d37bdddfb099ae6455cdbd346e4e97eaffcb3b5e7a874.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-71942069bc62e1dbedca845779de5f3d0a6878caf78ee0d600bb2c8fe30036fd.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.sqlx/query-bf55fcca8efe00b9cf906c31b3266f17bd2abf63dcee374959bd8fb978890656.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-c9d86eebfcadcae17f8a5e7e31f0e7c14ea0eabe866a27fbdedbddcc0166af43.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.sqlx/query-9e8a84ab79912f65d2e2db8060bd5a0f2b98c91675d42fa0c767c13f9338b4ff.json renamed to .sqlx/query-e5a74be5eb97b28aeed406572f6c588f7b7ff1d9e4aeab0940d7a34e941af7a9.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/commands.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ which is by default set to `@bors`.
88
| `help` | | Print help message with available commands. |
99
| `r+` | `review` | Approve this PR. |
1010
| `r+ p=<priority>` | `review` | Approve this PR with specified priority. |
11-
| `r+ rollup=<never/iffy/maybe/always>` | `review` | Approve this PR with specified rollup status. |
11+
| `r+ rollup=<never|iffy|maybe|always>` | `review` | Approve this PR with specified rollup status. |
1212
| `r=<user>` | `review` | Approve this PR on behalf of specified user. |
1313
| `r=<user> p=<priority>` | `review` | Approve this PR on behalf of specified user with priority. |
1414
| `r-` | `review` | Unapprove this PR. |
@@ -18,9 +18,10 @@ which is by default set to `@bors`.
1818
| `try jobs=<job1,job2,...>` | `try` | Start a try build with specific CI jobs (up to 10). |
1919
| `try cancel` | `try` | Cancel a running try build. |
2020
| `p=<priority>` | `review` | Set the priority of a PR. Alias for `priority=` |
21-
| `delegate+` | `review` | Delegate approval authority to the PR author. |
21+
| `delegate+` | `review` | Delegate review permissions to the PR author. |
22+
| `delegate=<try|review>` | `review` | Delegate try or review permissions to the PR author. |
2223
| `delegate-` | `review` | Remove any previously granted delegation. |
23-
| `rollup=<never/iffy/maybe/always>` | `review` | Set the rollup mode of a PR. |
24+
| `rollup=<never|iffy|maybe|always>` | `review` | Set the rollup mode of a PR. |
2425
| `rollup` | `review` | Mark PR for rollup with "always" status. |
2526
| `rollup-` | `review` | Mark PR for rollup with "maybe" status. |
2627
| `info` | | Get information about the current PR. |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
-- Add up migration script here
2-
ALTER TABLE pull_request ADD COLUMN delegated BOOLEAN NOT NULL DEFAULT FALSE;
2+
ALTER TABLE pull_request ADD COLUMN delegated BOOLEAN NOT NULL DEFAULT FALSE;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- Add down migration script here
2+
ALTER TABLE pull_request
3+
ADD COLUMN delegated BOOLEAN;
4+
5+
UPDATE pull_request
6+
SET
7+
delegated = CASE
8+
WHEN delegated_permission = 'review' THEN TRUE
9+
ELSE FALSE
10+
END;
11+
12+
ALTER TABLE pull_request
13+
DROP COLUMN delegated_permission;

0 commit comments

Comments
 (0)