-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
733 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: false # disable the default status that measures entire project | ||
pkg: # declare a new status context "pkg" | ||
paths: | ||
- pkg/* # only include coverage in "pkg/" folder | ||
informational: true # Always pass check | ||
patch: off # disable the commit only checks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "feat" | ||
include: "scope" | ||
groups: | ||
gomod-deps: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
time: "08:00" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "feat" | ||
include: "scope" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Refer to Kubernetes for size/* Settings | ||
# https://github.com/Kubernetes/Kubernetes | ||
XS: | ||
name: size/XS | ||
lines: 0 | ||
color: 3CBF00 | ||
S: | ||
name: size/S | ||
lines: 10 | ||
color: 5D9801 | ||
M: | ||
name: size/M | ||
lines: 30 | ||
color: 7F7203 | ||
L: | ||
name: size/L | ||
lines: 100 | ||
color: A14C05 | ||
XL: | ||
name: size/XL | ||
lines: 500 | ||
color: C32607 | ||
XXL: | ||
name: size/XXL | ||
lines: 1000 | ||
color: E50009 | ||
comment: | | ||
# Whoa! Easy there, Partner! | ||
This PR is too big. Please break it up into smaller PRs. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# https://github.com/apps/weekly-digest/installations/new | ||
publishDay: sun | ||
canPublishIssues: true | ||
canPublishPullRequests: true | ||
canPublishContributors: true | ||
canPublishStargazers: true | ||
canPublishCommits: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Update README with latest blog posts | ||
|
||
on: | ||
schedule: # Run workflow automatically | ||
- cron: "15 8-11 */2 * *" # Runs every hour, on the hour | ||
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly | ||
push: | ||
jobs: | ||
update-readme-with-blog: | ||
name: Update this repo's README with latest blog posts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
# - name: Set up Git | ||
# run: | | ||
# git config --global user.name "kubbot" | ||
# git config --global user.email "[email protected]" | ||
|
||
# 运行一系列 shell 命令,配置本地 Git 设置,从远程库拉取最新版本并推送到远程库。 | ||
- name: Auto green | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "kubbot" | ||
git remote set-url origin https://${{ secrets.BOT_GITHUB_TOKEN }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
git pull --rebase | ||
# 将 UTC 时间转换为上海时间 | ||
local_time=$(date -u -d "$(date -u)" "+%Y-%m-%d %H:%M:%S" -d "8 hours") | ||
# 允许空提交,-a 省略git add . 而且设置签名 | ||
git commit --allow-empty -a -s -m "🌟 SoraEase makes it easier for Sora developers to develop Sora AI 💪" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Assign issue to comment author | ||
on: | ||
issue_comment: | ||
types: [created] | ||
jobs: | ||
assign-issue: | ||
if: | | ||
contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept') && | ||
!contains(github.event.comment.user.login, 'openimbot') && | ||
!contains(github.event.comment.user.login, 'kubbot') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Assign the issue | ||
run: | | ||
export LETASE_MILESTONES=$(curl 'https://api.github.com/repos/$OWNER/$PEPO/milestones' | jq -r 'last(.[]).title') | ||
gh issue edit ${{ github.event.issue.number }} --add-assignee "${{ github.event.comment.user.login }}" | ||
gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted" | ||
gh issue edit ${{ github.event.issue.number }} --milestone "$LETASE_MILESTONES" | ||
gh issue comment $ISSUE --body "@${{ github.event.comment.user.login }} Glad to see you accepted this issue🤲, this issue has been assigned to you. I set the milestones for this issue to [$LETASE_MILESTONES](https://github.com/$OWNER/$PEPO/milestones), We are looking forward to your PR!" | ||
env: | ||
GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }} | ||
ISSUE: ${{ github.event.issue.html_url }} | ||
OWNER: ${{ github.repository_owner }} | ||
REPO: ${{ github.event.repository.name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Auto PR to release | ||
|
||
on: | ||
pull_request: | ||
# types: | ||
# - closed | ||
issue_comment: | ||
types: [created] | ||
pull_request_review_comment: | ||
types: [created] | ||
|
||
jobs: | ||
create-pr: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.base.ref == 'main' | ||
# && github.event.pull_request.merged == true | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create PR to release branch | ||
run: | | ||
ISSUEID=$(gh pr view ${{ github.event.pull_request.number }} --repo $OWNER/$REPO | grep -oP 'Fixes #\K\d+') | ||
echo "===========> $ISSUEID" | ||
ISSUE=$(gh issue view $ISSUEID --repo $OWNER/$REPO --json labels,assignees,milestone,title) | ||
echo "===========> $ISSUE" | ||
LABELS=$(echo $ISSUE | jq -r '.labels[] | select(.name) | .name' | jq -R -r -s -c 'split("\n")[:-1] | join(",")') | ||
ASSIGNEES=$(echo $ISSUE | jq -r '.assignees[] | select(.login) | .login' | jq -R -s -c 'split("\n")[:-1] | join(",")') | ||
MILESTONE=$(echo $ISSUE | jq -r '.milestone | select(.title) | .title') | ||
TITLE=$(echo $ISSUE | jq -r '.title') | ||
gh pr edit ${{ github.event.pull_request.number }} --repo $OWNER/$REPO --add-label "$LABELS" --add-assignee "$ASSIGNEES" --milestone "$MILESTONE" | ||
# git checkout -b bot/merge-to-release-$ISSUEID | ||
# git push origin bot/merge-to-release-$ISSUEID | ||
# gh pr create --base release --head bot/merge-to-release-$ISSUEID --title "Merge main to release" --body "" | ||
# gh pr create --base main --head feat/auto-release-pr-624 --title "The bug is fixed" --body "$x" --repo SoraEase/sora-prompt --reviewer "cubxxw" | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ github.token }} | ||
ISSUE: ${{ github.event.issue.html_url }} | ||
OWNER: ${{ github.repository_owner }} | ||
REPO: ${{ github.event.repository.name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Invite users to join our group | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
jobs: | ||
issue_comment: | ||
name: Invite users to join our group | ||
if: ${{ github.event.comment.body == '/invite' || github.event.comment.body == '/close' || github.event.comment.body == '/comment' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
|
||
- name: Invite user to join our group | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
We value close connections with our users, developers, and contributors here at Open-IM-Server. With a large community and maintainer team, we're always here to help and support you. Whether you're looking to join our community or have any questions or suggestions, we welcome you to get in touch with us. | ||
Our most recommended way to get in touch is through [Slack](https://join.slack.com/t/soraease/shared_invite/zt-2dr0l7log-11w5GorUwU8hxzR7xByICQ). Even if you're in China, Slack is usually not blocked by firewalls, making it an easy way to connect with us. Our Slack community is the ideal place to discuss and share ideas and suggestions with other users and developers of Open-IM-Server. You can ask technical questions, seek help, or share your experiences with other users of Open-IM-Server. | ||
In addition to Slack, we also offer the following ways to get in touch: | ||
+ <a href="https://join.slack.com/t/soraease/shared_invite/zt-2dr0l7log-11w5GorUwU8hxzR7xByICQ) team channel. | ||
+ <a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&[email protected]" target="_blank"><img src="https://img.shields.io/badge/gmail-%40OOpenIMSDKCore?style=social&logo=gmail"></a> Get in touch with us on [Gmail](https://mail.google.com/mail/u/0/?fs=1&tf=cm&[email protected]). If you have any questions or issues that need resolving, or any suggestions and feedback for our open source projects, please feel free to contact us via email. | ||
+ <a href="https://doc.rentsoft.cn/" target="_blank"><img src="https://img.shields.io/badge/%E5%8D%9A%E5%AE%A2-%40OpenIMSDKCore-blue?style=social&logo=Octopus%20Deploy"></a> Read our [blog](https://doc.rentsoft.cn/). Our blog is a great place to stay up-to-date with Open-IM-Server projects and trends. On the blog, we share our latest developments, tech trends, and other interesting information. | ||
+ <a href="https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg" target="_blank"><img src="https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-OpenIMSDKCore-brightgreen?logo=wechat&style=flat-square"></a> Add [Wechat](https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) and indicate that you are a user or developer of Open-IM-Server. We will process your request as soon as possible. | ||
- name: Close Issue | ||
uses: peter-evans/close-issue@v3 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
comment: 🤖 Auto-closing issue, if you still need help please reopen the issue or ask for help in the community above | ||
labels: | | ||
triage/accepted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Github Pull Request | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 2 * * *' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
|
||
|
||
- name: Generate Vertions | ||
run: | | ||
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1` | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') | ||
echo $latest_tag > .github/version | ||
continue-on-error: true | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
commit-message: "cicd: bump League Patch" | ||
author: kubbot <[email protected]> | ||
committer: kubbot <[email protected]> | ||
# signoff: false | ||
# draft: false | ||
branch: "asf-auto-updates" | ||
assignees: cubxxw | ||
reviewers: cubxxw | ||
title: "[Auto PR 🤖] Bump League Patch auto PR" | ||
body: | | ||
I am a PR generated by robot automation. | ||
Review criteria: | ||
- [ ] Disenchanter can connect and issue actions | ||
Github Actions Status: | ||
[![Github Pull Request](https://github.com/SoraEase/sora-prompt/actions/workflows/auto-pull-request.yml/badge.svg)](https://github.com/SoraEase/sora-prompt/actions/workflows/aotu-pull-request.yml) | ||
This is an automated PR. | ||
<sub>[workflow](https://github.com/SoraEase/sora-prompt/blob/main/.github/workflows/pull-request.yml).</sub> | ||
labels: | | ||
kind/documentation | ||
enhancement | ||
report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Create Tag | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_review_comment: | ||
types: [created] | ||
|
||
jobs: | ||
create_tag: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.comment.body, '/create tag') | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Validate version number and get comment | ||
id: validate | ||
run: | | ||
COMMENT="${{ github.event.comment.body }}" | ||
VERSION=$(echo $COMMENT | cut -d ' ' -f 3) | ||
TAG_COMMENT=$(echo $COMMENT | cut -d '"' -f 2) | ||
if [[ $VERSION =~ ^v([0-9]+\.){2}[0-9]+$ ]]; then | ||
echo "version=$VERSION" >> $GITHUB_STATE | ||
echo "tag_comment=$TAG_COMMENT" >> $GITHUB_STATE | ||
else | ||
echo "Invalid version number." | ||
exit 1 | ||
fi | ||
- name: Create a new tag | ||
env: | ||
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
run: | | ||
source $GITHUB_STATE | ||
git tag -a $VERSION -m "$tag_comment" | ||
git push origin $VERSION | ||
echo "tag_created=$VERSION" >> $GITHUB_OUTPUT |
Oops, something went wrong.