commit
8a7c44f076
@ -1,26 +0,0 @@ |
||||
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') |
||||
runs-on: ubuntu-latest |
||||
permissions: |
||||
issues: write |
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v3 |
||||
|
||||
- name: Assign the issue |
||||
run: | |
||||
export LETASE_MILESTONES=$(curl "https://api.github.com/repos/$OWNER/$REPO/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. <br>I set the milestones for this issue to $LETASE_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 }} |
@ -0,0 +1,61 @@ |
||||
name: Build electron assets |
||||
|
||||
on: |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ${{ matrix.os }} |
||||
strategy: |
||||
matrix: |
||||
include: |
||||
- os: ubuntu-latest |
||||
arch: amd64 |
||||
build: buildLinux |
||||
- os: ubuntu-latest |
||||
arch: arm64 |
||||
build: buildLinux |
||||
- os: macos-latest |
||||
arch: amd64 |
||||
build: buildIOS |
||||
- os: macos-latest |
||||
arch: arm64 |
||||
build: buildIOS |
||||
- os: windows-latest |
||||
arch: amd64 |
||||
build: buildWindows |
||||
- os: windows-latest |
||||
arch: 386 |
||||
build: buildWindows |
||||
|
||||
steps: |
||||
- name: Checkout code |
||||
uses: actions/checkout@v4 |
||||
|
||||
- name: Setup Go environment |
||||
uses: actions/setup-go@v5 |
||||
with: |
||||
go-version: '1.22' |
||||
|
||||
- name: Check Go version |
||||
run: go version |
||||
|
||||
- name: Setup and build on Windows ${{ matrix.arch }} |
||||
if: runner.os == 'Windows' |
||||
run: | |
||||
echo "GOARCH=${{ matrix.arch }}" >> $GITHUB_ENV |
||||
./bootstrap_install_mage.bat |
||||
mage ${{ matrix.build }} |
||||
|
||||
- name: Setup and build on ${{ matrix.os }} ${{ matrix.arch }} |
||||
if: runner.os != 'Windows' |
||||
run: | |
||||
sudo bash ./bootstrap_install_mage.sh |
||||
sudo mage ${{ matrix.build }} |
||||
|
||||
- name: Upload Artifacts |
||||
uses: actions/upload-artifact@v4 |
||||
with: |
||||
name: ${{ matrix.os }}-${{ matrix.arch }}-assets |
||||
path: shared/${{ (matrix.os == 'macos-latest' && 'ios' || (matrix.os == 'windows-latest' && 'windows' || 'linux')) }}/ |
||||
|
@ -1,39 +0,0 @@ |
||||
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@v1 |
||||
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/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg). 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/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg" target="_blank"><img src="https://img.shields.io/badge/Slack-OpenIM%2B-blueviolet?logo=slack&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-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) team channel. |
||||
+ <a href="https://mail.google.com/mail/u/0/?fs=1&tf=cm&to=winxu81@gmail.com" 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&to=winxu81@gmail.com). 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 |
@ -1,46 +0,0 @@ |
||||
# name: Check-Coverage |
||||
|
||||
|
||||
# on: |
||||
# workflow_dispatch: |
||||
# push: |
||||
# branches: [ "main" ] |
||||
# paths-ignore: |
||||
# - "docs/**" |
||||
# - "**/*.md" |
||||
# - "**/*.yaml" |
||||
# - "CONTRIBUTORS" |
||||
# - "CHANGELOG/**" |
||||
# pull_request: |
||||
# branches: [ "*" ] |
||||
# paths-ignore: |
||||
# - "docs/**" |
||||
# - "**/*.md" |
||||
# - "**/*.yaml" |
||||
# - "CONTRIBUTORS" |
||||
# - "CHANGELOG/**" |
||||
# env: |
||||
# # Common versions |
||||
# GO_VERSION: "1.20" |
||||
|
||||
# jobs: |
||||
# coverage: |
||||
# runs-on: ubuntu-20.04 |
||||
# steps: |
||||
# - name: Checkout |
||||
# uses: actions/checkout@v3 |
||||
|
||||
# - name: Setup Golang with cache |
||||
# uses: magnetikonline/action-golang-cache@v3 |
||||
# with: |
||||
# go-version: ${{ env.GO_VERSION }} |
||||
# token: ${{ secrets.BOT_GITHUB_TOKEN }} |
||||
|
||||
# - name: Install Dependencies |
||||
# run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev |
||||
|
||||
# - name: Run Cover |
||||
# run: make cover |
||||
|
||||
# - name: Upload Coverage to Codecov |
||||
# uses: codecov/codecov-action@v3 |
@ -1,48 +0,0 @@ |
||||
name: "OpenIM CLA Assistant" |
||||
on: |
||||
issue_comment: |
||||
types: [created] |
||||
pull_request_target: |
||||
types: [opened,closed,synchronize] |
||||
|
||||
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings |
||||
permissions: |
||||
actions: write |
||||
contents: write |
||||
pull-requests: write |
||||
statuses: write |
||||
|
||||
env: |
||||
# Define Open-IM-Server variables here |
||||
OPEN_IM_SERVER_REMOTE_ORGANIZATION: openim-sigs |
||||
REMOTE_REPOSITORY: cla |
||||
OPEN_IM_SERVER_CLA_DOCUMENT: https://github.com/openim-sigs/cla/blob/main/README.md |
||||
OPEN_IM_SERVER_SIGNATURES_PATH: signatures/${{ github.event.repository.name }}/cla.json |
||||
|
||||
OPEN_IM_SERVER_ALLOWLIST: kubbot,bot* |
||||
|
||||
jobs: |
||||
CLAAssistant: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: "CLA Assistant" |
||||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' |
||||
uses: contributor-assistant/github-action@v2.3.0 |
||||
env: |
||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} |
||||
PERSONAL_ACCESS_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }} |
||||
with: |
||||
path-to-signatures: ${{ env.OPEN_IM_SERVER_SIGNATURES_PATH }} |
||||
path-to-document: ${{ env.OPEN_IM_SERVER_CLA_DOCUMENT }} |
||||
branch: 'main' |
||||
allowlist: ${{ env.OPEN_IM_SERVER_ALLOWLIST }} |
||||
|
||||
remote-organization-name: ${{ env.OPEN_IM_SERVER_REMOTE_ORGANIZATION }} |
||||
remote-repository-name: ${{ env.REMOTE_REPOSITORY }} |
||||
|
||||
create-file-commit-message: '📚 Docs: Creating file for storing ${{ github.event.repository.name }} CLA Signatures' |
||||
custom-notsigned-prcomment: '💕 Thank you for your contribution and please kindly read and sign our [🎯https://github.com/openim-sigs/cla/blob/main/README.md](https://github.com/openim-sigs/cla/blob/main/README.md) <br> ' |
||||
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' |
||||
custom-allsigned-prcomment: '🤖 All Contributors have signed the [${{ github.event.repository.name }} CLA](https://github.com/openim-sigs/cla/blob/main/README.md).<br> The signed information is recorded [🤖here](https://github.com/openim-sigs/cla/tree/main/signatures/${{ env.OPEN_IM_SERVER_ALLOWLIST }}/cla.json)' |
||||
# lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) |
||||
# use-dco-flag: true - If you are using DCO instead of CLA |
@ -1,30 +0,0 @@ |
||||
# name: Run gosec |
||||
|
||||
# # gosec is a source code security audit tool for the Go language. It performs a static |
||||
# # analysis of the Go code, looking for potential security problems. The main functions of gosec are: |
||||
# # 1. Find common security vulnerabilities, such as SQL injection, command injection, and cross-site scripting (XSS). |
||||
# # 2. Audit codes according to common security standards and find non-standard codes. |
||||
# # 3. Assist the Go language engineer to write safe and reliable code. |
||||
|
||||
# on: |
||||
# push: |
||||
# branches: "*" |
||||
# pull_request: |
||||
# branches: "*" |
||||
# paths-ignore: |
||||
# - '*.md' |
||||
# - '*.yml' |
||||
# - '.github' |
||||
|
||||
# jobs: |
||||
# golang-security-action: |
||||
# runs-on: ubuntu-latest |
||||
# env: |
||||
# GO111MODULE: on |
||||
# steps: |
||||
# - name: Check out code |
||||
# uses: actions/checkout@v3 |
||||
# - name: Run Gosec Security Scanner |
||||
# uses: securego/gosec@master |
||||
# with: |
||||
# args: ./... |
@ -1,21 +0,0 @@ |
||||
name: Good frist issue add comment |
||||
on: |
||||
issues: |
||||
types: |
||||
- labeled |
||||
jobs: |
||||
add-comment: |
||||
if: github.event.label.name == 'help wanted' || github.event.label.name == 'good first issue' |
||||
runs-on: ubuntu-latest |
||||
permissions: |
||||
issues: write |
||||
steps: |
||||
- name: Add comment |
||||
uses: peter-evans/create-or-update-comment@v3 |
||||
with: |
||||
issue-number: ${{ github.event.issue.number }} |
||||
token: ${{ secrets.BOT_GITHUB_TOKEN }} |
||||
body: | |
||||
This issue is available for anyone to work on. **Make sure to reference this issue in your pull request.** :sparkles: Thank you for your contribution! :sparkles: |
||||
[Join slack 🤖](https://join.slack.com/t/openimsdk/shared_invite/zt-1tmoj26uf-_FDy3dowVHBiGvLk9e5Xkg) to connect and communicate with our developers. |
||||
If you wish to accept this assignment, please leave a comment in the comments section: `/accept`.🎯 |
@ -1,17 +0,0 @@ |
||||
name: 'issue translator' |
||||
on: |
||||
issue_comment: |
||||
types: [created] |
||||
issues: |
||||
types: [opened] |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: usthe/issues-translate-action@v2.7 |
||||
with: |
||||
# it is not necessary to decide whether you need to modify the issue header content |
||||
IS_MODIFY_TITLE: true |
||||
BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} |
||||
# Required, input your bot github token |
@ -1,47 +0,0 @@ |
||||
# name: Github Rebot for Link check error |
||||
|
||||
# on: |
||||
# pull_request: |
||||
# branches: [ main ] |
||||
# paths: |
||||
# - '**.md' |
||||
# - 'docs/**' |
||||
# - '.lycheeignore' |
||||
# push: |
||||
# branches: [ main ] |
||||
|
||||
# schedule: |
||||
# - cron: '0 11 * * *' |
||||
|
||||
# jobs: |
||||
# linkChecker: |
||||
# runs-on: ubuntu-latest |
||||
# steps: |
||||
# - uses: actions/checkout@v3 |
||||
|
||||
# - name: Link Checker |
||||
# id: lychee |
||||
# uses: lycheeverse/lychee-action@v1.7.0 |
||||
# with: |
||||
# # For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters |
||||
# # Actions Link address -> https://github.com/lycheeverse/lychee-action |
||||
# # -E, --exclude-all-private Exclude all private IPs from checking. |
||||
# # -i, --insecure Proceed for server connections considered insecure (invalid TLS) |
||||
# # -n, --no-progress Do not show progress bar. |
||||
# # -t, --timeout <timeout> Website timeout in seconds from connect to response finished [default:20] |
||||
# # --max-concurrency <max-concurrency> Maximum number of concurrent network requests [default: 128] |
||||
# # -a --accept <accept> Comma-separated list of accepted status codes for valid links |
||||
# # docs/.vitepress/dist the site directory to check |
||||
# # ./*.md all markdown files in the root directory |
||||
# args: --verbose -E -i --no-progress --exclude-path './CHANGELOG' './**/*.md' |
||||
# env: |
||||
# GITHUB_TOKEN: ${{secrets.GH_PAT}} |
||||
|
||||
# - name: Create Issue From File |
||||
# if: env.lychee_exit_code != 0 |
||||
# uses: peter-evans/create-issue-from-file@v4 |
||||
# with: |
||||
# title: Bug reports for links in OpenIM docs |
||||
# content-filepath: ./lychee/out.md |
||||
# labels: kind/documentation, triage/unresolved, report |
||||
# token: ${{ secrets.BOT_GITHUB_TOKEN }} |
@ -1,39 +0,0 @@ |
||||
name: 'OpenCommit Action' |
||||
|
||||
on: |
||||
push: |
||||
# this list of branches is often enough, |
||||
# but you may still ignore other public branches |
||||
branches-ignore: [main master dev development release] |
||||
|
||||
jobs: |
||||
opencommit: |
||||
timeout-minutes: 10 |
||||
name: OpenCommit |
||||
runs-on: ubuntu-latest |
||||
permissions: write-all |
||||
steps: |
||||
- name: Setup Node.js Environment |
||||
uses: actions/setup-node@v2 |
||||
with: |
||||
node-version: '16' |
||||
- uses: actions/checkout@v3 |
||||
with: |
||||
fetch-depth: 0 |
||||
- uses: di-sukharev/opencommit@github-action-v1.0.4 |
||||
with: |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
||||
env: |
||||
# set openAI api key in repo actions secrets, |
||||
# for openAI keys go to: https://platform.openai.com/account/api-keys |
||||
# for repo secret go to: https://github.com/kuebcub/settings/secrets/actions |
||||
OCO_OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
||||
|
||||
# customization |
||||
OCO_OPENAI_MAX_TOKENS: 500 |
||||
OCO_OPENAI_BASE_PATH: '' |
||||
OCO_DESCRIPTION: false |
||||
OCO_EMOJI: false |
||||
OCO_MODEL: gpt-3.5-turbo |
||||
OCO_LANGUAGE: en |
@ -1,22 +0,0 @@ |
||||
# GitHub recommends pinning actions to a commit SHA. |
||||
# To get a newer version, you will need to update the SHA. |
||||
# You can also reference a tag or branch, but the action may change without warning. |
||||
|
||||
name: Move assigned card |
||||
on: |
||||
issues: |
||||
types: |
||||
- assigned |
||||
pull_request: |
||||
types: |
||||
- assigned |
||||
|
||||
jobs: |
||||
move-assigned-card: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: alex-page/github-project-automation-plus@v0.8.3 |
||||
with: |
||||
project: OpenIM 2023 Sprint 🔥 |
||||
column: In Progress |
||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} |
@ -1,64 +0,0 @@ |
||||
name: OpenIM Server Release |
||||
|
||||
on: |
||||
push: |
||||
# run only against tags |
||||
tags: |
||||
- '*' |
||||
|
||||
permissions: |
||||
contents: write |
||||
packages: write |
||||
issues: write |
||||
|
||||
jobs: |
||||
goreleaser: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v3 |
||||
with: |
||||
fetch-depth: 0 |
||||
- run: git fetch --force --tags |
||||
- uses: actions/setup-go@v4 |
||||
with: |
||||
go-version: stable |
||||
# More assembly might be required: Docker logins, GPG, etc. It all depends |
||||
# on your needs. |
||||
- uses: goreleaser/goreleaser-action@v4 |
||||
with: |
||||
# either 'goreleaser' (default) or 'goreleaser-pro': |
||||
distribution: goreleaser |
||||
version: latest |
||||
args: release --clean |
||||
env: |
||||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} |
||||
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' |
||||
# distribution: |
||||
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} |
||||
|
||||
goreleaser-check-pkgs: |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
DOCKER_CLI_EXPERIMENTAL: "enabled" |
||||
needs: [ goreleaser ] |
||||
if: github.ref == 'refs/heads/main' |
||||
strategy: |
||||
matrix: |
||||
format: [ deb, rpm, apk ] |
||||
steps: |
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 |
||||
with: |
||||
fetch-depth: 0 |
||||
- uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1 |
||||
with: |
||||
version: 3.x |
||||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
||||
- uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2 |
||||
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 |
||||
with: |
||||
path: | |
||||
./_output/dist/*.deb |
||||
./_output/dist/*.rpm |
||||
./_output/dist/*.apk |
||||
key: ${{ github.ref }} |
||||
- run: task goreleaser:test:${{ matrix.format }} |
@ -1,34 +0,0 @@ |
||||
# 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: '0 8 * * *' |
||||
|
||||
jobs: |
||||
stale: |
||||
|
||||
runs-on: ubuntu-latest |
||||
permissions: |
||||
issues: write |
||||
pull-requests: write |
||||
|
||||
steps: |
||||
- uses: actions/stale@v5 |
||||
with: |
||||
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} |
||||
days-before-stale: 60 |
||||
days-before-close: 7 |
||||
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' |
||||
stale-pr-message: 'This issue is stale because it has been open 60 days with no activity.' |
||||
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' |
||||
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity. You can reopen it if you want.' |
||||
stale-pr-label: lifecycle/stale |
||||
stale-issue-label: lifecycle/stale |
||||
exempt-issue-labels: 'openim' |
||||
exempt-pr-labels: 'openim' |
||||
exempt-draft-pr: true |
Loading…
Reference in new issue