Skip to content

Commit

Permalink
BREAKING CHANGE: transfer repository to hakadoriya organization (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent authored Jan 5, 2025
2 parents 3800eba + c7a2c8c commit 5b50436
Show file tree
Hide file tree
Showing 11 changed files with 325 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# ref: https://docs.github.com/ja/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners
* @kunitsucom/owners
* @hakadoriya/owner
17 changes: 5 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
Expand All @@ -16,13 +11,11 @@ updates:
commit-message:
prefix: "ci(github-actions): "
labels:
- "build"
- "dependencies"
- "github_actions"
- "ci"
assignees:
- "ginokent"
- "hakadoriya/owner"
reviewers:
- "ginokent"
- "hakadoriya/owner"
groups:
dependencies:
patterns:
Expand Down
6 changes: 4 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@
> *Please fill in the ticket or issue number.*
> > Example:
> >
> > #3
> > #1
## What's changed

> **Note**
> *Please explain what changes this pull request will make.*
> > Example:
> >
> > * Added functionality to perform 'bar' on 'foo'.
> > - Added functionality to perform 'bar' on 'foo'.
## Check List

- [ ] Assign labels
- [ ] Assign reviewers
- [ ] Assign assignees
- [ ] Add appropriate test cases

## Remark
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ref. https://zenn.dev/snowcait/articles/d6bc5eafd8ab75
name: 'Auto Assign'
name: auto-assign

on:
pull_request:
Expand All @@ -9,16 +8,13 @@ on:
- reopened

jobs:
assign:
name: Auto Assign
if: github.actor != 'dependabot[bot]'
auto-assign:
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- if: ${{ toJSON(github.event.pull_request.assignees) == '[]' }}
run: gh pr edit "${NUMBER}" --add-assignee "${ASSIGNEE}"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
ASSIGNEE: ${{ github.event.pull_request.user.login }}
run: |
gh pr --repo ${{ github.repository }} edit ${{ github.event.pull_request.number }} --add-assignee "${{ github.event.pull_request.user.login }}"
24 changes: 12 additions & 12 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: example

on:
push:
# NO paths-ignore
# NO paths filter
pull_request:
# NO paths-ignore
# NO paths filter
workflow_dispatch:

jobs:
paths-ignore:
paths-filter:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.paths-ignore.outputs.skip }}
skip: ${{ steps.paths-filter.outputs.skip }}
steps:
- uses: kunitsucom/github-actions-paths-ignore-alternative@develop
id: paths-ignore
- uses: hakadoriya/github-actions-paths-filter-alternative@develop
id: paths-filter
with:
paths: |-
# If any of these regular expressions match, it returns skip=false
Expand All @@ -30,17 +30,17 @@ jobs:
# ref. https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution#overview
not-skip:
runs-on: ubuntu-latest
needs: paths-ignore
if: ${{ needs.paths-ignore.outputs.skip != 'true' }}
needs: paths-filter
if: ${{ needs.paths-filter.outputs.skip != 'true' }}
steps:
- name: "if not skip"
run: |
echo "needs.paths-ignore.outputs.skip: ${{ needs.paths-ignore.outputs.skip }}"
echo "needs.paths-filter.outputs.skip: ${{ needs.paths-filter.outputs.skip }}"
skip:
runs-on: ubuntu-latest
needs: paths-ignore
if: ${{ needs.paths-ignore.outputs.skip == 'true' }}
needs: paths-filter
if: ${{ needs.paths-filter.outputs.skip == 'true' }}
steps:
- name: "if skip"
run: |
echo "needs.paths-ignore.outputs.skip: ${{ needs.paths-ignore.outputs.skip }}"
echo "needs.paths-filter.outputs.skip: ${{ needs.paths-filter.outputs.skip }}"
10 changes: 6 additions & 4 deletions .github/workflows/label-checker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: label-checker

# Dependabot
# # Dependabot
# gh label create --force "dependencies" --description "Pull requests that update a dependency file" --color 0366D6
# gh label create --force "go" --description "Pull requests that update Go code" --color 16E2E2
# gh label create --force "github_actions" --description "Pull requests that update GitHub Actions code" --color 000000
# gh label create --force "docker" --description "Pull requests that update Docker code" --color 21CEFF

# Commit prefix
# # Renovate
# gh label create --force "renovate" --description "Renovate" --color 009485

# # Commit prefix
# gh label create --force "BREAKING CHANGE" --description "BREAKING CHANGES" --color FF0303
# gh label create --force "build" --description "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)" --color 5319E7
# gh label create --force "ci" --description "Changes to our CI configuration files and scripts (examples: CircleCi, SauceLabs)" --color 53C4EE
Expand All @@ -33,8 +36,7 @@ env:
LABELS: "BREAKING CHANGE,build,ci,docs,feat,fix,perf,refactor,test,chore"

jobs:
check:
name: Check labels
label-checker:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/task-list-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,14 @@ on:
- synchronize

jobs:
check:
name: Check task list
task-list-checker:
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
contents: read
pull-requests: read
statuses: write
defaults:
run:
shell: bash
steps:
- name: Check for incomplete task list items
uses: Shopify/task-list-checker@7cab3e5a969a34f8c553974bc6f8940d8c3978de # ref. https://github.com/Shopify/task-list-checker
- uses: hakadoriya/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/typo-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: typo-checker
# ^^^^^^^^^^^^
# https://github.com/organization/repository/workflows/typo-checker/badge.svg
# ^^^^^^^^^^^^

on:
pull_request:
workflow_dispatch:
inputs: {}

# NOTE: If commit & push continuously, cancel the workflow other than the latest commit.
concurrency:
group: ${{ github.workflow }}-${{ github.base_ref }}-${{ github.head_ref }}-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write
contents: read

env:
WORKDIR: .

defaults:
run:
shell: bash

jobs:
typo-checker: # NOTE: for Branch protection rule `Status checks that are required.`
runs-on: ubuntu-latest # ref. https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- uses: actions/checkout@v4
- name: DEBUG
shell: bash
run: |
cat <<'DEBUG_DOC'
== DEBUG =======================================================
github.ref: ${{ github.ref }}
github.event_name: ${{ github.event_name }}
-- toJSON(github.event.inputs) ---------------------------------
${{ toJSON(github.event.inputs) }}
-- toJSON(github) ----------------------------------------------
${{ toJSON(github) }}
================================================================
DEBUG_DOC
- name: Check spelling
uses: crate-ci/typos@master
Loading

0 comments on commit 5b50436

Please sign in to comment.