Skip to content

Add record for convert3d.hackclub.com #974

Add record for convert3d.hackclub.com

Add record for convert3d.hackclub.com #974

Workflow file for this run

name: contact-check
on:
pull_request_target:
merge_group:
permissions:
contents: read
pull-requests: write
jobs:
contact-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
allow-unsafe-pr-checkout: true
- uses: actions/setup-python@v6
with:
python-version: "3"
- name: Install dependencies
run: pip install ruamel.yaml
- name: Check contact info on changed domains
id: contact-check
env:
EVENT_NAME: ${{ github.event_name }}
BASE_REF: ${{ github.base_ref }}
MERGE_BASE_SHA: ${{ github.event.merge_group.base_sha }}
run: |
if [ "$EVENT_NAME" = "merge_group" ]; then
python3 bin/check-contact-info --base "$MERGE_BASE_SHA"
else
python3 bin/check-contact-info --base "origin/$BASE_REF"
fi
- name: Comment on PR if missing contact info
if: failure() && steps.contact-check.outcome == 'failure' && github.event_name == 'pull_request_target'
uses: actions/github-script@v9
with:
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
event: 'REQUEST_CHANGES',
body: '鈿狅笍 **Missing contact info on your DNS entry!**\n\nFor all new subdomains, we now require contact information. You need to put either your email, Slack ID, or both in a comment. We intend for this information to be easily machine-readable (using a regex), so please make sure it is formatted correctly.\n\nSee the example below:\n```yaml\namogus: # alexp@hackclub.com U01581HFAGZ\n ttl: 300\n type: CNAME\n value: a.selfhosted.hackclub.com.\n```'
})