Skip to content

Build and run agents you can see, understand and trust.

Add sate.yml and modify the pull request template (#675)

DavdGaod23361553023
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index b7103f366..1113a9724 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,18 +1,17 @@
----
-name: Pull Request
-about: Create a pull request
----
-## Description
+## AgentScope Version
-[Please describe the background, purpose, changes made, and how to test this PR]
+[The version of AgentScope you are working on, e.g. `import agentscope; print(agentscope.__version__)`]
+## Description
+[Please describe the background, purpose, changes made, and how to test this PR]
## Checklist
Please check the following items before code is ready to be reviewed.
-- [ ] Code has passed all tests
-- [ ] Docstrings have been added/updated in Google Style
-- [ ] Documentation has been updated
+- [ ] Code has been formatted with `pre-commit run --all-files` command
+- [ ] All tests are passing
+- [ ] Docstrings are in Google style
+- [ ] Related documentation has been updated (e.g. links, examples, etc.)
- [ ] Code is ready for review
\ No newline at end of file
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 000000000..3b31d25d1
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,31 @@
+# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
+#
+# You can adjust the behavior by modifying this file.
+# For more information, see:
+# https://github.com/actions/stale
+name: Mark stale issues and pull requests
+
+on:
+ schedule:
+ - cron: '30 9 * * *'
+
+jobs:
+ stale:
+
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+
+ steps:
+ - uses: actions/stale@v5
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ stale-issue-message: 'This issue is marked as stale because there has been no activity for 21 days. Remove stale label or add new comments or this issue will be closed in 3 day.'
+ stale-pr-message: 'This PR is marked as stale because there has been no activity for 21 days. Remove stale label or add new comments or this PR will be closed in 3 day.'
+ close-issue-message: 'Close this stale issue.'
+ close-pr-message: 'Close this stale PR.'
+ stale-issue-label: 'stale-issue'
+ stale-pr-label: 'stale-pr'
+ days-before-stale: 21
+ days-before-close: 3
\ No newline at end of file