Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: automated update CHANGELOG.md #42

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
63 changes: 63 additions & 0 deletions .github/workflows/issue_comments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Issue comments
on:
issues:
types: [assigned]
jobs:
issue-comments:
runs-on: ubuntu-latest
steps:
- name: get assignees
uses: actions/github-script@v6
id: assignees
with:
script: |
const assignees = (
await github.rest.issues.get({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
})
).data.assignees;
console.log(assignees);
let assignees_list=``;
for (const name in assignees) {
const assigned = assignees[name];
console.log(assigned.login);
assignees_list=`${assignees_list} @${assigned.login}`;
}
return assignees_list
- name: set output comments
if: contains(github.event.issue.labels.*.name, 't:bug')
run: |
comments="Please fix this bug."
echo "comments=$comments" >> $GITHUB_ENV
- name: set output comments
if: contains(github.event.issue.labels.*.name, 't:feature')
run: |
comments="Please develop this feature."
echo "comments=$comments" >> $GITHUB_ENV
- name: set output comments
if: contains(github.event.issue.labels.*.name, 't:help')
run: |
comments="Please explain this question."
echo "comments=$comments" >> $GITHUB_ENV
- name: set output comments
if: contains(github.event.issue.labels.*.name, 't:others')
run: |
comments="Please work on it."
echo "comments=$comments" >> $GITHUB_ENV
- name: get assignees
id: get_assignees
run: |
echo ${{ steps.assignees.outputs.result}}
inputs=${{ steps.assignees.outputs.result}}
echo "result=$inputs" >> $GITHUB_OUTPUT
- name: Create comment
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello ${{ steps.get_assignees.outputs.result}}. ${{ env.comments }}
emoji: 'heart'
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 📑 Changelog

## [v0.1.0-alpha.9](https://github.com/liya2017/axon/tree/v0.1.0-alpha.9) (2023-01-16)

[Full Changelog](https://github.com/liya2017/axon/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)

**Fixed bugs:**

- \[Bug\]: Test [\#43](https://github.com/liya2017/axon/issues/43)

**Closed issues:**

- \[BUG\] \<title\> [\#48](https://github.com/liya2017/axon/issues/48)
- \[Feature\]: Test [\#47](https://github.com/liya2017/axon/issues/47)
- \[Others\]: [\#46](https://github.com/liya2017/axon/issues/46)
- \[Bug\]: [\#45](https://github.com/liya2017/axon/issues/45)
- \[Bug\]: Test [\#44](https://github.com/liya2017/axon/issues/44)

## [v0.1.0-alpha.8](https://github.com/liya2017/axon/tree/v0.1.0-alpha.8) (2022-12-29)

[Full Changelog](https://github.com/liya2017/axon/compare/v0...v0.1.0-alpha.8)

## [v0](https://github.com/liya2017/axon/tree/v0) (2022-12-29)

[Full Changelog](https://github.com/liya2017/axon/compare/v0.1.0-alpha.3...v0)

## [v0.1.0-alpha.3](https://github.com/liya2017/axon/tree/v0.1.0-alpha.3) (2022-12-29)

[Full Changelog](https://github.com/liya2017/axon/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)

## [v0.1.0-alpha.2](https://github.com/liya2017/axon/tree/v0.1.0-alpha.2) (2022-12-16)

[Full Changelog](https://github.com/liya2017/axon/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)

## [v0.1.0-alpha.1](https://github.com/liya2017/axon/tree/v0.1.0-alpha.1) (2022-12-15)

[Full Changelog](https://github.com/liya2017/axon/compare/7977830ff51476e385d9b3b8bc3b1b1421d60854...v0.1.0-alpha.1)