Skip to content

Commit

Permalink
feat(ci): add repo organization actions (#3606)
Browse files Browse the repository at this point in the history
* improve CI

* fix the docs label name

---------

Co-authored-by: Pantani <Pantani>
  • Loading branch information
Pantani authored Aug 7, 2023
1 parent 0f03adb commit 378894f
Show file tree
Hide file tree
Showing 12 changed files with 168 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
":robot: CI":
- .github/**/*

":book: docs":
- assets/**/*
- docs/**/*

":hammer: tools":
- .actions/**/*
- .scripts/**/*

":package: packages":
- ignite/pkg/**/*

":arrow_forward: cmd":
- ignite/cmd/**/*

":taxi: services":
- ignite/services/**/*

":bookmark: templates":
- ignite/templates/**/*

":door: internal":
- ignite/config/**/*
- ignite/internal/**/*
- ignite/version/**/*

":wrench: configs":
- *
72 changes: 72 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[
{
"name": "bug",
"color": "d73a4a",
"description": "Something isn't working"
},
{
"name": "bug fix",
"color": "8a1d1c",
"description": "Functionality that fixes a bug"
},
{
"name": "dependencies",
"color": "5319e7",
"description": "Update to the dependencies"
},
{
"name": "docs",
"color": "0075ca",
"description": "Improvements or additions to documentation"
},
{
"name": "duplicate",
"color": "cfd3d7",
"description": "This issue or pull request already exists"
},
{
"name": "good first issue",
"color": "7057ff",
"description": "Good for newcomers"
},
{
"name": "help wanted",
"color": "008672",
"description": "Extra attention is needed"
},
{
"name": "breaking change",
"color": "a7327e",
"description": "Functionality that contains breaking changes"
},
{
"name": "don't merge",
"color": "b60205",
"description": "Please don't merge this functionality temporarily"
},
{
"name": "feature",
"color": "ffb703",
"description": "New update to Gno"
},
{
"name": "hotfix",
"color": "003049",
"description": "Major bug fix that should be merged ASAP"
},
{
"name": "info needed",
"color": "54eba0",
"description": "More information needed"
},
{
"name": "question",
"color": "fbca04",
"description": "Questions about Gno"
},
{
"name": "investigating",
"color": "8c008c",
"description": "This behavior is still being tested out"
}
]
18 changes: 18 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: auto-author-assign

on:
pull_request_target:
types: [ opened, reopened ]

permissions:
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Labeler"
on:
- pull_request_target

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
5 changes: 5 additions & 0 deletions .github/workflows/md-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
- "**.*.md"
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
markdown-link-check:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
release:
types: [ published ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
binary:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: Release Docker Image
on:
release:
types: [ published ]

push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
consecutiveness:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
consecutiveness:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
pre-test:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- '**.md'
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Lint Go code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
semantic_pr:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v1.2.0
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- '**.md'
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 378894f

Please sign in to comment.