feat: Validate PR action posts results as PR comment, passing-checks label, and auto-update outdated branches#115
Merged
Conversation
Agent-Logs-Url: https://github.com/Lamatic/AgentKit/sessions/8f1b885f-a880-4429-a9ae-216787d43b56 Co-authored-by: amanintech <28403318+amanintech@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Lamatic/AgentKit/sessions/8f1b885f-a880-4429-a9ae-216787d43b56 Co-authored-by: amanintech <28403318+amanintech@users.noreply.github.com>
…ed summaries Agent-Logs-Url: https://github.com/Lamatic/AgentKit/sessions/8f1b885f-a880-4429-a9ae-216787d43b56 Co-authored-by: amanintech <28403318+amanintech@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Validate PR contribution action to add review result in comments
feat: Validate PR action posts results as PR comment, passing-checks label, and auto-update outdated branches
Mar 29, 2026
Contributor
PR Validation ResultsCheck Results
Warnings
🎉 All checks passed! This contribution follows the AgentKit structure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three enhancements to the CI/automation workflows: validation results are now posted directly on the PR (not just in the Actions summary), a
passing-checkslabel is applied/removed based on check outcome, and outdated challenge PR branches are automatically rebased onto the base branch.validate-pr.yml/tmp/pr_validation_summary.md; a new step creates or updates a single bot comment on the PR with the full report on every runpassing-checkslabel: new step adds the label on validation success, removes it on failure; creates the label via GET-then-POST (no duplicate creation, logs all outcomes)issues: writepermission;id: validateon the validation step for outcome referencingreview-challenge-prs.yml[#N](url)markdown links instead of plain#Npassing-checkslabel:addPassingLabel/removePassingLabelhelpers called in every branch — added for clean PRs, removed fornoReview,changesRequested, andactionableCommentsstates; label created once before the looppulls.getreadsmergeable_state; callsupdateBranchwhen'behind'; separate try/catch for check vs. update with distinct error messages; allmergeable_statevalues documented; updated PRs appear in a new 🔀 Branch Updated summary sectioncontents: writepermissionPR Checklist
1. Select Contribution Type
kits/<category>/<kit-name>/)bundles/<bundle-name>/)templates/<template-name>/)2. General Requirements
kebab-caseand matches the flow IDREADME.md(purpose, setup, usage)3. File Structure (Check what applies)
config.jsonpresent with valid metadata (name, description, tags, steps, author, env keys)flows/<flow-name>/(where applicable) include:config.json(Lamatic flow export)inputs.jsonmeta.jsonREADME.md.env.examplewith placeholder values only (kits only)config.jsonnode graphs (changes via Lamatic Studio export)4. Validation
npm install && npm run devworks locally (kits: UI runs; bundles/templates: flows are valid)[kit] Add <name> for <use case>)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.