DEVOPS-1060: [COPILOT Edit]: Add JIRA title trigger to PR workflow#117
Merged
Conversation
…ed PR titles Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the JIRA PR actions GitHub workflow to run on pull_request edit events, but only execute the JIRA validation job when the PR title actually changes—avoiding unnecessary runs for non-title edits.
Changes:
- Added
editedto thepull_requestevent types. - Added a job-level
ifguard so the reusable JIRA workflow only runs oneditedwhengithub.event.changes.titleis present. - Updated the referenced reusable workflow version.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| call-workflow-pr_jira_actions: | ||
| uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3.3.0 | ||
| if: github.event.action != 'edited' || github.event.changes.title != null | ||
| uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3 |
| jobs: | ||
| call-workflow-pr_jira_actions: | ||
| uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3.3.0 | ||
| if: github.event.action != 'edited' || github.event.changes.title != null |
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.
DEVOPS-1060 - in github, exception on jira number check for automatic PR Bumping CI-tools
Add conditional to JIRA workflow to only trigger validation on PR title changes when the event is 'edited'.
Part of DEVOPS-1060: add-jira-title-trigger
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com