Skip to content

Hide the Record button after a meeting ends #330

Hide the Record button after a meeting ends

Hide the Record button after a meeting ends #330

name: CLA maintainer skip
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
statuses: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
skip:
if: contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association)
runs-on: ubuntu-24.04
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHA: ${{ github.event.pull_request.head.sha }}
run: |
for _ in 1 2 3 4 5 6; do
if gh api "repos/${GITHUB_REPOSITORY}/commits/${SHA}/status" \
--jq '.statuses[] | select(.context=="license/cla") | .state' \
| grep -q .; then
break
fi
sleep 10
done
gh api "repos/${GITHUB_REPOSITORY}/statuses/${SHA}" \
-f state=success \
-f context=license/cla \
-f description="Skipped for maintainers"