mirror of
https://gitea.com/Lydanne/pr-extract-issues.git
synced 2025-09-02 17:09:15 +08:00
fix
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -5950,7 +5950,7 @@ async function run() {
|
|||||||
let issues = [];
|
let issues = [];
|
||||||
const way = core.getInput('way');
|
const way = core.getInput('way');
|
||||||
if (way === 'title') {
|
if (way === 'title') {
|
||||||
let arr = title.split('');
|
let arr = title.split(' ');
|
||||||
arr.forEach(it => {
|
arr.forEach(it => {
|
||||||
if (it.startsWith('#')) {
|
if (it.startsWith('#')) {
|
||||||
issues.push(it.replace('#', ''));
|
issues.push(it.replace('#', ''));
|
||||||
@@ -5973,7 +5973,7 @@ async function run() {
|
|||||||
});
|
});
|
||||||
commits.forEach(commit => {
|
commits.forEach(commit => {
|
||||||
let message = commit.commit.message;
|
let message = commit.commit.message;
|
||||||
let messageArr = message.split('');
|
let messageArr = message.split(' ');
|
||||||
messageArr.forEach(it => {
|
messageArr.forEach(it => {
|
||||||
if (it.startsWith('#')) {
|
if (it.startsWith('#')) {
|
||||||
issues.push(it.replace('#', ''));
|
issues.push(it.replace('#', ''));
|
||||||
|
@@ -20,7 +20,7 @@ async function run() {
|
|||||||
let issues = [];
|
let issues = [];
|
||||||
const way = core.getInput('way');
|
const way = core.getInput('way');
|
||||||
if (way === 'title') {
|
if (way === 'title') {
|
||||||
let arr = title.split('');
|
let arr = title.split(' ');
|
||||||
arr.forEach(it => {
|
arr.forEach(it => {
|
||||||
if (it.startsWith('#')) {
|
if (it.startsWith('#')) {
|
||||||
issues.push(it.replace('#', ''));
|
issues.push(it.replace('#', ''));
|
||||||
@@ -43,7 +43,7 @@ async function run() {
|
|||||||
});
|
});
|
||||||
commits.forEach(commit => {
|
commits.forEach(commit => {
|
||||||
let message = commit.commit.message;
|
let message = commit.commit.message;
|
||||||
let messageArr = message.split('');
|
let messageArr = message.split(' ');
|
||||||
messageArr.forEach(it => {
|
messageArr.forEach(it => {
|
||||||
if (it.startsWith('#')) {
|
if (it.startsWith('#')) {
|
||||||
issues.push(it.replace('#', ''));
|
issues.push(it.replace('#', ''));
|
||||||
|
Reference in New Issue
Block a user