mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
ci: cap open PRs at 4 with drafts and 2 ready for review (#27)
Describe the new open-PR limits (floci-loft decision 0021) in CONTRIBUTING.md and the PR template, and grant the caller contents: write, which the shared workflow needs to convert a PR back to a draft. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
248d7a67f6
commit
ac57626481
3 files changed
+7
-4
No files matched your search
@@ -6,6 +6,8 @@ name: PR Limit
|
||||
#
|
||||
# pull_request_target gives the token write access on fork PRs. Neither this workflow
|
||||
# nor the reusable one checks out or runs PR code; they only call the GitHub API.
|
||||
# contents: write is needed only for converting a PR back to a draft (the GitHub API
|
||||
# refuses the token without it). Never add a checkout of the PR head here.
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
@@ -23,6 +25,7 @@ on:
|
||||
default: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
|
||||
Reference in new issue
Block a user