Skip to content

Commit

Permalink
a series of actions are configured with reference to the ABP Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
duguankui committed Oct 5, 2023
1 parent fd21256 commit 0d80c54
Show file tree
Hide file tree
Showing 41 changed files with 1,833 additions and 6 deletions.
148 changes: 148 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
name: 🐞 Bug Report
description: Create a report to help us improve
labels: [bug]
body:
- type: markdown
attributes:
value: |
We welcome bug reports! This template will help us gather the information we need to start the triage process.
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.
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].
For other types of questions, consider using [StackOverflow](https://stackoverflow.com/questions/tagged/abp).
- type: checkboxes
id: searched
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered ([abp/issues](https://github.com/abpframework/abp/issues)).
options:
- label: I have searched the existing issues
required: true
- type: textarea
id: background
attributes:
label: Description
description: Please share a clear and concise description of the problem.
placeholder: Description
validations:
required: true
- type: textarea
id: repro-steps
attributes:
label: Reproduction Steps
description: |
Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small project, with steps to run it. If possible include text as text rather than screenshots (so it shows up in searches).
placeholder: Minimal Reproduction
validations:
required: false
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: |
Provide a description of the expected behavior.
placeholder: Expected behavior
validations:
required: false
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: |
Provide a description of the actual behavior observed. If applicable please include any error messages, exception stacktraces or memory dumps.
placeholder: Actual behavior
validations:
required: false
- type: textarea
id: regression
attributes:
label: Regression?
description: |
Did this work in a previous build or release of ABP framework? If you can try a previous release or build to find out, that can help us narrow down the problem. If you don't know, that's OK.
placeholder: Regression?
validations:
required: false
- type: textarea
id: known-workarounds
attributes:
label: Known Workarounds
description: |
Please provide a description of any known workarounds.
placeholder: Known Workarounds
validations:
required: false
- type: markdown
attributes:
value: |
## Configuration
Please provide more information on your ABP configuration.
- type: input
id: version
attributes:
label: Version
description: Which version of ABP is the code running on?
placeholder: Version
validations:
required: true
- type: dropdown
id: user-interface
attributes:
label: User Interface
description: Which user interface of ABP is related to the problem?
options:
- Common (Default)
- MVC
- Angular
- Blazor
- Blazor Server
- React Native
- MAUI
validations:
required: true
- type: dropdown
id: database-provider
attributes:
label: Database Provider
description: Which database provider of ABP is used?
options:
- EF Core (Default)
- MongoDB
- None/Others
validations:
required: true
- type: dropdown
id: structure
attributes:
label: Tiered or separate authentication server
description: Which structure of ABP is specified?
options:
- None (Default)
- Tiered
- Separate Auth Server
validations:
required: true
- type: dropdown
id: Operation-System
attributes:
label: Operation System
description: What is the operation system of the server?
options:
- Windows (Default)
- Linux
- macOS
- Others
validations:
required: true
- type: markdown
attributes:
value: |
---
- type: textarea
id: other-info
attributes:
label: Other information
description: |
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.
placeholder: Other information
validations:
required: false
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/02_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 💡 Feature request
description: Suggest an idea for this project
labels: [feature-request]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the feature you are requesting. (https://github.com/dignite-projects/dignite-abp/issues).
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe the problem.
description: A clear and concise description of what the problem is.
placeholder: I am trying to do [...] but [...]
validations:
required: false
- type: textarea
attributes:
label: Describe the solution you'd like
description: |
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.
placeholder: I would like to see [...]
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: |
Add any other context or screenshots about the feature request here.
placeholder: Add any other context or screenshots about the feature request here.
validations:
required: false
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/04_performance_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Performance issue
about: Report a performance problem or regression
title: ''
labels: 'problem'
assignees: ''

---

<!--This is just a template - feel free to delete any and all of it and replace as appropriate.-->

### Description

<!--
* Please share a clear and concise description of the performance problem.
* Include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small repo to clone, with steps to run it.
-->

### Configuration

<!--
(If you are posting Benchmark.NET results, this info will be included.)
* Which version of .NET is the code running on?
* What OS version, and what distro if applicable?
* What is the architecture (x64, x86, ARM, ARM64)?
* If relevant, what are the specs of the machine?
-->

### Regression?

<!--
* Did this work in a previous build or release of Dignite Abp? If you can try a previous release or build to find out, that can help us narrow down the problem. If you don't know, that's OK.
-->

### Data

<!--
* Please include any benchmark results, images of graphs, timings or measurements, or callstacks that are relevant.
* If possible please include text as text rather than images (so it shows up in searches).
* If applicable please include before and after measurements.
-->

### Analysis

<!--
* 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.
* If you don't know, you can delete this section.
-->
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/05_blank_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Blank issue
about: Something that doesn't fit the other categories
title: ''
labels: ''
assignees: ''

---

### Documentation

Please check the official documentation before asking questions: https://docs.dignite.com/en/abp

### GitHub Issues

GitHub issues are for bug reports, feature requests, and other discussions about the framework.

If you're creating a bug/problem report, please include the followings:

* Your **Dignite Abp version**.
* Your **User Interface** type (Angular/MVC/React... etc.) if the issue is related to a specific UI
* Your database provider(EF Core/MongoDB)
* Exception message and **stack trace** if available (check the logs).
* Steps needed to **reproduce** the problem.

Please **write in English**.

### Stack Overflow

Please use Stack Overflow for your questions about using the framework, templates, and samples:

https://stackoverflow.com/questions/tagged/abp

Use **abp** tag in your questions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Ask a question (community support)
url: https://stackoverflow.com/questions/tagged/abp
about: Ask a question that will be answered by the ABP community
38 changes: 38 additions & 0 deletions .github/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app

# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 30

# Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: false

# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: []

# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false

# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: true

# Limit to only `issues` or `pulls`
# only: issues

# Optionally, specify configuration settings just for `issues` or `pulls`
# issues:
# exemptLabels:
# - help-wanted
# lockLabel: outdated

# pulls:
# daysUntilLock: 30

# Repository to extend settings from
# _extends: repo
54 changes: 54 additions & 0 deletions .github/scripts/update_versions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import os
import json
from github import Github

def update_latest_versions():
version = os.environ["GITHUB_REF"].split("/")[-1]

if "rc" in version:
return False

with open("latest-versions.json", "r") as f:
latest_versions = json.load(f)

latest_versions[0]["version"] = version

with open("latest-versions.json", "w") as f:
json.dump(latest_versions, f, indent=2)

return True

def create_pr():
g = Github(os.environ["GITHUB_TOKEN"])
repo = g.get_repo("dignite-projects/dignite-abp")

branch_name = f"update-latest-versions-{os.environ['GITHUB_REF'].split('/')[-1]}"
base = repo.get_branch("dev")
repo.create_git_ref(ref=f"refs/heads/{branch_name}", sha=base.commit.sha)

# Get the current latest-versions.json file and its sha
contents = repo.get_contents("latest-versions.json", ref="dev")
file_sha = contents.sha

# Update the file in the repo
repo.update_file(
path="latest-versions.json",
message=f"Update latest-versions.json to version {os.environ['GITHUB_REF'].split('/')[-1]}",
content=open("latest-versions.json", "r").read().encode("utf-8"),
sha=file_sha,
branch=branch_name,
)

try:
pr = repo.create_pull(title="Update latest-versions.json",
body="Automated PR to update the latest-versions.json file.",
head=branch_name, base="dev")
except Exception as e:
print(f"Error while creating PR: {e}")

pr.create_review_request(reviewers=["ebicoglu", "gizemmutukurt", "skoc10"])

if __name__ == "__main__":
should_create_pr = update_latest_versions()
if should_create_pr:
create_pr()
15 changes: 15 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: true
# Label to use when marking an issue as stale
staleLabel: inactive
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
Loading

0 comments on commit 0d80c54

Please sign in to comment.