Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,3 @@ jobs:
- uses: ./.github/actions/assign-pr
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

review_comment:
name: Add review comment
runs-on: ubuntu-latest
steps:
- id: check_if_contributor_is_external
name: Check if contributor is external
run: 'curl --write-out ''%{http_code}'' --silent --output /dev/null -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GH_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/cloudflare/members/${{ github.event.pull_request.user.login }} | grep -q ''204'' && echo "is_external=false" >> $GITHUB_OUTPUT || echo "is_external=true" >> $GITHUB_OUTPUT'
env:
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
- name: External comment
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. We review new, external PRs within **two (2) weeks**. If it's been two weeks or longer without any movement, please tag the PR **Assignees** in a comment."
if: steps.check_if_contributor_is_external.outputs.is_external == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
- name: Internal comment
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. We review internal PRs within **1 week**. If it's something urgent or has been sitting without a comment, start a thread in the *Developer Docs* space internally."
if: steps.check_if_contributor_is_external.outputs.is_external == 'false'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
27 changes: 14 additions & 13 deletions .hyperlint/config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
content_dir: /src/content
authorized_users:
- dcpena
- kodster28
- KianNH
- marciocloudflare
- pedrosousa
- ranbel
- RebeccaTamachiro
style_guide:
reviewer:
custom_comment: |-
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within **two (2) weeks**. If it's been two weeks or longer without any movement, please tag the PR **Assignees** in a comment.

We review internal PRs within **1 week**. If it's something urgent or has been sitting without a comment, start a thread in the *Developer Docs* space internally.
enabled: true
openapi:
enabled: true
urls:
- https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json
external_link_validation:
check_status_upon_review_failure: neutral
summarize_pull_request:
enabled: true
vale_style_guide:
check_status_upon_review_failure: neutral
enabled: true
limit_num_reviews: 2
limit_num_comments: 7
Loading