Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: GitHub actions, check that reviewer has commented on PR + tag docs PRs #3788

Merged
merged 7 commits into from
Nov 21, 2024
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
25 changes: 25 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate Docs PR comments
on:
issue_comment:
types: [created]
paths:
- docs/developer-docs/

jobs:
check_comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/github-script@v6
if: contains(github.event.comment.body, 'I agree that I have run the commands and code included in this PR and have confirmed their accuracy and functionality.')
with:
script: |
const comments = require('./.github/workflows/scripts/comments.js');
await comments.create(context, github, `PR content has been validated by a reviewer.`);
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/docs-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tag Docs PRs
on:
pull_request:
paths:
- docs/developer-docs/**
jobs:
docs-tag:
name: Tag PR with documentation
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Tag PR with documentation
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label documentation
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading