Skip to content

Commit

Permalink
chore: 0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
RSS1102 committed Sep 20, 2024
1 parent 98bab54 commit 542020a
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/send-relevant-notifications-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: vegetables-school/send-relevant-comment-action@v0.0.11
uses: vegetables-school/send-relevant-comment-action@v0.0.12
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
custom-comment: 'Hello, this is a custom comment'
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Changelog


## v0.0.12

[compare changes](https://github.com/vegetables-school/send-relevant-comment-action/compare/v0.0.11...v0.0.12)

### 🏡 Chore

- 0.0.11 ([98bab54](https://github.com/vegetables-school/send-relevant-comment-action/commit/98bab54))

### ❤️ Contributors

- 阿Cai ([@RSS1102](http://github.com/RSS1102))

## v0.0.11

[compare changes](https://github.com/vegetables-school/send-relevant-comment-action/compare/v0.0.10...v0.0.11)
Expand Down
27 changes: 26 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@vegetables-school/send-relevant-comment-action",
"description": "Send comment of relevant issues and PR within the PR",
"license": "MIT",
"version": "0.0.11",
"version": "0.0.12",
"author": "vegetables-school",
"private": true,
"homepage": "https://github.com/vegetables-school/send-relevant-comment-action",
Expand Down
3 changes: 3 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as core from '@actions/core'

/**
* @description 解析pr commit、review、comment内包含本repo的issue或者pr的编号(如#1)
* @param {string} content body,title
Expand All @@ -16,5 +18,6 @@ export const parsePrOwnRepoRelate = (content?: string | null) => {
*/

export const mergeDeduplicatedArr = (arr1: number[], arr2: number[]) => {
core.info(`arr1: ${arr1}, arr2: ${arr2}`)
return Array.from(new Set([...arr1, ...arr2]))
}

0 comments on commit 542020a

Please sign in to comment.