Skip to content

Commit

Permalink
add CHANGELOG ci
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Luar <[email protected]>
  • Loading branch information
luarss committed Nov 10, 2024
1 parent 95b010b commit 438799a
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/changelog_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
if __name__ == "__main__":
with open("../../CHANGELOG.md") as f:
temp = f.readlines()

# divide the file into four categories
commit, name, date, msg = [], [], [], []

# regex is <commit>\t<name>\t<date>\t<msg>
for line in temp:
line = line.split('\t')
commit.append(line[0])
name.append(line[1])
date.append(line[2])
msg.append(line[3])

# first detect the number of unique year-month combo
date_year_month = [x[:7] for x in date]
unique = sorted(list(set(date_year_month)), reverse=True)

# based on this write from the reverse order
final_lines = []

for year_month in unique:
# first write the header
final_lines.append(f"# {year_month}\n")

# loop through and stop when the year_month is lesser
for idx in range(len(date)):
if date[idx][:7] == year_month:
l = f"- {commit[idx]} {name[idx]} {date[idx]} {msg[idx]}"
final_lines.append(l)

with open('../../CHANGELOG.md', 'w') as f:
for l in final_lines:
f.write(l)
43 changes: 43 additions & 0 deletions .github/workflows/ci-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Update Changelog

on:
workflow_dispatch:
pull_request:
branches: [ "master" ] # Temporarily to test

jobs:
updateChangeLog:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Create Changelog file
run: |
make changelog
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_PAT }}
commit-message: Update report
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: true
base: master
branch: update-chglog
delete-branch: true
title: 'Changelog update for ${{ env.MONTH }}/${{ env.YEAR }}'
body: |
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
docs
assignees: luarss
reviewers: luarss
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 2024-11
- 95b010b Jack Luar 2024-11-10 * add frontend into docker-compose * RAG_VERSION now defaults to git commit hash
- 260bba5 Song Luar 2024-11-11 DeepEval CI integration (#86)
- b850af4 Palaniappan R 2024-11-09 Fix muliple tool calling (#89)
- bb5a300 Song Luar 2024-11-08 Evaluation module refactor (#85)
# 2024-10
- dce7db2 dependabot[bot] 2024-10-31 Build(deps): Bump langchain from 0.2.12 to 0.3.0 in /backend in the pip group across 1 directory (#83)
- a0f952d Song Luar 2024-10-30 repo stats ci (#81)
- 94dcc78 Song Luar 2024-10-30 Revert docker-compose.yml (#80)
- 6ecddc0 Song Luar 2024-10-27 Update docs (#79)
- 8f65a79 Song Luar 2024-10-27 Pyproject packaging (#74)
- d040878 Song Luar 2024-10-27 Move build docs functionality to workflow (upload.yml) 2 (#78)
- 84bfc37 Song Luar 2024-10-26 Remove unused data dir (#76)
- 322d569 Song Luar 2024-10-26 Smoke tests (#73)
- cb86b3e Palaniappan R 2024-10-10 Tool changes (#63)
- b229e6c Song Luar 2024-10-10 Add link to wiki and citation (#72)
# 2024-09
- 8cef3ad Song Luar 2024-09-01 Manpages HF integration (#66)
- a84380f Song Luar 2024-09-01 Upload manpages CI (#65)
# 2024-08
- a5c439f Palaniappan R 2024-08-24 Add chat history, Ollama support (#54)
- ddac14d Song Luar 2024-08-16 Upgrade streamlit vers for security updates (#53)
- dce4611 Song Luar 2024-08-08 Update requirements.txt to remove nltk (#48)
- 7ff3bff Palaniappan R 2024-08-08 Agent updates (#46)
# 2024-07
- a05863a dependabot[bot] 2024-07-25 Build(deps): Bump langchain-community from 0.2.7 to 0.2.9 in /backend (#45)
- 56be656 Palaniappan R 2024-07-24 Agent Retriever Updates (#43)
- 5ad41d4 Palaniappan R 2024-07-15 Fix: Add a text-splitter, fix the graph's tool router (#42)
- 79d38f4 Song Luar 2024-07-15 Feat: Automate building of manpages (#31)
- 53af4db Palaniappan R 2024-07-15 Add an agentic graph workflow (#30)
- 715dfce Song Luar 2024-07-12 Feat: add pre-commits (#35)
- 0b80442 Song Luar 2024-07-11 Feat: mypy ci (#26)
- 2807dd2 Song Luar 2024-07-10 Feat: Backend docker CI (#28)
- 5ad0ed6 ProCodec 2024-07-10 Ruff pep8 fix N806 (#23)
- 8b940f2 Song Luar 2024-07-10 Docs: Update README.md (#22)
- f64c791 ProCodec 2024-07-09 Feature: Add Ruff GitHub Workflow (#12)
- 8ec4b28 ProCodec 2024-07-08 Fix: Human Eval for new endpoints (#29)
- 2050f6e Palaniappan R 2024-07-05 Add support for multiple endpoints (#21)
# 2024-06
- b60bd24 ProCodec 2024-06-29 feat: added human evaluation (#11)
- 1bf1ee7 ProCodec 2024-06-29 feat: Add Streamlit Frontend (#10)
- f9e8d05 Song Luar 2024-06-29 Feat: Mypy checks (#15)
- 23f6a31 Palaniappan R 2024-06-22 Fix local build (#13)
- 6841044 Palaniappan R 2024-06-21 Add an updated hybrid retriever (#6)
- 58c1a58 Palaniappan R 2024-06-14 feat: add ensemble retriever backend (#2)
- 6197b65 luarss 2024-06-06 Initial commit
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ docker-up:

docker-down:
@docker compose down --remove-orphans

changelog:
@git log --pretty=format:"%h%x09%an%x09%ad%x09%s" --date=short --since="2024-06-01" > CHANGELOG.md
@cd .github/workflows && python changelog_report.py

0 comments on commit 438799a

Please sign in to comment.