From 1c0943dd6c44287bd968a0756a066ad035f64cd1 Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:15:15 +0100 Subject: [PATCH 01/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index da84f8ea9..f27a57f11 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -12,6 +12,10 @@ # # # Allows you to run this workflow manually from the Actions tab # workflow_dispatch: +on: + push: + pull_request: + workflow_dispatch: permissions: contents: write From 58ffc85fb9e5d3b33941e0f6525d6f153de135f4 Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:16:51 +0100 Subject: [PATCH 02/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index f27a57f11..68f6a2dc4 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -98,7 +98,7 @@ jobs: - name: Comment on PR with no spam uses: actions/github-script@v8 with: - github-token: ${{ secrets.VERSION_BOT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | // Retrieve variables from the environment const titleFlag = process.env.TITLE_FLAG; From ab16c5ffd3f0f30cfcdc954374b345054d4fc508 Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:20:19 +0100 Subject: [PATCH 03/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 68f6a2dc4..f27a57f11 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -98,7 +98,7 @@ jobs: - name: Comment on PR with no spam uses: actions/github-script@v8 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.VERSION_BOT }} script: | // Retrieve variables from the environment const titleFlag = process.env.TITLE_FLAG; From b5eb8df8200914c3645fda9d4269730d454c8cac Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:30:37 +0100 Subject: [PATCH 04/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index f27a57f11..0df16c7b2 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -13,7 +13,6 @@ # # Allows you to run this workflow manually from the Actions tab # workflow_dispatch: on: - push: pull_request: workflow_dispatch: From 6f908750275300816f00687dd9ed18d1216afd4a Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:35:33 +0100 Subject: [PATCH 05/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 0df16c7b2..a60671cf1 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -14,7 +14,6 @@ # workflow_dispatch: on: pull_request: - workflow_dispatch: permissions: contents: write From be75e6523312325333c37d3ce4a05e68178b3aa3 Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:44:38 +0100 Subject: [PATCH 06/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index a60671cf1..3a6e6fadc 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -53,13 +53,10 @@ jobs: VERSION_TYPE="minor" echo "PR set to FEATURE updating minor version" TITLE_FLAG="true" - elif [[ "$PR_TITLE" == *"[BUGFIX]"* ]]; then + else VERSION_TYPE="patch" echo "PR set to BUGFIX updating patch version" TITLE_FLAG="true" - else - echo "No version bump flag found in PR title. Exiting." - echo "Edit your PR title to include either FEATURE or BUGFIX" fi # If Feature or Bugfix update the version From 18d2e4f18438616178e237d535aebf7b7f88924b Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:48:05 +0100 Subject: [PATCH 07/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 3a6e6fadc..3eceb0ec8 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -93,7 +93,7 @@ jobs: - name: Comment on PR with no spam uses: actions/github-script@v8 with: - github-token: ${{ secrets.VERSION_BOT }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | // Retrieve variables from the environment const titleFlag = process.env.TITLE_FLAG; From 93e1a27d8114de8e4e0dc1866997025ceafe092e Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:51:39 +0100 Subject: [PATCH 08/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 3eceb0ec8..eace43061 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -92,6 +92,13 @@ jobs: - name: Comment on PR with no spam uses: actions/github-script@v8 + env: + TITLE_FLAG: ${{ env.TITLE_FLAG }} + PR_TITLE: ${{ env.PR_TITLE }} + NEW_VERSION: ${{ env.NEW_VERSION }} + MAIN_VERSION: ${{ env.MAIN_VERSION }} + BRANCH_VERSION: ${{ env.BRANCH_VERSION }} + VERSION_TYPE: ${{ env.VERSION_TYPE }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | From 219bbae8682f82aea1981b620b486e4c387c0e0b Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 10:54:56 +0100 Subject: [PATCH 09/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index eace43061..ce7ea2105 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -1,17 +1,3 @@ -#name: "Version Increment" -# -#on: -# # Run this action on any Pull Request raised against ARM -# # pull_request: -# # Ensure changes re-run the version script (i.e. title change) -# types: [opened, edited, synchronize] -# # Don't run on changes to the below paths -# paths-ignore: -# - 'arm_wiki/**' -# - '.github/**' -# -# # Allows you to run this workflow manually from the Actions tab -# workflow_dispatch: on: pull_request: From fea3ab7976a24148fa2b130a669118e34ea561ee Mon Sep 17 00:00:00 2001 From: 1337-server Date: Sun, 5 Oct 2025 11:45:24 +0100 Subject: [PATCH 10/11] Update version_bump.yml --- .github/workflows/version_bump.yml | 34 +++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index ce7ea2105..578fa712b 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -100,11 +100,39 @@ jobs: // Prepare the message based on the title flag let prBody; if (titleFlag === "false") { - prBody = `ARM Version Bot\n **PR title:** ${prTitle}\n **No valid version flag found**. PR title must include either [FEATURE] or [BUGFIX] to auto-increment the version.\n **Please update the PR title** and re-run the workflow.`; + prBody = ` + ### 🚨 ARM Version Bot + + **PR Title:** \`${prTitle}\` + + > ❌ **No valid version flag found.** + > + > Please include either \`[FEATURE]\` or \`[BUGFIX]\` in your PR title to trigger auto-increment. + > + > _Update the PR title and re-run the workflow._ + `; } else { - prBody = `ARM Version Bot:\n **PR title:** ${prTitle}\n **Current version:** ${currentVersion}\n **Required Version:** ${newVersion}\n **PR Version:** ${branchVersion}\n **Release version:** ${versionType}`; - } + let headerIcon = currentVersion === newVersion ? "✅" : "❌"; + let warning = ""; + if (currentVersion !== newVersion) { + warning = "> ⚠️ **Warning:** The required version (`" + newVersion + "`) does not match the current version (`" + currentVersion + "`) inside your VERSION file.\n" + + "> This PR will not be merged unless you bump the version number.\n"; + } + prBody = ` + ### ${headerIcon} ARM Version Bot + + **PR Title:** \`${prTitle}\` + | Current Version | Required Version | PR Branch Version | Release Type | + | :-------------: | :--------------: | :---------------: | :----------: | + | \`${currentVersion}\` | \`${newVersion}\` | \`${branchVersion}\` | \`${versionType}\` | + + ${warning} + --- + _This comment was generated automatically by the ARM Version Bot._ + `; + } + // Get existing comments const { data: comments } = await github.rest.issues.listComments({ owner: context.repo.owner, From 3e7d865ae233648e7c2c3e8fbb219488e55ab09c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Oct 2025 10:47:29 +0000 Subject: [PATCH 11/11] Bump flake8 from 7.2.0 to 7.3.0 Bumps [flake8](https://github.com/pycqa/flake8) from 7.2.0 to 7.3.0. - [Commits](https://github.com/pycqa/flake8/compare/7.2.0...7.3.0) --- updated-dependencies: - dependency-name: flake8 dependency-version: 7.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 61a3c64a5..c7f468c9a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,5 @@ argparse==1.4.0 colorama==0.4.6 #requirements added for PR#650 -flake8==7.2.0 +flake8==7.3.0 waitress==2.1.2 \ No newline at end of file