Add GH workflows to automate adding pull requests and issues to organizational projects and convert the PR validation workflow to reusable#196
Merged
dshevtsov merged 7 commits intoAdobeDocs:mainfrom Nov 6, 2025
Conversation
…ues to organizational projects. Introduce this in the reusable workflow form to be able to use from from other projects to avoid code duplication.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the GitHub Actions workflow architecture by converting the validation workflow into a reusable workflow that can be called by other workflows. It also introduces new workflows for adding pull requests and issues to organizational project boards.
- Converted
validate-pr.ymlfrom a direct pull request trigger to a reusableworkflow_callworkflow with input parameters - Created
pr-validation.ymlas the new entry point workflow that calls the refactored validation workflow - Added workflows for automatically adding PRs and issues to organizational project boards
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/validate-pr.yml |
Converted to reusable workflow with workflow_call trigger, accepting pr_number and base_ref as inputs; updated all references from github.event.pull_request to use input parameters |
.github/workflows/pr-validation.yml |
New entry point workflow that triggers on pull requests and calls the refactored validation workflow with appropriate parameters |
.github/workflows/pr-comment.yml |
Updated workflow name reference from "Validate pull request" to "PR validation" to match the new entry point workflow |
.github/workflows/add-to-project_job.yml |
New reusable workflow job for adding items to organizational project boards based on event type |
.github/workflows/add-to-project-board.yml |
New workflow that triggers on PR/issue open events and calls the project board workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jhadobe
approved these changes
Nov 6, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… and update workflow reference to local path
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.
This pull request refactors and improves the GitHub Actions workflows for PR validation, project automation, and artifact handling. The main changes include splitting workflows for better modularity, introducing workflow calls with inputs, and automating the addition of PRs and issues to organizational projects. These updates enhance maintainability, flexibility, and automation in the CI/CD process.
Workflow modularization and refactoring
pr-validation.ymlthat calls the validation workflow usingworkflow_calland passes required inputs (pr_number,base_ref), replacing direct PR triggers. (.github/workflows/pr-validation.yml, .github/workflows/pr-validation.ymlR1-R12)validate-pr.ymlto accept inputs for PR number and base branch, updating all relevant steps to use these inputs instead of GitHub context variables. (.github/workflows/validate-pr.yml, [1] [2] [3] [4] [5].github/workflows/validate-pr.yml, .github/workflows/validate-pr.ymlR161-R169)Project automation improvements
add-to-project-board.ymlandadd-to-project_job.yml) to automatically add PRs and issues to their respective organizational project boards using theactions/add-to-projectaction. (.github/workflows/add-to-project-board.yml, [1];.github/workflows/add-to-project_job.yml, [2]Workflow naming and trigger updates
pr-comment.ymlfrom "Validate pull request" to "PR validation" to match the new workflow names and triggers. (.github/workflows/pr-comment.yml, .github/workflows/pr-comment.ymlL5-R5)