Skip to content

Commit 3d22e22

Browse files
retr0hclaude
andauthored
chore: add MIT license headers and normalize README license section (#9)
* chore: add MIT license headers and normalize README license section - Prepend the MIT license header (2026 attribution) to every Go source file, matching the style used across osapi-io apps and preserving the existing package doc comment on main.go. - Normalize the README license section to `The [MIT][] License.` with a `[MIT]: LICENSE` reference, matching the house style used across osapi-io and grind. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: ignore tlock binary at repo root Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: add codecov, labeler, greetings, and report-card workflows Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent eb2ae9a commit 3d22e22

16 files changed

Lines changed: 279 additions & 1 deletion

.github/codecov.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
coverage:
3+
precision: 2
4+
round: down
5+
range: "50...100"
6+
status:
7+
project:
8+
default:
9+
threshold: 0.05%
10+
patch:
11+
default:
12+
target: 100%
13+
14+
comment:
15+
layout: "reach,diff,flags,files,footer"
16+
behavior: default
17+
require_changes: false
18+
19+
ignore:
20+
- "**/mocks/*.go"
21+
- "**/*.gen.go"

.github/labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
github/action:
3+
- changed-files:
4+
- any-glob-to-any-file: ".github/**/*.yml"
5+
6+
kind/docs:
7+
- changed-files:
8+
- any-glob-to-any-file: "docs/**"
9+
10+
kind/go:
11+
- changed-files:
12+
- any-glob-to-any-file: "**/*.go"
13+
14+
kind/yaml:
15+
- changed-files:
16+
- any-glob-to-any-file: "**/*.yaml"
17+
- any-glob-to-any-file: "**/*.yml"
18+
19+
test/unit:
20+
- changed-files:
21+
- any-glob-to-any-file: "**/*_test.go"

.github/workflows/greetings.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Greetings
3+
4+
on: [pull_request, issues]
5+
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
10+
jobs:
11+
greeting:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/first-interaction@v3
15+
if: env.month != 'Oct'
16+
with:
17+
repo_token: ${{ secrets.GITHUB_TOKEN }}
18+
issue_message: 'Thank you for your first issue! 😊🕹️'
19+
pr_message: 'Thank you for contributing to this project! 😊🕹️'
20+
- uses: actions/first-interaction@v3
21+
if: env.month == 'Oct'
22+
with:
23+
repo_token: ${{ secrets.GITHUB_TOKEN }}
24+
issue_message: 'Thank you for your first issue! Happy Hacktoberfest!!! 🎃👕🕹️'
25+
pr_message: 'Thank you for contributing to this project. Happy Hacktoberfest!!! 🎃👕🕹️'

.github/workflows/labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: "Pull Request Labeler"
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
triage:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v6

.github/workflows/report-card.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Go Report Card
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
action_goreportcard:
10+
runs-on: ubuntu-latest
11+
name: A job to run go report card
12+
steps:
13+
- name: Go Report Card
14+
uses: creekorful/goreportcard-action@v1.0

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ docs/node_modules/
55
docs/bun.lock
66
.just/remote/
77
.superpowers/
8+
9+
/tlock

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,6 @@ tlock is inspired by [xlock](https://linux.die.net/man/1/xlock), the classic X11
169169

170170
## 📄 License
171171

172-
[MIT](LICENSE) - John Dewey
172+
The [MIT][] License.
173+
174+
[MIT]: LICENSE

auth.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
// Copyright (c) 2026 John Dewey
2+
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to
5+
// deal in the Software without restriction, including without limitation the
6+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
// sell copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19+
// DEALINGS IN THE SOFTWARE.
20+
121
package main
222

323
/*

grid.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
// Copyright (c) 2026 John Dewey
2+
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to
5+
// deal in the Software without restriction, including without limitation the
6+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
// sell copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19+
// DEALINGS IN THE SOFTWARE.
20+
121
package main
222

323
import (

main.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
// Copyright (c) 2026 John Dewey
2+
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to
5+
// deal in the Software without restriction, including without limitation the
6+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
// sell copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19+
// DEALINGS IN THE SOFTWARE.
20+
121
// Package main implements tlock, a terminal lock screen for macOS with
222
// Touch ID and password authentication.
323
package main

0 commit comments

Comments
 (0)