An open API service indexing awesome lists of open source software.

https://github.com/5ouma/utils

🔧 Utilities to make my life better
https://github.com/5ouma/utils

bun cache composite-action deno deno-lock github-actions labeler opml-generator pre-commit pre-commit-hook prek renovate rss

Last synced: about 1 month ago
JSON representation

🔧 Utilities to make my life better

Awesome Lists containing this project

README

          

Utils

**🔧 Utilities to make my life better**


[![GitHub Release](https://img.shields.io/github/v/release/5ouma/utils?style=flat-square)](https://github.com/5ouma/utils/releases)
[![Release](https://img.shields.io/github/actions/workflow/status/5ouma/utils/release.yml?label=Release&style=flat-square)](https://github.com/5ouma/utils/actions/workflows/release.yml)
[![pre-commit](https://img.shields.io/github/actions/workflow/status/5ouma/utils/pre-commit.yml?label=pre-commit&style=flat-square)](https://github.com/5ouma/utils/actions/workflows/pre-commit.yml)

![Repobeats Analytics Image](https://repobeats.axiom.co/api/embed/d782636a7ff8da4b10a5eb4c9465b211d5f003d5.svg)



## 🐙 GitHub Composite Actions

### 🏷️ Label Past Pull Requests

```yml
on:
pull_request:
types: [closed]

jobs:
job:
permissions:
pull-requests: write
if: ${{ github.event.pull_request.user.login == 'renovate[bot]' && github.event.pull_request.merged }}
runs-on: Ubuntu-Slim
steps:
- uses: 5ouma/utils/label-past-pr@v0.10.2
with:
branch: renovate/ # Optional
label: past-pr
```

### 🚸 pre-commit

```yml
jobs:
job:
runs-on: Ubuntu-Slim
steps:
- uses: 5ouma/utils/pre-commit@v0.10.2
with:
config: /path/to/pre-commit-config.yml # Optional
token: ${{ secrets.GITHUB_TOKEN }} # Optional
```

> [!IMPORTANT]
> You need to install [pre-commit.ci lite](https://pre-commit.ci/lite) to commit the changes.

### 🍞 Setup Bun with Cache

```yml
jobs:
job:
runs-on: Ubuntu-Latest
steps:
- uses: 5ouma/utils/setup-bun-with-cache@v0.10.2
```

### 🔒 Update Deno Lock File

```yml
jobs:
job:
runs-on: Ubuntu-Slim
steps:
- uses: 5ouma/utils/update-deno-lock-file@v0.10.2
```

> [!IMPORTANT]
> You need to:
>
> 1. install [autofix.ci](https://autofix.ci) to commit the changes.
> 2. name workflows `autofix.ci`

## 🏷️ Labeler

```yml
jobs:
job:
permissions:
pull-requests: write
runs-on: Ubuntu-Latest
steps:
- uses: fuxingloh/multi-labeler@v4
with:
config-repo: 5ouma/utils
```


## 🚸 pre-commit hooks

```yml
default_install_hook_types:
- pre-push

repos:
- repo: https://github.com/5ouma/utils
rev: v0.10.2
hooks:
- id: upload-git-commit-notion
```


## 🎨 Renovate

```json
{
"extends": ["github>5ouma/utils#v0.10.2", "github>5ouma/utils:labels#v0.10.2"]
}
```