Skip to content

Commit 4adbbc5

Browse files
authored
refactor: improve github workflows. (#573)
* update dockerfile contents. * update field. * refactor: improve github workflows. * remove en
1 parent 335efdb commit 4adbbc5

26 files changed

+368
-701
lines changed

.github/.codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
coverage:
1615
status:
1716
project:

.github/code-language-detector.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/labels.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/sync-release.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Copyright © 2023 OpenIM. All rights reserved.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
15-
# https://github.com/BetaHuhn/repo-file-sync-action
16-
# Synchronization for the.github repository
171
openim-sigs/openim-docker:
182
- source: ./config
193
dest: ./openim-chat/release/config

.github/weekly-digest.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright © 2023 OpenIM open source community. All rights reserved.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
name: Assign issue to comment author
162
on:
173
issue_comment:
@@ -20,24 +6,24 @@ jobs:
206
assign-issue:
217
if: |
228
contains(github.event.comment.body, '/assign') || contains(github.event.comment.body, '/accept') &&
23-
!contains(github.event.comment.user.login, 'openimbot') &&
24-
!contains(github.event.comment.user.login, 'kubbot')
9+
!contains(github.event.comment.user.login, 'openim-robot')
2510
runs-on: ubuntu-latest
2611
permissions:
2712
issues: write
2813
steps:
2914
- name: Checkout code
30-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
3116

3217
- name: Assign the issue
3318
run: |
3419
export LETASE_MILESTONES=$(curl 'https://api.github.com/repos/$OWNER/$PEPO/milestones' | jq -r 'last(.[]).title')
3520
gh issue edit ${{ github.event.issue.number }} --add-assignee "${{ github.event.comment.user.login }}"
36-
gh issue edit ${{ github.event.issue.number }} --add-label "triage/accepted"
37-
gh issue edit ${{ github.event.issue.number }} --milestone "$LETASE_MILESTONES"
21+
gh issue edit ${{ github.event.issue.number }} --add-label "accepted"
3822
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!"
23+
24+
# gh issue edit ${{ github.event.issue.number }} --milestone "$LETASE_MILESTONES"
3925
env:
40-
GH_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }}
26+
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
4127
ISSUE: ${{ github.event.issue.html_url }}
4228
OWNER: ${{ github.repository_owner }}
43-
REPO: ${{ github.event.repository.name }}
29+
REPO: ${{ github.event.repository.name }}

.github/workflows/auto-gh-pr.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Invite users to join OpenIM Community.
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
jobs:
7+
issue_comment:
8+
name: Invite users to join OpenIM Community
9+
if: ${{ github.event.comment.body == '/invite' || github.event.comment.body == '/close' || github.event.comment.body == '/comment' }}
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
steps:
14+
15+
- name: Invite user to join OpenIM Community
16+
uses: peter-evans/create-or-update-comment@v4
17+
with:
18+
token: ${{ secrets.BOT_GITHUB_TOKEN }}
19+
issue-number: ${{ github.event.issue.number }}
20+
body: |
21+
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.
22+
23+
Our most recommended way to get in touch is through [Slack](https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q). 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.
24+
25+
In addition to Slack, we also offer the following ways to get in touch:
26+
27+
+ <a href="https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q" target="_blank"><img src="https://img.shields.io/badge/Slack-OpenIM%2B-blueviolet?logo=slack&amp;logoColor=white"></a> We also have Slack channels for you to communicate and discuss. To join, visit https://slack.com/ and join our [👀 Open-IM-Server slack](https://join.slack.com/t/openimsdk/shared_invite/zt-22720d66b-o_FvKxMTGXtcnnnHiMqe9Q) team channel.
28+
+ <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.
29+
+ <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.
30+
+ <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.
31+
32+
# - name: Close Issue
33+
# uses: peter-evans/close-issue@v3
34+
# with:
35+
# token: ${{ secrets.BOT_GITHUB_TOKEN }}
36+
# issue-number: ${{ github.event.issue.number }}
37+
# comment: 🤖 Auto-closing issue, if you still need help please reopen the issue or ask for help in the community above
38+
# labels: |
39+
# accepted

.github/workflows/auto-tag.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/build-docker-image.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright © 2023 OpenIM open source community. All rights reserved.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
name: Publish Docker image
162

173
on:

0 commit comments

Comments
 (0)