Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into add-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
BEvgeniyS committed Jan 20, 2023
2 parents 3b6e755 + 39b0c0a commit 83def45
Show file tree
Hide file tree
Showing 21 changed files with 486 additions and 198 deletions.
57 changes: 57 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '📝 Documentation'
label: 'docs'
- title: '🧰 Maintenance'
label: 'chore'
- title: '⬆️ Dependencies'
collapse-after: 3
labels:
- 'dependencies'
- title: '👷 Continuous Integration'
collapse-after: 3
labels:
- 'ci'

replacers:
- search: '/^(fix|feat|ci|build)(\(.+?\))?: /g'
replace: ''

template: |
## What's Changed
$CHANGES
version-resolver:
major:
labels:
- 'type: breaking'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bugfix'
- 'maintenance'
- 'docs'
- 'dependencies'
- 'security'

autolabeler:
- label: 'bugfix'
title:
- '/fix:/i'
- label: 'enhancement'
title:
- '/feat:/i'

2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- uses: hmarr/auto-approve-action@v2
- uses: hmarr/auto-approve-action@v3
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
8 changes: 5 additions & 3 deletions .github/workflows/codeball.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Codeball
on: [pull_request]
on:
pull_request: {}
pull_request_review_comment:
types: [created, edited]

jobs:
codeball_job:
runs-on: ubuntu-latest
name: Codeball
steps:
# Run Codeball on all new Pull Requests 🚀
# For customizations and more documentation, see https://github.com/sturdy-dev/codeball-action
- name: Codeball
uses: sturdy-dev/codeball-action@v2
with:
# For all configuration options see https://github.com/sturdy-dev/codeball-action/blob/v2/action.yml
approvePullRequests: "true"
labelPullRequestsWhenApproved: "true"
labelPullRequestsWhenReviewNeeded: "false"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conventional-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
type_labels: >
{
"feat": "feature",
"fix": "bugfix",
"feat": "enhancement",
"fix": "bug",
"breaking": "breaking-change"
}
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-python@v4.3.0
- uses: actions/setup-python@v4.4.0
with:
python-version: '3.x'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4.3.0
- uses: actions/setup-python@v4.4.0
with:
python-version: '3.x'
- uses: actions/setup-go@v3
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
cache: true

- name: Login to github registry
uses: docker/login-action@v2.0.0
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3.1.0
uses: goreleaser/goreleaser-action@v4.1.0
with:
version: latest
args: release --rm-dist
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
cache: true

- name: golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
uses: golangci/golangci-lint-action@v3.3.1
with:
version: v1.46.2
args: --timeout=5m
Expand All @@ -57,7 +57,7 @@ jobs:
check-latest: true
cache: true

- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.2
with:
path: |
~/go/pkg/mod # Module download cache
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
check-latest: true
cache: true

- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.2
with:
path: |
~/go/pkg/mod # Module download cache
Expand All @@ -117,7 +117,7 @@ jobs:
${{ runner.os }}-go-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3.1.0
uses: goreleaser/goreleaser-action@v4.1.0
with:
version: latest
args: release --rm-dist --skip-validate --skip-publish
Expand Down
Loading

0 comments on commit 83def45

Please sign in to comment.