-
Notifications
You must be signed in to change notification settings - Fork 4
Publish_release_to_GitHub: Uses actual built commit for release
#24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…e commit resolution Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
- Move commit SHA resolution logic from parameter default into task body to reduce duplication - Merge commit resolution with source hint determination logic - Add DryRun parameter to simulate release creation without performing actual operations - Follow same pattern as Create_Release_Git_Tag task from Sampler repository - Add comprehensive DryRun logging showing what would be performed Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
johlju
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot add a entry to the changelog according to keepachangelog format
Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
|
@copilot Update GitVersion.yml with these regular expressions: feature:
tag: useBranchName
increment: Minor
regex: ^f(eature(s)?)?[\/-]
source-branches: ['master']
hotfix:
tag: fix
increment: Patch
regex: (hot)?fix(es)?[\/-]
source-branches: ['master'] |
…nd hotfix branches Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
|
@copilot in build.yaml on line 63-66 change the key publish:
- Publish_Release_To_GitHub
#- Publish_Module_To_gallery
#- Publish_GitHub_Wiki_Content It is very important that the commented line remain as they will be uncommented in a later PR. |
- Change publish workflow to use Publish_Release_To_GitHub only - Comment out Publish_Module_To_gallery for later uncomment - Add commented Publish_GitHub_Wiki_Content for later uncomment - Remove Create_ChangeLog_GitHub_PR task Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
... Updated build.yaml to modify the publish workflow configuration as requested. Changed to use only |
Publish_release_to_GitHub: Uses actual built commit for release
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
…ate error message Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the Publish_release_to_GitHub task to use the actual built commit instead of the latest main branch commit, adds comprehensive DryRun support, and improves GitVersion configuration while maintaining backward compatibility.
- Added BuildCommit parameter with CI-aware commit detection that automatically resolves from GitHub Actions, Azure Pipelines, or falls back to origin/main
- Added DryRun parameter to simulate release creation without making changes, following established Sampler patterns
- Updated GitVersion configuration with improved regex patterns and pinned GitVersion.Tool to version 5.* for consistent builds
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .build/tasks/New-Release.GitHub.build.ps1 | Added BuildCommit and DryRun parameters with CI-aware commit resolution logic |
| azure-pipelines.yml | Pinned GitVersion.Tool to version 5.* and added DryRun environment variable |
| build.yaml | Updated publish workflow to prioritize GitHub releases and commented out gallery publishing |
| GitVersion.yml | Improved regex patterns for feature branches and removed duplicate commented sections |
| CHANGELOG.md | Added changelog entries documenting the new features and fixes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
I'm merging this to see how it dogfood itself when using DryRun. If it looks good I will send in a new PR that switches back all tasks and removes DryRun. |
It is myself and I will fix any problems that arises
|
@gaelcolas I can't override the review, I need help to approve this one 🙂 |
|
@gaelcolas, please consider #26 after merging this PR. |
|
@johlju can you double validate that you're disabling the publish? |
gaelcolas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the changes.
I find the AI review spamming the comment section...
Before merging, @johlju please make sure you're still ok to disable the publish from the build.yaml
gaelcolas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the changes.
I find the AI review spamming the comment section...
Before merging, @johlju please make sure you're still ok to disable the publish from the build.yaml
This PR fixes the New-Release.GitHub.build.ps1 task to use the actual built commit instead of the latest main branch commit, adds comprehensive DryRun support, improves the GitVersion configuration while maintaining backward compatibility, pins GitVersion to version 5.* for consistent builds, and updates the build workflow configuration.
Key Changes
Build Script Improvements
-BuildCommitparameter,BUILDCOMMITenvironment variable, and PowerShell session variableGITHUB_SHA) or Azure Pipelines (BUILD_SOURCEVERSION)origin/$MainGitBranchto preserve the original behaviorGitVersion Configuration
^f(eature(s)?)?[\/-]for more precise matching(hot)?fix(es)?[\/-]regex for better hotfix branch detectionPipeline Improvements
Code Quality
The implementation follows established patterns from gaelcolas/Sampler and provides a clean, maintainable solution for GitHub release automation while ensuring no breaking changes to existing workflows.
Changes Made
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.