Skip to content

Commit

Permalink
feat: about sync
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Jun 25, 2023
1 parent f9c6662 commit 7fb1810
Show file tree
Hide file tree
Showing 44 changed files with 4,383 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/sync_labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

- name: bug
description: Something isn't working
color: d73a4a
Expand Down
4 changes: 4 additions & 0 deletions .github/sync_labels.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

- color: f9d0c4
default: false
description: ¯\\\_(ツ)_/¯
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

name: CI
on: [push]
jobs:
Expand All @@ -8,7 +12,7 @@ jobs:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/opencommit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

name: 'OpenCommit Action'

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

name: Test repository spelling check
on:
push:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

# 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.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sync_labels.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

name: Kubecub Sync labels

on:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ flycheck_*.el

# End of https://www.toptal.com/developers/gitignore/api/vim,jetbrains,vscode,git,go,tags,backup,test

# Start by iam
# Start by kubecub

# log
*.log
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ linters-settings:
# put imports beginning with prefix after 3rd-party packages;
# only support one prefix
# if not set, use goimports.local-prefixes
prefix: github.com/marmotedu/iam
prefix: github.com/marmotedu/kubecub
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 30
Expand Down Expand Up @@ -322,7 +322,7 @@ linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/marmotedu/iam
local-prefixes: github.com/marmotedu/kubecub
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.9
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

FROM golang:1.20 AS build

WORKDIR /go/src/app
Expand Down
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,20 @@ go.build.%:
build-multiarch: go.build.verify $(foreach p,$(PLATFORMS),$(addprefix go.build., $(addprefix $(p)., $(BINS))))
# ==============================================================================
# Targets
.PHONY: release
release: release.verify release.ensure-tag
@scripts/release.sh

.PHONY: install.gsemver
release.verify: install.git-chglog install.github-release install.coscmd

.PHONY: release.tag
release.tag: install.gsemver release.ensure-tag
@git push origin `git describe --tags --abbrev=0`

.PHONY: release.ensure-tag
release.ensure-tag: install.gsemver
@scripts/ensure_tag.sh

## tidy: tidy go.mod
.PHONY: tidy
Expand Down Expand Up @@ -422,7 +436,7 @@ install.protoc-gen-go:
## install.cfssl: Install cfssl, used to generate certificates
.PHONY: install.cfssl
install.cfssl:
@$(ROOT_DIR)/script/install/install.sh iam::install::install_cfssl
@$(ROOT_DIR)/script/install/install.sh kubecub::install::install_cfssl

## install.depth: Install depth, used to check dependency tree
.PHONY: install.depth
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

name: "Github lables pull and synchronize"
description: "Sync your github labels, or download specific github labels"
author: "Kubecub"
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

version: "3"

services:
Expand Down
4 changes: 4 additions & 0 deletions pkg/exporter/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright © 2023 KubeCub open source community. All rights reserved.
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License.

package exporter

import (
Expand Down
Loading

0 comments on commit 7fb1810

Please sign in to comment.