From 4088b3db36636a885e269f0b360935f817db4014 Mon Sep 17 00:00:00 2001 From: "Tatsuya Okayama (blendthink)" Date: Wed, 25 Oct 2023 08:30:50 +0900 Subject: [PATCH 1/3] docs: Add "How to contribute" section --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5d7ee39..7499a7c 100644 --- a/README.md +++ b/README.md @@ -59,3 +59,13 @@ linter: ``` In the above example, we have customized various lint rules by adjusting their settings in the `analysis_options.yaml` file. You can modify these settings according to your project's specific needs and coding style preferences. + +## How to contribute + +See [Contributor Guide] for contributing conventions. + +### Contributors + + + +[Contributor Guide]: docs/contributing/CONTRIBUTING.md From 2f30a005afe0a8eb0cd1965365b4f333f9ed0784 Mon Sep 17 00:00:00 2001 From: "Tatsuya Okayama (blendthink)" Date: Wed, 25 Oct 2023 08:40:04 +0900 Subject: [PATCH 2/3] ci: Create workflow for updating contributors --- .github/workflows/update-contributors.yaml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update-contributors.yaml diff --git a/.github/workflows/update-contributors.yaml b/.github/workflows/update-contributors.yaml new file mode 100644 index 0000000..57d6e74 --- /dev/null +++ b/.github/workflows/update-contributors.yaml @@ -0,0 +1,27 @@ +name: Update Contributors +on: + workflow_dispatch: + push: + branches: + - 'main' + +env: + UPDATE_CONTRIBUTORS_BRANCH: update-contributors + +jobs: + add-contributors: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Delete old branch (If it exists) + run: git push origin --delete ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} + continue-on-error: true + - name: Create and push new branch + run: | + git branch ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} + git push origin ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} + - uses: BobAnkh/add-contributors@v0.2.2 + with: + ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} + PULL_REQUEST: 'main' From d52c8d405a2fbe124fac6db516567355fcf9e061 Mon Sep 17 00:00:00 2001 From: blendthink <32213113+blendthink@users.noreply.github.com> Date: Wed, 1 Nov 2023 18:01:45 +0900 Subject: [PATCH 3/3] improve: Add the URL of GitHub Action Co-authored-by: Kanta Mori <70502790+morikann@users.noreply.github.com> --- .github/workflows/update-contributors.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-contributors.yaml b/.github/workflows/update-contributors.yaml index 57d6e74..784e670 100644 --- a/.github/workflows/update-contributors.yaml +++ b/.github/workflows/update-contributors.yaml @@ -20,6 +20,7 @@ jobs: run: | git branch ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} git push origin ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} + # https://github.com/BobAnkh/add-contributors - uses: BobAnkh/add-contributors@v0.2.2 with: ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}