Skip to content

mergable_changes: add PR preview workflow - #229

Open
glimchb wants to merge 1 commit into
spdk:mainfrom
glimchb:mergable-changes-preview
Open

glimchb wants to merge 1 commit into
spdk:mainfrom
glimchb:mergable-changes-preview

Conversation

@glimchb

@glimchb glimchb commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Add a GitHub Actions workflow (.github/workflows/mergable-changes-preview.yml)
triggered on PRs changing mergable_changes.py or template.html and on
workflow_dispatch. It renders the page with live Gerrit data, uploads
the output as an artifact, and posts the HTML as a PR comment.

Generated with Devin

@glimchb
glimchb force-pushed the mergable-changes-preview branch from 4dca015 to 755b472 Compare July 30, 2026 11:54
@glimchb
glimchb requested a review from tomzawadzki July 30, 2026 11:54
@glimchb
glimchb force-pushed the mergable-changes-preview branch from 755b472 to 17a2ea4 Compare July 30, 2026 12:22
@glimchb
glimchb requested a review from karlatec July 30, 2026 12:29
@glimchb
glimchb force-pushed the mergable-changes-preview branch 2 times, most recently from 54097a2 to cf4d1f4 Compare July 30, 2026 14:11
@glimchb glimchb changed the title mergable_changes: add RUN_ONCE mode and PR preview workflow mergable_changes: add PR preview workflow Jul 30, 2026
@glimchb
glimchb force-pushed the mergable-changes-preview branch 2 times, most recently from 0bd3900 to 004290a Compare July 30, 2026 15:34
@glimchb
glimchb marked this pull request as draft August 10, 2026 14:24
@glimchb glimchb added the enhancement New feature or request label Aug 10, 2026
@glimchb glimchb added the bug Something isn't working label Aug 17, 2026

@karlatec karlatec left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Partially covered by #232.
Abandon or rebase?

@glimchb
glimchb force-pushed the mergable-changes-preview branch from 004290a to 615708e Compare September 8, 2026 13:15
@glimchb

glimchb commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Partially covered by #232. Abandon or rebase?

rebased

@glimchb
glimchb requested a review from karlatec September 8, 2026 13:16
Add a GitHub Actions workflow (.github/workflows/mergable-changes-preview.yml)
triggered on PRs changing mergable_changes.py or template.html and on
workflow_dispatch. It renders the page with live Gerrit data, uploads
the output as an artifact, and posts the HTML as a PR comment.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@glimchb
glimchb force-pushed the mergable-changes-preview branch from 615708e to 56953ce Compare September 8, 2026 13:17
@glimchb glimchb self-assigned this Sep 8, 2026
@glimchb
glimchb marked this pull request as ready for review September 8, 2026 13:17
@glimchb glimchb removed the bug Something isn't working label Sep 8, 2026
uses: actions/checkout@v7

- name: Install Python dependencies
run: pip install requests pygerrit2 prettytable jinja2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit - copy pasta from mergable_changes/Dockerfile. Let's move it to requirements.txt if used in more than one place?


- name: Post preview comment on PR
if: false
#if: github.event_name == 'pull_request'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Feels like if: false should be deleted and pull_request re-enabled?
Also - shouldn't this be run only in case previous steps have succeeded? (i.e. html file was actually generated)

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants