From a41c5a8af5de90e84cbd2e434b019fb0db27a114 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Thu, 16 Feb 2023 16:33:35 -0800 Subject: [PATCH] Automate contributions --- .github/workflows/contributions.yaml | 41 ++++++++++++++++++++++++++++ .mailmap | 9 ++++++ AUTHORS | 0 README.md | 6 ++++ 4 files changed, 56 insertions(+) create mode 100644 .github/workflows/contributions.yaml create mode 100644 .mailmap create mode 100644 AUTHORS diff --git a/.github/workflows/contributions.yaml b/.github/workflows/contributions.yaml new file mode 100644 index 0000000..ca4b5e4 --- /dev/null +++ b/.github/workflows/contributions.yaml @@ -0,0 +1,41 @@ +name: Contributions +on: + push: + branches: + - '**' + tags-ignore: + - '**' + +jobs: + contrib-readme-job: + permissions: + contents: write + runs-on: ubuntu-latest + env: + CI_COMMIT_AUTHOR: github-actions[bot] + CI_COMMIT_EMAIL: <41898282+github-actions[bot]@users.noreply.github.com> + CI_COMMIT_MESSAGE: Update AUTHORS + name: A job to automate contrib in readme + steps: + - name: Contribute List + uses: akhilmhdh/contributors-readme-action@v2.3.6 + with: + use_username: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Update AUTHORS + run: | + git config --global log.mailmap true + git log --reverse '--format=%aN <%aE>' | cat -n | sort -uk2 | sort -n | cut -f2- >AUTHORS + + - name: Commit and push AUTHORS + run: | + git pull + git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" + git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" + git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}" + git push diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000..d5aa596 --- /dev/null +++ b/.mailmap @@ -0,0 +1,9 @@ +Andrew W. Buchanan +Davide Romanini +Davide Romanini +Michael Fitzurka +Timmy Welch +beville <(no author)@6c5673fe-1810-88d6-992b-cd32ca31540c> +beville +beville +beville diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index a2b4454..42cba24 100644 --- a/README.md +++ b/README.md @@ -61,3 +61,9 @@ choco install comictagger 2. Clone this repository `git clone https://github.com/comictagger/comictagger.git` 3. `pip3 install -r requirements_dev.txt` 7. `pip3 install .` or `pip3 install .[GUI]` + + +## Contributors + + +