Skip to content

Commit

Permalink
get PR title as metadata instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed Apr 29, 2024
1 parent ca2701e commit 3c4d913
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# This workflow will add a changelog to the repository when a new commit is pushed to the main branch.
# E.g., manually edit the commit message to align with conventional commit messages, such as:
# feat(database): add new indexing capabilities
# This update introduces advanced indexing options for handling complex queries more efficiently.

name: Changelog Update

on:
Expand Down Expand Up @@ -30,10 +25,15 @@ jobs:
- name: Install conventional-changelog-cli
run: npm install -g conventional-changelog-cli

- name: Get PR title
id: pr_title
run: echo "::set-output name=title::$(jq --raw-output .pull_request.title $GITHUB_EVENT_PATH)"

- name: Generate changelog diff
run: |
git fetch origin main:main
conventional-changelog -p angular -i CHANGELOG.md -s -r 0 > changelog_diff.md
echo "### ${GITHUB_REF##*/} - ${{ steps.pr_title.outputs.title }}" >> changelog_diff.md
echo "::set-output name=changelog::$(cat changelog_diff.md)"
- name: Commit and push changelog update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
uses: nosborn/[email protected]
with:
files: ./
config_file: .markdownlint.yaml
config_file: .markdownlint.yaml
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ issues:
- "^.*SA1019.*$" # Excluding SA1019 errors

linters-settings:
go-version-checker:
min-version: "1.22"
revive:
rules:
- name: exported
Expand Down
2 changes: 1 addition & 1 deletion contrib/githooks/pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ repos:
hooks:
- id: validate-toml
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.34.0
rev: v0.39.0
hooks:
- id: markdownlint

0 comments on commit 3c4d913

Please sign in to comment.