Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @technote-space
* @technote-space
152 changes: 76 additions & 76 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at technote.space@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at technote.space@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
38 changes: 19 additions & 19 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
## Description: 概要
<!-- Please describe purpose of change or related Issue number -->
<!-- 変更の目的 もしくは 関連する Issue 番号 -->
## Changes: 変更内容
<!-- Detail of changes (please add screenshots if applicable) -->
<!-- ビューの変更がある場合はスクショによる比較などがあるとわかりやすい -->
## Expected Impact: 影響範囲
<!-- e.g. I changed this function, which might be affect that function. -->
<!-- この関数を変更したのでこの機能にも影響がある、など -->
## Operating Requirements: 動作要件
<!-- e.g. Environment variables / Dependencies / DB updates -->
<!-- 動作に必要な 環境変数 / 依存関係 / DBの更新 など -->
## Additional context: 補足
<!-- e.g. Point or review / Cautions when trying in a local environment -->
<!-- レビューをする際に見てほしい点、ローカル環境で試す際の注意点、など -->
## Description: 概要
<!-- Please describe purpose of change or related Issue number -->
<!-- 変更の目的 もしくは 関連する Issue 番号 -->

## Changes: 変更内容
<!-- Detail of changes (please add screenshots if applicable) -->
<!-- ビューの変更がある場合はスクショによる比較などがあるとわかりやすい -->

## Expected Impact: 影響範囲
<!-- e.g. I changed this function, which might be affect that function. -->
<!-- この関数を変更したのでこの機能にも影響がある、など -->

## Operating Requirements: 動作要件
<!-- e.g. Environment variables / Dependencies / DB updates -->
<!-- 動作に必要な 環境変数 / 依存関係 / DBの更新 など -->

## Additional context: 補足
<!-- e.g. Point or review / Cautions when trying in a local environment -->
<!-- レビューをする際に見てほしい点、ローカル環境で試す際の注意点、など -->
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ categories:
- title: ':sparkles: All Changes'
labels:
- 'Type: Release'
exclude-lables:
exclude-labels:
- 'dependencies'
template: |
## What’s Changed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: Check package version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Check package version
Expand Down
47 changes: 39 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,34 @@ jobs:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Cache node modules
- uses: technote-space/get-diff-action@v1
with:
PREFIX_FILTER: |
src/
__tests__/
SUFFIX_FILTER: .js
FILES: .eslintrc
- name: Get Yarn Cache Directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
if: env.GIT_DIFF
- name: Cache node dependencies
uses: actions/cache@v1
with:
path: ~/.cache/yarn
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
if: env.GIT_DIFF
- name: Install Package dependencies
run: yarn install
if: env.GIT_DIFF
- name: Check code style
run: yarn lint
run: yarn eslint ${{ env.GIT_DIFF }}
if: env.GIT_DIFF
- uses: 8398a7/action-slack@v1
with:
type: failure
Expand All @@ -43,30 +57,47 @@ jobs:
matrix:
node: ['10', '11', '12']
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 3
- uses: technote-space/get-diff-action@v1
with:
PREFIX_FILTER: |
src/
__tests__/
SUFFIX_FILTER: .js
FILES: |
yarn.lock
jest.config.js
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
if: env.GIT_DIFF || github.event_name == 'push'
- name: Get Yarn Cache Directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
if: env.GIT_DIFF || github.event_name == 'push'
- name: Cache node dependencies
uses: actions/cache@v1
with:
path: ~/.cache/yarn
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
if: env.GIT_DIFF || github.event_name == 'push'
- name: Install Package dependencies
run: yarn install
if: env.GIT_DIFF || github.event_name == 'push'
- name: Run tests
run: yarn cover
if: env.GIT_DIFF || github.event_name == 'push'
- name: Codecov
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
COVERAGE_FILE: ./coverage/lcov.info
if: matrix.node == '12'
if: matrix.node == '12' && (env.GIT_DIFF || github.event_name == 'push')
- uses: 8398a7/action-slack@v1
with:
type: failure
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue_opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Assign issues to project
uses: alex-page/github-project-automation-plus@v0.0.3
uses: technote-space/create-project-card-action@v1
with:
project: Backlog
column: To do
repo-token: ${{ secrets.GITHUB_TOKEN }}
PROJECT: Backlog
COLUMN: To do
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

assignAuthor:
name: Assign author to issue
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr_opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Assign PullRequest to Project
uses: alex-page/github-project-automation-plus@v0.0.3
uses: technote-space/create-project-card-action@v1
with:
project: Backlog
column: To do
repo-token: ${{ secrets.GITHUB_TOKEN }}
PROJECT: Backlog
COLUMN: To do
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

assignAuthor:
name: Assign author to PR
Expand All @@ -28,6 +28,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: PR Labeler
uses: technote-fork/pr-labeler-action@master
env:
uses: technote-fork/pr-labeler-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading