Skip to content

Commit

Permalink
Merge pull request #2209 from dannon/gitpod-link
Browse files Browse the repository at this point in the history
Add gitpod link action for PRs
  • Loading branch information
dannon authored Oct 6, 2023
2 parents 1388e1b + 164bad5 commit 0aca8ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/gitpod-link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add Gitpod Link

on:
pull_request:
types: [opened]

jobs:
add_comment:
runs-on: ubuntu-latest
steps:
- name: Comment PR
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const pr = context.payload.pull_request
github.issues.createComment({
issue_number: pr.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `[Open in Gitpod](https://gitpod.io/#${pr.html_url})`
})

0 comments on commit 0aca8ae

Please sign in to comment.