Skip to content
Closed
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
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Releases

on:
push:
pull_request:
# tags:
# - "*"

jobs:
releases:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# - name: Generating commit logs
# run: |
# cd commits && ./generate.sh -t 0
# LOGS_DIR="output-$(date +%Y)-$(date +%W)"
# mv output $LOGS_DIR
# tar -czf mariadb-stats.tgz $LOGS_DIR
- name: Generating pull requests stats
run: |
# calculate week-numbers
WEEK_NUMBER=$(date +%W)
YEAR=$(date +%Y)
TILL="${YEAR}-W${WEEK_NUMBER}"
FROM="${YEAR}-W1"
cd pull-requests && ./get_prs.py -v "$FROM" "$TILL"
mv prs*.csv prs.csv
- uses: ncipollo/release-action@v1
with:
artifacts: "output/mariadb-stats.tgz,pull-requests/prs.csv"
bodyFile: "commits/ci_release.md"
20 changes: 20 additions & 0 deletions ci_release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# A metrics snapshot up to TODO var

The output files include:

```
people-*.csv - breakdown of commits by individual
organisations-*.csv - breakdown of commits by organisations
categories-*.csv - breakdown of commits by category
prs.csv - breakdown of pull request statistics
```

The `maria-stats.tgz` file contains the commit results for the following repositories:

- <https://github.com/mariadb-corporation/libmarias3>
- <https://github.com/mariadb-corporation/mariadb-columnstore-engine>
- <https://github.com/mariadb-corporation/mariadb-connector-c>
- <https://github.com/mariadb/mariadb-docker>
- <https://github.com/mariadb/mariadb_kernel>

The `prs.csv` file is just for the MariaDB Server tree.
Loading