Skip to content

Commit

Permalink
chore: 0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
RSS1102 committed Sep 20, 2024
1 parent 542020a commit 5efe741
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 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.12
uses: vegetables-school/send-relevant-comment-action@v0.0.13
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.13

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

### 🏡 Chore

- 0.0.12 ([542020a](https://github.com/vegetables-school/send-relevant-comment-action/commit/542020a))

### ❤️ Contributors

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

## v0.0.12

[compare changes](https://github.com/vegetables-school/send-relevant-comment-action/compare/v0.0.11...v0.0.12)
Expand Down
6 changes: 5 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.12",
"version": "0.0.13",
"author": "vegetables-school",
"private": true,
"homepage": "https://github.com/vegetables-school/send-relevant-comment-action",
Expand Down
6 changes: 5 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import * as core from '@actions/core'
export const parsePrOwnRepoRelate = (content?: string | null) => {
const regex = /#(\d+)/g
const matches = content?.match(regex)
return matches ? matches.map(match => parseInt(match.replace('#', ''))) : []
const result = matches
? matches.map(match => parseInt(match.replace('#', '')))
: []
core.info(`parsePrOwnRepoRelate: ${result}`)
return result
}

/**
Expand Down

0 comments on commit 5efe741

Please sign in to comment.