-
-
Notifications
You must be signed in to change notification settings - Fork 4
Testing autochangelog update #128
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?
Changes from all commits
41fd24d
af202c6
cd67e39
7c39958
ad37b6e
05b4639
7ca6e48
ae2cbd0
330f17c
ef90540
bd38db5
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 |
|---|---|---|
|
|
@@ -298,7 +298,7 @@ create_changelog_pr() { | |
|
|
||
| # Generate Changelog and Test Plan | ||
| echo "Generating changelog via auto-changelog.." | ||
| npx @metamask/auto-changelog@4.1.0 update --rc --repo "${GITHUB_REPOSITORY_URL}" --currentVersion "${new_version}" --autoCategorize | ||
| yarn auto-changelog update --rc --repo "https://github.com/MetaMask/metamask-extension" --currentVersion "${new_version}" --autoCategorize --useChangelogEntry --useShortPrLink | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The repo shall not be hardcoded to "https://github.com/MetaMask/metamask-extension". It can also be "https://github.com/MetaMask/metamask-mobile". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, yes, that just had to be done so it could run in |
||
|
|
||
| # Skip commits.csv for hotfix releases (previous_version_ref is literal "null") | ||
| # - When we create a new major/minor release, we fetch all commits included in the release, by fetching the diff between HEAD and previous version reference. | ||
|
|
@@ -372,7 +372,7 @@ create_changelog_pr() { | |
|
|
||
| # Use helper functions for push and PR creation | ||
| push_branch_with_handling "${changelog_branch_name}" | ||
| create_pr_if_not_exists "${changelog_branch_name}" "chore: ${changelog_branch_name}" "${pr_body}" "${release_branch_name}" "" "search" | ||
| create_pr_if_not_exists "${changelog_branch_name}" "release: ${changelog_branch_name}" "${pr_body}" "${release_branch_name}" "" "search" | ||
|
|
||
| echo "Changelog PR Ready" | ||
| } | ||
|
|
@@ -492,7 +492,7 @@ main() { | |
| # Initialize branch names | ||
| local release_branch_name changelog_branch_name version_bump_branch_name | ||
| release_branch_name=$(get_release_branch_name "$NEW_VERSION") | ||
| changelog_branch_name="chore/${NEW_VERSION}-Changelog" | ||
| changelog_branch_name="release/${NEW_VERSION}-Changelog" | ||
| version_bump_branch_name=$(get_version_bump_branch_name "$next_version") # Execute main workflow | ||
| configure_git | ||
|
|
||
|
|
@@ -521,7 +521,7 @@ main() { | |
| echo "Created PRs:" | ||
| echo "1. Release PR: release: ${NEW_VERSION}" | ||
| if [ "$TEST_ONLY" != "true" ]; then | ||
| echo "2. Changelog PR: chore: ${changelog_branch_name}" | ||
| echo "2. Changelog PR: release: ${changelog_branch_name}" | ||
| if [[ "${PREVIOUS_VERSION_REF,,}" == "null" ]]; then | ||
| echo "(Hotfix) Skipped version bump PR" | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,7 +97,7 @@ jobs: | |
| - name: Checkout and setup environment | ||
| uses: ./github-tools/.github/actions/checkout-and-setup | ||
| with: | ||
| is-high-risk-environment: true | ||
| is-high-risk-environment: false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Release Workflow Security Configuration ErrorSetting |
||
|
|
||
| # Step 4: Print Input Values | ||
| - name: Print Input Values | ||
|
|
||
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.
Bug: Hardcoded URL Breaks Multi-Platform Changelog
The
auto-changelogcommand now uses a hardcoded repository URL (https://github.com/MetaMask/metamask-extension) instead of the dynamicGITHUB_REPOSITORY_URLenvironment variable. This breaks the script's intended multi-platform support, causing changelogs for other repositories (e.g., mobile) to incorrectly reference the extension repository.