Skip to content

Commit

Permalink
chore: drop calens and add default structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed May 29, 2024
1 parent 8a6d174 commit 759b4d0
Show file tree
Hide file tree
Showing 16 changed files with 632 additions and 109 deletions.
2 changes: 0 additions & 2 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
exclude_paths:
- .github/**
- changelog/**

- CHANGELOG.md

...
1 change: 1 addition & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ branches:
restrictions:
apps:
- renovate
- gopad
users: []
teams:
- admins
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: automerge

"on":
workflow_dispatch:
pull_request:
branches:
- master

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:
- name: Generate token
id: token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.TOKEN_EXCHANGE_APP }}
installation_retrieval_mode: id
installation_retrieval_payload: ${{ secrets.TOKEN_EXCHANGE_INSTALL }}
private_key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
permissions: >-
{"contents": "write", "pull_requests": "write", "issues": "write"}
- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Approve request
id: approve
run: gh pr review --approve "${{github.event.pull_request.html_url}}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enable automerge
id: automerge
run: gh pr merge --rebase --auto "${{github.event.pull_request.html_url}}"
env:
GH_TOKEN: ${{ steps.token.outputs.token }}

...
36 changes: 0 additions & 36 deletions .github/workflows/changes.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: flake

"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"

permissions:
contents: write
pull-requests: write

jobs:
flake:
runs-on: ubuntu-latest

steps:
- name: Generate token
id: token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.TOKEN_EXCHANGE_APP }}
installation_retrieval_mode: id
installation_retrieval_payload: ${{ secrets.TOKEN_EXCHANGE_INSTALL }}
private_key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
permissions: >-
{"contents": "write", "pull_requests": "write"}
- name: Checkout source
id: source
uses: actions/checkout@v4

- name: Install nix
id: nix
uses: cachix/install-nix-action@v27

- name: Update flake
id: flake
uses: DeterminateSystems/update-flake-lock@v21
with:
commit-msg: "chore(flake): updated lockfile"
pr-title: "chore: automated flake update"
pr-body: "New flakelock generated, automerge should handle that!"
pr-labels: renovate
git-author-name: GitHub Actions
git-author-email: [email protected]
token: ${{ steps.token.outputs.token }}

- name: Enable automerge
id: automerge
if: steps.flake.outputs.pull-request-operation == 'created'
run: gh pr merge --rebase --auto "${{ steps.flake.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ steps.token.outputs.token }}

...
2 changes: 1 addition & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
steps:
- name: Checkout source
id: source
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
uses: actions/checkout@v4

...
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.direnv
.devenv
18 changes: 0 additions & 18 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gopad: Android

[![General Workflow](https://github.com/gopad/gopad-android/actions/workflows/general.yml/badge.svg)](https://github.com/gopad/gopad-android/actions/workflows/general.yml) [![Join the Matrix chat at https://matrix.to/#/#gopad:matrix.org](https://img.shields.io/badge/matrix-%23gopad%3Amatrix.org-7bc9a4.svg)](https://matrix.to/#/#gopad:matrix.org) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/71b7d07cce174ff5bd4265a1012807b9)](https://www.codacy.com/gh/gopad/gopad-android/dashboard?utm_source=github.com&utm_medium=referral&utm_content=gopad/gopad-android&utm_campaign=Badge_Grade)
[![General Workflow](https://github.com/gopad/gopad-android/actions/workflows/general.yml/badge.svg)](https://github.com/gopad/gopad-android/actions/workflows/general.yml) [![Join the Matrix chat at https://matrix.to/#/#gopad:matrix.org](https://img.shields.io/badge/matrix-%23gopad%3Amatrix.org-7bc9a4.svg)](https://matrix.to/#/#gopad:matrix.org) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/71b7d07cce174ff5bd4265a1012807b9)](https://app.codacy.com/gh/gopad/gopad-android/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

TBD

Expand Down
28 changes: 0 additions & 28 deletions changelog/CHANGELOG.tmpl

This file was deleted.

6 changes: 0 additions & 6 deletions changelog/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions changelog/TEMPLATE

This file was deleted.

Empty file removed changelog/unreleased/.keep
Empty file.
6 changes: 0 additions & 6 deletions changelog/unreleased/initial-release.md

This file was deleted.

Loading

0 comments on commit 759b4d0

Please sign in to comment.