Skip to content

Commit

Permalink
fix: streamlined names
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <[email protected]>
  • Loading branch information
shanduur committed Aug 2, 2023
1 parent ad1eeb4 commit 05bd9f3
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 37 deletions.
4 changes: 4 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
area/dependency:
name: area/dependency
color: '#0052cc'
description: Issues or PRs related to dependency changes.
good first issue:
name: good first issue
color: '#7057ff'
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/conventional-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,15 @@ jobs:
name: Generate changelog and publish a release
runs-on: ubuntu-latest
steps:
- name: Check if this is full release
id: check-tag
run: |
regex='^(v)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
if echo ${{ github.ref_name }} | grep -qE $regex ; then
echo "match=true" >> $GITHUB_OUTPUT
fi
- name: Checkout Code
if: steps.check-tag.outputs.match == 'true'
uses: actions/checkout@v3
- name: Update CHANGELOG
id: changelog
if: steps.check-tag.outputs.match == 'true'
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
- name: Create Release
if: steps.check-tag.outputs.match == 'true'
uses: ncipollo/[email protected]
with:
allowUpdates: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# OR
# - pull request is open to the main;

name: Lint commit messages
name: Conventional commit

on:
push:
Expand Down
43 changes: 22 additions & 21 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload labels
name: Labels

on:
push:
Expand All @@ -13,25 +13,26 @@ env:

jobs:
upload-labels:
name: Upload labels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: labels-changed
run: |
if git diff --name-only HEAD~1 HEAD | grep -q ".github/labels.yaml"; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- uses: actions/setup-go@v4
if: steps.labels-changed.outputs.changed == 'true'
with:
go-version: '1.20'
- if: steps.labels-changed.outputs.changed == 'true'
run: go install github.com/shanduur/labeler/cmd/labeler@main
- if: steps.labels-changed.outputs.changed == 'true'
run: labeler upload --owner ${{ env.OWNER }} --repo ${{ env.REPO }} ./.github/labels.yaml
env:
LABELER_TOKEN: ${{ secrets.LABELER_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: labels-changed
run: |
if git diff --name-only HEAD~1 HEAD | grep -q ".github/labels.yaml"; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- uses: actions/setup-go@v4
if: steps.labels-changed.outputs.changed == 'true'
with:
go-version: '1.20'
- if: steps.labels-changed.outputs.changed == 'true'
run: go install github.com/shanduur/labeler/cmd/labeler@main
- if: steps.labels-changed.outputs.changed == 'true'
run: labeler upload --owner ${{ env.OWNER }} --repo ${{ env.REPO }} ./.github/labels.yaml
env:
LABELER_TOKEN: ${{ secrets.LABELER_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow run linters.
# It is supposed to be run on each push to main branch, as well as for each.

name: linters
name: Linters

on:
push:
Expand All @@ -14,7 +14,7 @@ permissions:

jobs:
golangci-lint:
name: golangci-lint
name: Run golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow run tests.
# It is supposed to be run on each push to main branch, as well as for each.

name: tests
name: Tests

on:
push:
Expand All @@ -14,7 +14,7 @@ permissions:

jobs:
tests:
name: run tests and upload coverage report
name: Run tests and upload coverage report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# must

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
[![GitHub](https://img.shields.io/github/license/doomshrine/must)](LICENSE.txt)
[![Go Report Card](https://goreportcard.com/badge/github.com/doomshrine/must)](https://goreportcard.com/report/github.com/doomshrine/must)
[![codecov](https://codecov.io/gh/doomshrine/must/branch/main/graph/badge.svg?token=6MH0T7CI24)](https://codecov.io/gh/doomshrine/must)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/doomshrine/must/tests.yaml)](https://github.com/shanduur/must/actions/workflows/tests.yaml)

`must` is a dead simple library that includes (for now) single function - Do.

## Contributing

You want to contibute? Hop into the [CONTRIBUTING.md](CONTRIBUTING.md) and find how you can help the project!
3 changes: 2 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"extends": [
"config:base"
],
"automerge": true
"automerge": true,
"labels": [ "area/dependency" ]
}

0 comments on commit 05bd9f3

Please sign in to comment.