Skip to content

Commit

Permalink
ci: add sync labels
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Aug 31, 2023
1 parent c83cbba commit 05d5a63
Show file tree
Hide file tree
Showing 10 changed files with 167 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: '🐞 - Bug Report'
title: '🐞 - '
name: "🐞 - Bug Report"
title: "🐞 - "
description: Report a bug
labels: ['bug', 'state: need triage']
labels: ["bug", "state: need triage"]

body:
- type: input
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: '🚀 - Feature Request'
title: '🚀 - '
name: "🚀 - Feature Request"
title: "🚀 - "
description: Suggest a feature
labels: ['feature', 'state: need triage']
labels: ["feature", "state: need triage"]

body:
- type: textarea
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/3-dev-infra-request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: '🤖 - Dev Infrastructure Request'
title: '🤖 - '
name: "🤖 - Dev Infrastructure Request"
title: "🤖 - "
description: Suggest a feature for improve productivity
labels: ['dev-infra', 'state: need triage']
labels: ["dev-infra", "state: need triage"]

body:
- type: textarea
Expand Down
66 changes: 66 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
- name: bug
description: Something isn't working
color: D73A4A
- name: community contribution
description: This issue was closed by a PR from the community
color: 7D00DA
- name: contributions welcome
description: Architecture is clear and community can help
color: F488C1
- name: dev-infra
description: dev-infra
color: 3F2963
- name: documentation
description: Improvements or additions to documentation
color: 0075CA
- name: feature
description: New feature or request
color: 2C4BE1
- name: major
description: Renovate
color: EDEDED
- name: minor
description: Renovate
color: EDEDED
- name: patch
description: TRenovate
color: EDEDED
- name: P1
description: This issue has high priority
color: B11D1E
- name: P2
description: This issue has medium priority
color: FBCA04
- name: P3
description: This issue has low priority
color: 0E8A16
- name: ready to merge
description: ready
color: 0E8A16
- name: S1
description: This issue has high severity
color: F9D0C4
- name: S2
description: This issue has medium severity
color: FEFFA4
- name: S3
description: This issue has low severity
color: BAF8AE
- name: "state: need triage"
description: state need triage
color: C5DEF5
- name: "state: postponed"
description: state need triage
color: C5DEF5
- name: wontfix
description: This will not be worked on
color: FFFFFF
- name: v2
description: v2
color: D4C5F9
- name: v3
description: v3
color: FBCA04
- name: v4
description: v4
color: C351D5
22 changes: 22 additions & 0 deletions .github/workflows/auto-sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto sync labels
on:
workflow_dispatch:
schedule:
- cron: "40 7 * * 6"
push:
branches: [main]
paths:
- ./.github/labels.yml

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: micnncim/[email protected]
with:
manifest: ./.github/labels.yml
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
repository: |
taiga-family/.github
taiga-family/linters
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ⚙️ Lint
on:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup global variables
uses: taiga-family/ci/actions/[email protected]
- name: Setup Node.js and Cache
uses: taiga-family/ci/actions/[email protected]

- name: Lint check
run: |
npm run prettier -- --check
concurrency:
group: lint-${{ github.head_ref }}
cancel-in-progress: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
node_modules
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# .github

This is Taiga-family's organization profile page
31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "taiga-family-github",
"private": true,
"description": "This is Taiga-family's organization profile page",
"scripts": {
"prettier": "prettier '**/*.{svg,yml,js,ts,html,md,less,json}'",
"format": "npm run prettier -- --write"
},
"devDependencies": {
"prettier": "3.0.3"
},
"license": "Apache-2.0"
}

0 comments on commit 05d5a63

Please sign in to comment.