Skip to content

Update analytics.mdx #2947

Update analytics.mdx

Update analytics.mdx #2947

Workflow file for this run

name: Holopin
on:
pull_request_target:
types:
- closed
- labeled
jobs:
issue_lava_lamp_holobyte:
name: Issue Lava Lamp Holobyte
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged }}
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: Issue Lava Lamp Holobyte
run: gh pr edit "$NUMBER" --add-label "$LABELS"
if: steps.check_if_contributor_is_external.outputs.is_external == 'true'
env:
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: contribution
issue_global_contribution_badge:
name: Issue Global Contribution badge
runs-on: ubuntu-latest
if: github.event.label.name == 'outstanding contribution'
steps:
- name: Issue Global Contribution badge
run: gh pr edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
LABELS: "[automation] outstanding contribution"