-
Notifications
You must be signed in to change notification settings - Fork 3
Update dev from main #195
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
Update dev from main #195
Changes from all commits
bbe9659
7cfc019
04eddab
e87e3b6
5b97d90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,66 @@ | |||||||||||||||||||||||
| name: 🏁 1 Prepare Release on Milestone Close | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| # Description: This workflow automatically prepares a release branch when a milestone is closed. | |||||||||||||||||||||||
| # It extracts the milestone title as the version number and compiles release notes from | |||||||||||||||||||||||
| # all issues and pull requests associated with the milestone. | |||||||||||||||||||||||
| # | |||||||||||||||||||||||
| # Triggers: | |||||||||||||||||||||||
| # - Automatically when a milestone is closed | |||||||||||||||||||||||
| # | |||||||||||||||||||||||
| # Permissions: | |||||||||||||||||||||||
| # - contents:write - Required to create GitHub releases | |||||||||||||||||||||||
| # - issues:read - Required to read issue information for release notes | |||||||||||||||||||||||
| # - pull-requests:read - Required to read PR information for release notes | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| on: | |||||||||||||||||||||||
| workflow_dispatch: | |||||||||||||||||||||||
| milestone: | |||||||||||||||||||||||
| types: [ closed ] | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| release-preparation: | |||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| fetch-depth: 0 | |||||||||||||||||||||||
| ref: dev | |||||||||||||||||||||||
| - name: Set up Git user | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git config user.name "github-actions" | |||||||||||||||||||||||
| git config user.email "action@github.com" | |||||||||||||||||||||||
| - name: Create release branch | |||||||||||||||||||||||
| run: git checkout -b release/${{ github.event.milestone.title }} | |||||||||||||||||||||||
| - name: Update version in Solution.props | |||||||||||||||||||||||
| uses: ./.github/actions/versioning/update-version | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| new-version: ${{ github.event.milestone.title }} | |||||||||||||||||||||||
| - name: Include missing issues in changelog | |||||||||||||||||||||||
| uses: ./.github/actions/documentation/update-changelog-issues | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | |||||||||||||||||||||||
| days-lookback: 90 | |||||||||||||||||||||||
| - name: Update changelog section | |||||||||||||||||||||||
| uses: ./.github/actions/documentation/update-changelog | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| action: create-release | |||||||||||||||||||||||
| version: ${{ github.event.milestone.title }} | |||||||||||||||||||||||
| - name: Fix code style | |||||||||||||||||||||||
| uses: ./.github/actions/code-style | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| mode: fix | |||||||||||||||||||||||
| commit: false | |||||||||||||||||||||||
| - name: Commit and push changes | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| git add Solution.props CHANGELOG.md | |||||||||||||||||||||||
| git commit -m "chore: prepare release ${{ github.event.milestone.title }} with version update and code style fixes" | |||||||||||||||||||||||
| git push origin release/${{ github.event.milestone.title }} | |||||||||||||||||||||||
| - name: Create Pull Request | |||||||||||||||||||||||
| uses: peter-evans/create-pull-request@v4 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | |||||||||||||||||||||||
| title: "chore: prepare release ${{ github.event.milestone.title }} with version update and code style fixes" | |||||||||||||||||||||||
| body: "This PR prepares the release for version ${{ github.event.milestone.title }} with version update and code style fixes:\n\n- Fixed header code style\n- Sorted usings\n- Removed trailing whitespace\n- Updated version in Solution.props\n- Updated changelog with closed-solved issues\n\nMILESTONE DESCRIPTION:\n${{ github.event.milestone.description }}" | |||||||||||||||||||||||
| base: dev | |||||||||||||||||||||||
| branch: release/${{ github.event.milestone.title }} | |||||||||||||||||||||||
| milestone: ${{ github.event.milestone.number }} | |||||||||||||||||||||||
|
Comment on lines
+22
to
+66
Check warningCode scanning / CodeQL Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}
Copilot AutofixAI about 1 year ago To fix the issue, we need to add a
The
Suggested changeset
1
.github/workflows/release-1-milestone.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
Refresh and try again.
|
|||||||||||||||||||||||
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.
The branch name derived directly from the milestone title may include spaces or special characters that are invalid in branch names; consider sanitizing the milestone title before using it to create the branch.