From f18c1061f1758ede745c3f804f2c30561489da59 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 14 Aug 2024 23:43:56 +0300 Subject: [PATCH] chore: update templates and workflows --- .editorconfig | 2 +- .github/CODE_OF_CONDUCT.md | 4 ++-- .github/renovate.json | 4 +++- .github/workflows/pr-lint.yml | 5 +++++ .github/workflows/release-drafter.yml | 4 ++++ .github/workflows/sync-labels.yml | 3 +++ LICENSE.md | 2 +- 7 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.editorconfig b/.editorconfig index b132a53..a007838 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ max_line_length = 160 tab_width = 2 trim_trailing_whitespace = true -[*.php] +[{*.php,*.json}] indent_size = 4 max_line_length = 110 tab_width = 4 diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 56dd9fe..f9edea6 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -65,7 +65,7 @@ Additionally, community organizers are available to help community members engag ## 8. Addressing Grievances -If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify @ivuorinen with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. +If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify @ivuorinen with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies. ## 9. Scope @@ -80,7 +80,7 @@ ismo@ivuorinen.net ## 11. License and attribution -The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/). +The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/). Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy). diff --git a/.github/renovate.json b/.github/renovate.json index 5b9cda3..e46316f 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,4 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["github>ivuorinen/.github:renovate-config"] + "extends": [ + "github>ivuorinen/renovate-config" + ] } diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 36b989c..f4f8670 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -8,6 +8,11 @@ on: pull_request: branches: [master, main] +permissions: + contents: read + packages: read + statuses: write + jobs: SuperLinter: uses: ivuorinen/.github/.github/workflows/pr-lint.yml@main diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 3b3945d..02bb9ce 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -5,6 +5,10 @@ name: Release Drafter on: workflow_call: +permissions: + contents: write + statuses: write + jobs: Draft: uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 4b1488f..f8dbfba 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -13,6 +13,9 @@ on: workflow_call: workflow_dispatch: +permissions: + issues: write + jobs: SyncLabels: uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main diff --git a/LICENSE.md b/LICENSE.md index 1272de8..bffa737 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Ismo Vuorinen +Copyright (c) 2024 Ismo Vuorinen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal