Skip to content

chore: Add Web IDE link on pull request creation - #265

Open
ibuziuk wants to merge 1 commit into
mainfrom
ibuziuk-patch-4
Open

chore: Add Web IDE link on pull request creation#265
ibuziuk wants to merge 1 commit into
mainfrom
ibuziuk-patch-4

Conversation

@ibuziuk

@ibuziuk ibuziuk commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This workflow adds a link to open the pull request in Web IDE when a pull request is opened.

Summary by CodeRabbit

  • New Features
    • Added a Web IDE link to newly opened pull requests, enabling contributors to launch the project in an online development environment.

This workflow adds a link to open the pull request in Web IDE when a pull request is opened.
@ibuziuk
ibuziuk requested review from SDawley, dkwon17 and svor as code owners July 31, 2026 13:24
@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ibuziuk

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

A new GitHub Actions workflow runs when a pull request opens. It grants the required repository permissions and invokes redhat-actions/try-in-web-ide@main with GITHUB_TOKEN.

Changes

Web IDE workflow

Layer / File(s) Summary
Configure Web IDE pull request integration
.github/workflows/.github/workflows/try-in-web-ide.yaml
The workflow responds to newly opened pull requests, sets read, pull-request write, and status write permissions, and invokes the Web IDE action with GITHUB_TOKEN.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: dkwon17, sdawley, svor

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a GitHub Actions workflow that posts a Web IDE link when pull requests are created.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ibuziuk-patch-4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/.github/workflows/try-in-web-ide.yaml (1)

1-29: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Move the Web IDE workflow into the scanned directory.

.github/workflows/.github/workflows/try-in-web-ide.yaml is not a reachable GitHub Actions workflow path. Move it to .github/workflows/try-in-web-ide.yaml so PRs can trigger the Web IDE link job.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/.github/workflows/try-in-web-ide.yaml around lines 1 - 29,
Move the workflow containing the add-link job and try-in-web-ide step from the
nested .github/workflows location to the repository’s reachable
.github/workflows/try-in-web-ide.yaml path, preserving its existing trigger,
permissions, and action configuration.
🧹 Nitpick comments (1)
.github/workflows/.github/workflows/try-in-web-ide.yaml (1)

26-26: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Pin the action reference instead of using @main.

redhat-actions/try-in-web-ide@main references a mutable branch. Combined with pull_request_target and secrets.GITHUB_TOKEN write permissions, any change pushed to that branch runs immediately with elevated permissions on every opened pull request, without review. Official documentation for this action pins to a version tag such as v1.

Pin the action to a release tag or commit SHA.

🔒 Proposed fix to pin the action reference
-        uses: redhat-actions/try-in-web-ide@main
+        uses: redhat-actions/try-in-web-ide@v1
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/.github/workflows/try-in-web-ide.yaml at line 26, Update
the redhat-actions/try-in-web-ide action reference from the mutable `@main` branch
to a stable release tag such as `@v1` or a specific commit SHA, while preserving
the existing workflow behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.github/workflows/.github/workflows/try-in-web-ide.yaml:
- Around line 1-29: Move the workflow containing the add-link job and
try-in-web-ide step from the nested .github/workflows location to the
repository’s reachable .github/workflows/try-in-web-ide.yaml path, preserving
its existing trigger, permissions, and action configuration.

---

Nitpick comments:
In @.github/workflows/.github/workflows/try-in-web-ide.yaml:
- Line 26: Update the redhat-actions/try-in-web-ide action reference from the
mutable `@main` branch to a stable release tag such as `@v1` or a specific commit
SHA, while preserving the existing workflow behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0be736b6-9587-4491-bee8-32ba56a36ac4

📥 Commits

Reviewing files that changed from the base of the PR and between 131c397 and c432adc.

📒 Files selected for processing (1)
  • .github/workflows/.github/workflows/try-in-web-ide.yaml

@github-actions

Copy link
Copy Markdown

Pull Request UBI 10 images published ✨

Base: quay.io/devfile/base-developer-image:ubi10-pr-265
UDI: quay.io/devfile/universal-developer-image:ubi10-pr-265

@github-actions

Copy link
Copy Markdown

Pull Request images published ✨

Base: quay.io/devfile/base-developer-image:pr-265
UDI: quay.io/devfile/universal-developer-image:pr-265

@dkwon17

dkwon17 commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

@ibuziuk thank you for the PR, could you please signoff the commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants