Skip to content

ci(lint): require a godoc on every exported symbol #2258

ci(lint): require a godoc on every exported symbol

ci(lint): require a godoc on every exported symbol #2258

Workflow file for this run

name: Notify Cloud
on:
pull_request_target:
branches: [master]
jobs:
dispatch:
name: Dispatch enterprise validation to cloud
# A repository_dispatch run is not covered by the fork-approval gate.
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-24.04
steps:
- name: Generate token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
with:
app-id: ${{ secrets.CLOUD_DISPATCH_APP_ID }}
private-key: ${{ secrets.CLOUD_DISPATCH_APP_PRIVATE_KEY }}
owner: shellhub-io
repositories: cloud
- name: Dispatch to cloud
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
// On pull_request_target, context.sha is the base commit, not the head.
await github.rest.repos.createDispatchEvent({
owner: 'shellhub-io',
repo: 'cloud',
event_type: 'shellhub-pr',
client_payload: {
sha: context.sha,
head_sha: context.payload.pull_request.head.sha,
head_ref: context.payload.pull_request.head.ref,
pr_number: context.payload.pull_request.number,
},
});