Skip to content

Commit aece25d

Browse files
authored
Merge branch 'rel-9.3' into bugfix/bump-dependencies
2 parents 6cf28a3 + d8ae3be commit aece25d

File tree

4,857 files changed

+114018
-60853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,857 files changed

+114018
-60853
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: 🤠 ABP Studio
2+
description: Create a report to help us improve the ABP Studio
3+
labels: [studio]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
We welcome bug reports! This template will help us gather the information we need to start the triage process.
9+
10+
Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting **non-security** bugs and feature requests.
11+
If you believe you have an issue that affects the SECURITY of the platform, please do NOT create an issue and instead email your issue details to [email protected].
12+
For other types of questions, consider using [StackOverflow](https://stackoverflow.com/questions/tagged/abp).
13+
- type: checkboxes
14+
id: searched
15+
attributes:
16+
label: Is there an existing issue for this?
17+
description: Please search to see if an issue already exists for the bug you encountered or feature request ([abp/issues](https://github.com/abpframework/abp/issues?q=is%3Aopen+is%3Aissue+label%3Astudio)).
18+
options:
19+
- label: I have searched the existing issues
20+
required: true
21+
- type: textarea
22+
id: background
23+
attributes:
24+
label: Description
25+
description: Please share a clear and concise description of the problem.
26+
placeholder: Description
27+
validations:
28+
required: true
29+
- type: markdown
30+
attributes:
31+
value: |
32+
## Setup
33+
Please provide more information on your ABP Studio setup.
34+
- type: input
35+
id: version
36+
attributes:
37+
label: Version
38+
description: Which version of ABP Studio are you using?
39+
placeholder: Version
40+
validations:
41+
required: true
42+
- type: dropdown
43+
id: Operation-System
44+
attributes:
45+
label: Operation System
46+
description: What is the operation system of the computer?
47+
options:
48+
- Windows (Default)
49+
- Linux
50+
- macOS
51+
- Others
52+
validations:
53+
required: true
54+
- type: textarea
55+
id: solution-config
56+
attributes:
57+
label: Solution Configuration
58+
description: |
59+
If there is an open solution, what are the configurations of the solution?
60+
🧐 Hint: You can see all the information about your solution from the configuration window, which opens when you right-click on the [solution](https://abp.io/docs/latest/studio/solution-explorer#solution) and click on the `Solution Configuration` button.
61+
placeholder: |
62+
- **Template**: app
63+
- **Created ABP Studio Version**: 0.7.9
64+
- **Tiered**: No
65+
- **UI Framework**: mvc
66+
- **Theme**: leptonx
67+
- **Theme Style**: system
68+
- **Database Provider**: ef
69+
- **Database Management System**: sqlserver
70+
- **Separate Tenant Schema**: No
71+
- **Mobile Framework**: none
72+
- **Public Website**: No
73+
- **Optional Modules**:
74+
* GDPR
75+
* TextTemplateManagement
76+
* LanguageManagement
77+
* AuditLogging
78+
* SaaS
79+
* OpenIddictAdmin
80+
validations:
81+
required: false
82+
- type: markdown
83+
attributes:
84+
value: |
85+
---
86+
- type: textarea
87+
id: other-info
88+
attributes:
89+
label: Other information
90+
description: |
91+
If you have an idea where the problem might lie, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
92+
placeholder: Other information
93+
validations:
94+
required: false
File renamed without changes.
File renamed without changes.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blank_issues_enabled: true
1+
blank_issues_enabled: false
22
contact_links:
33
- name: Issue with ABP Commercial
44
url: https://abp.io/support/questions

.github/scripts/update_versions.py

Lines changed: 63 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,79 @@
11
import os
22
import json
3+
import re
4+
import xml.etree.ElementTree as ET
35
from github import Github
46

5-
def update_latest_versions():
6-
version = os.environ["GITHUB_REF"].split("/")[-1]
7+
def get_target_release_branch(version):
8+
"""
9+
Extracts the first two numbers from the release version (`9.0.5` → `rel-9.0`)
10+
to determine the corresponding `rel-x.x` branch.
11+
"""
12+
match = re.match(r"(\d+)\.(\d+)\.\d+", version)
13+
if not match:
14+
raise ValueError(f"Invalid version format: {version}")
715

8-
if "rc" in version:
9-
return False
16+
major, minor = match.groups()
17+
target_branch = f"rel-{major}.{minor}"
18+
return target_branch
1019

11-
with open("latest-versions.json", "r") as f:
12-
latest_versions = json.load(f)
20+
def get_version_from_common_props(branch):
21+
"""
22+
Retrieves `Version` and `LeptonXVersion` from the `common.props` file in the specified branch.
23+
"""
24+
g = Github(os.environ["GITHUB_TOKEN"])
25+
repo = g.get_repo("abpframework/abp")
1326

14-
latest_versions[0]["version"] = version
27+
try:
28+
file_content = repo.get_contents("common.props", ref=branch)
29+
common_props_content = file_content.decoded_content.decode("utf-8")
1530

16-
with open("latest-versions.json", "w") as f:
17-
json.dump(latest_versions, f, indent=2)
31+
root = ET.fromstring(common_props_content)
32+
version = root.find(".//Version").text
33+
leptonx_version = root.find(".//LeptonXVersion").text
1834

19-
return True
35+
return version, leptonx_version
36+
except Exception as e:
37+
raise FileNotFoundError(f"common.props not found in branch {branch}: {e}")
2038

21-
def create_pr():
22-
g = Github(os.environ["GITHUB_TOKEN"])
23-
repo = g.get_repo("abpframework/abp")
39+
def update_latest_versions():
40+
"""
41+
Updates `latest-versions.json` based on the most relevant release branch.
42+
"""
43+
# Get the release version from GitHub reference
44+
release_version = os.environ["GITHUB_REF"].split("/")[-1] # Example: "refs/tags/v9.0.5" → "v9.0.5"
45+
if release_version.startswith("v"):
46+
release_version = release_version[1:] # Convert to "9.0.5" format
2447

25-
branch_name = f"update-latest-versions-{os.environ['GITHUB_REF'].split('/')[-1]}"
26-
base = repo.get_branch("dev")
27-
repo.create_git_ref(ref=f"refs/heads/{branch_name}", sha=base.commit.sha)
48+
# Determine the correct `rel-x.x` branch
49+
target_branch = get_target_release_branch(release_version)
50+
51+
# Retrieve `common.props` data from the target branch
52+
version, leptonx_version = get_version_from_common_props(target_branch)
2853

29-
# Get the current latest-versions.json file and its sha
30-
contents = repo.get_contents("latest-versions.json", ref="dev")
31-
file_sha = contents.sha
54+
# Skip if the version is a preview or release candidate
55+
if "preview" in version or "rc" in version:
56+
return False
3257

33-
# Update the file in the repo
34-
repo.update_file(
35-
path="latest-versions.json",
36-
message=f"Update latest-versions.json to version {os.environ['GITHUB_REF'].split('/')[-1]}",
37-
content=open("latest-versions.json", "r").read().encode("utf-8"),
38-
sha=file_sha,
39-
branch=branch_name,
40-
)
58+
# Read the `latest-versions.json` file
59+
with open("latest-versions.json", "r") as f:
60+
latest_versions = json.load(f)
4161

42-
try:
43-
pr = repo.create_pull(title="Update latest-versions.json",
44-
body="Automated PR to update the latest-versions.json file.",
45-
head=branch_name, base="dev")
46-
except Exception as e:
47-
print(f"Error while creating PR: {e}")
62+
# Add the new version entry
63+
new_version_entry = {
64+
"version": version,
65+
"releaseDate": "",
66+
"type": "stable",
67+
"message": "",
68+
"leptonx": {
69+
"version": leptonx_version
70+
}
71+
}
72+
73+
latest_versions.insert(0, new_version_entry) # Insert the new version at the top
4874

49-
pr.create_review_request(reviewers=["ebicoglu", "gizemmutukurt", "skoc10"])
75+
# Update the file
76+
with open("latest-versions.json", "w") as f:
77+
json.dump(latest_versions, f, indent=2)
5078

51-
if __name__ == "__main__":
52-
should_create_pr = update_latest_versions()
53-
if should_create_pr:
54-
create_pr()
79+
return True

.github/workflows/angular.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929

30-
- uses: actions/cache@v2
30+
- uses: actions/cache@v4
3131
with:
3232
path: 'npm/ng-packs/node_modules'
3333
key: ${{ runner.os }}-${{ hashFiles('npm/ng-packs/yarn.lock') }}
3434

35-
- uses: actions/cache@v2
35+
- uses: actions/cache@v4
3636
with:
3737
path: 'templates/app/angular/node_modules'
3838
key: ${{ runner.os }}-${{ hashFiles('templates/app/angular/yarn.lock') }}

.github/workflows/auto-pr.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Merge branch rel-9.0 with rel-8.3
1+
name: Merge branch dev with rel-9.3
22
on:
33
push:
44
branches:
5-
- rel-8.3
5+
- rel-9.3
66
permissions:
77
contents: read
88

99
jobs:
10-
merge-rel-9-0-with-rel-8-3:
10+
merge-dev-with-rel-9-3:
1111
permissions:
1212
contents: write # for peter-evans/create-pull-request to create branch
1313
pull-requests: write # for peter-evans/create-pull-request to create a PR
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
1717
with:
18-
ref: rel-9.0
18+
ref: dev
1919
- name: Reset promotion branch
2020
run: |
21-
git fetch origin rel-8.3:rel-8.3
22-
git reset --hard rel-8.3
21+
git fetch origin rel-9.3:rel-9.3
22+
git reset --hard rel-9.3
2323
- name: Create Pull Request
2424
uses: peter-evans/create-pull-request@v3
2525
with:
26-
branch: auto-merge/rel-8-3/${{github.run_number}}
27-
title: Merge branch rel-9.0 with rel-8.3
28-
body: This PR generated automatically to merge rel-9.0 with rel-8.3. Please review the changed files before merging to prevent any errors that may occur.
26+
branch: auto-merge/rel-9-3/${{github.run_number}}
27+
title: Merge branch dev with rel-9.3
28+
body: This PR generated automatically to merge dev with rel-9.3. Please review the changed files before merging to prevent any errors that may occur.
2929
reviewers: maliming
3030
draft: true
3131
token: ${{ github.token }}
@@ -34,5 +34,5 @@ jobs:
3434
GH_TOKEN: ${{ secrets.BOT_SECRET }}
3535
run: |
3636
gh pr ready
37-
gh pr review auto-merge/rel-8-3/${{github.run_number}} --approve
38-
gh pr merge auto-merge/rel-8-3/${{github.run_number}} --merge --auto --delete-branch
37+
gh pr review auto-merge/rel-9-3/${{github.run_number}} --approve
38+
gh pr merge auto-merge/rel-9-3/${{github.run_number}} --merge --auto --delete-branch

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- 'templates/**/*.razor'
1919
- 'Directory.Build.props'
2020
- 'Directory.Packages.props'
21+
- '.github/workflows/build-and-test.yml'
2122

2223
pull_request:
2324
paths:
@@ -35,6 +36,7 @@ on:
3536
- 'templates/**/*.razor'
3637
- 'Directory.Build.props'
3738
- 'Directory.Packages.props'
39+
- '.github/workflows/build-and-test.yml'
3840
types:
3941
- opened
4042
- synchronize
@@ -45,17 +47,14 @@ permissions:
4547

4648
jobs:
4749
build-test:
48-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-22.04
51+
timeout-minutes: 50
4952
if: ${{ !github.event.pull_request.draft }}
5053
steps:
5154
- uses: actions/checkout@v2
5255
- uses: actions/setup-dotnet@master
5356
with:
54-
dotnet-version: 8.0.100
55-
56-
- name: chown
57-
run: |
58-
sudo chown -R $USER:$USER /home/runneradmin
57+
dotnet-version: 9.0.100
5958

6059
- name: Build All
6160
run: ./build-all.ps1

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Contribution
22

3-
See the [contribution guide](docs/en/Contribution/Index.md).
3+
The contribution guide is available at [contribution guide](docs/en/contribution/index.md).

0 commit comments

Comments
 (0)