Skip to content

Hello World GitHub Action

Daniel Shiffman edited this page Mar 30, 2026 · 1 revision
.github/workflows/pr-comment.yml
name: Comment on Pull Request

on:
  pull_request:
    types: [opened]

jobs:
  comment:
    runs-on: ubuntu-latest

    steps:
      - name: Comment on PR
        uses: actions/github-script@v7
        with:
          script: |
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: "🚂 Hello from Open Source Studio!"
            })

Clone this wiki locally