Skip to content

Commit 6d69f89

Browse files
committed
chore: apply tailor alterations
Signed-off-by: Martin Wimpress <code@wimpress.io>
1 parent 78f00cd commit 6d69f89

5 files changed

Lines changed: 115 additions & 24 deletions

File tree

.github/workflows/tailor-automerge.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dependabot automerge 🤖
1+
name: Tailor automerge 🤖
22

33
on:
44
pull_request:
@@ -11,33 +11,47 @@ permissions:
1111
jobs:
1212
automerge:
1313
runs-on: ubuntu-slim
14-
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
14+
if: github.event_name == 'pull_request'
1515
steps:
1616
- name: Fetch Dependabot metadata
17+
if: github.event.pull_request.user.login == 'dependabot[bot]'
1718
id: metadata
18-
uses: dependabot/fetch-metadata@v2.5.0
19+
uses: dependabot/fetch-metadata@v2
1920
with:
2021
github-token: "${{ secrets.GITHUB_TOKEN }}"
2122
skip-commit-verification: true
2223

2324
- name: Automerge GitHub Actions updates
24-
if: steps.metadata.outputs.package-ecosystem == 'github_actions'
25+
if: >-
26+
github.event.pull_request.user.login == 'dependabot[bot]'
27+
&& steps.metadata.outputs.package-ecosystem == 'github_actions'
2528
run: gh pr merge --auto --squash "$PR_URL"
2629
env:
2730
PR_URL: ${{ github.event.pull_request.html_url }}
2831
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2932

3033
- name: Automerge patch and minor dependency updates
31-
if: |
32-
steps.metadata.outputs.package-ecosystem != 'github_actions' && (
33-
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
34-
steps.metadata.outputs.update-type == 'version-update:semver-minor'
34+
if: >-
35+
github.event.pull_request.user.login == 'dependabot[bot]'
36+
&& steps.metadata.outputs.package-ecosystem != 'github_actions'
37+
&& (
38+
steps.metadata.outputs.update-type == 'version-update:semver-patch'
39+
|| steps.metadata.outputs.update-type == 'version-update:semver-minor'
3540
)
3641
run: gh pr merge --auto --squash "$PR_URL"
3742
env:
3843
PR_URL: ${{ github.event.pull_request.html_url }}
3944
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4045

46+
- name: Automerge flake.lock update
47+
if: >-
48+
github.event.pull_request.user.login == 'github-actions[bot]'
49+
&& startsWith(github.event.pull_request.head.ref, 'update_flake_lock')
50+
run: gh pr merge --auto --squash "$PR_URL"
51+
env:
52+
PR_URL: ${{ github.event.pull_request.html_url }}
53+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
4155
automerge-existing:
4256
runs-on: ubuntu-slim
4357
if: github.event_name == 'workflow_dispatch'

.github/workflows/tailor.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,39 @@ jobs:
1414
alter:
1515
runs-on: ubuntu-slim
1616
env:
17-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
GH_TOKEN: ${{ secrets.TAILOR_TOKEN || secrets.GITHUB_TOKEN }}
1818
steps:
19-
- uses: actions/checkout@v6.0.1
19+
- uses: actions/checkout@v6
2020

21-
- name: Setup tailor
22-
uses: wimpysworld/tailor-action@v0.1.0
23-
24-
- name: Alter swatches
25-
run: tailor alter
21+
- name: Tailor
22+
uses: wimpysworld/tailor@v0
23+
with:
24+
alter: true
2625

2726
- name: Create PR
28-
uses: peter-evans/create-pull-request@v8.1.0
27+
uses: peter-evans/create-pull-request@v8
2928
with:
3029
branch: tailor-alter
3130
title: "chore: alter tailor swatches"
31+
32+
update-flake-lock:
33+
runs-on: ubuntu-latest
34+
permissions:
35+
contents: write
36+
pull-requests: write
37+
steps:
38+
- uses: actions/checkout@v6
39+
40+
- name: Check for flake.lock
41+
id: check
42+
run: test -f flake.lock && echo "found=true" >> "$GITHUB_OUTPUT" || echo "found=false" >> "$GITHUB_OUTPUT"
43+
44+
- name: Install Nix
45+
if: steps.check.outputs.found == 'true'
46+
uses: DeterminateSystems/determinate-nix-action@v3
47+
48+
- name: Update flake.lock
49+
if: steps.check.outputs.found == 'true'
50+
uses: DeterminateSystems/update-flake-lock@v28
51+
with:
52+
pr-title: "chore: update flake.lock"

.tailor.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Initially fitted by tailor on 2026-03-11
1+
# Refitted by tailor on 2026-03-12
22
license: BlueOak-1.0.0
33

44
repository:
5-
description: Homebrew tap for Wimpy's World tools 🚰
5+
description: "Homebrew tap for Wimpy's World tools 🚰"
66
homepage: https://github.com/wimpysworld/homebrew-tap
77
has_wiki: false
88
has_discussions: false
@@ -19,9 +19,6 @@ repository:
1919
allow_update_branch: true
2020
allow_auto_merge: true
2121
web_commit_signoff_required: false
22-
private_vulnerability_reporting_enabled: false
23-
vulnerability_alerts_enabled: true
24-
automated_security_fixes_enabled: true
2522
default_workflow_permissions: write
2623
can_approve_pull_request_reviews: true
2724
topics:
@@ -85,9 +82,6 @@ swatches:
8582
- path: .github/workflows/tailor.yml
8683
alteration: always
8784

88-
- path: .github/workflows/tailor-security.yml
89-
alteration: never
90-
9185
- path: .github/dependabot.yml
9286
alteration: first-fit
9387

@@ -135,3 +129,6 @@ swatches:
135129

136130
- path: .github/workflows/tailor-automerge.yml
137131
alteration: triggered
132+
133+
- path: cubic.yaml
134+
alteration: first-fit

cubic.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# yaml-language-server: $schema=https://cubic.dev/schema/cubic-repository-config.schema.json
2+
version: 1
3+
4+
reviews:
5+
enabled: true
6+
sensitivity: medium
7+
incremental_commits: true
8+
check_drafts: false
9+
architecture_diagrams: false
10+
resolve_threads_when_addressed: true
11+
custom_instructions: ""
12+
ignore:
13+
files:
14+
- "dist/**"
15+
- "build/**"
16+
pr_titles:
17+
- "wip:*"
18+
pr_labels:
19+
- "wontfix"
20+
head_branches: []
21+
base_branches: []
22+
custom_rules: []
23+
24+
pr_descriptions:
25+
cubic_review_link: false
26+
generate: false
27+
instructions: ""
28+
29+
issues:
30+
fix_commits_to_pr: false
31+
fix_with_cubic_buttons: false
32+
pr_comment_fixes: false

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)