mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a610082f8a | ||
![]() |
556cc4f66e | ||
![]() |
e0e6d4a469 | ||
![]() |
fac636e8a9 | ||
![]() |
a0d1612783 | ||
![]() |
49a9184d18 | ||
![]() |
5457ae8d7c | ||
![]() |
0071d48bea |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x]
|
node-version: [20.x]
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
13
CHANGELOG.md
13
CHANGELOG.md
@@ -7,6 +7,19 @@
|
|||||||
🛠 refactor
|
🛠 refactor
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## v3.6.0
|
||||||
|
|
||||||
|
`2024.02.18`
|
||||||
|
|
||||||
|
- 🚀 feat: add assignees to find-issues. [#192](https://github.com/actions-cool/issues-helper/pull/192)
|
||||||
|
- 💄 chore: Bump runtime to node20. [#190](https://github.com/actions-cool/issues-helper/pull/190) [@danielcompton](https://github.com/danielcompton)
|
||||||
|
|
||||||
|
## v3.5.2
|
||||||
|
|
||||||
|
`2023.08.16`
|
||||||
|
|
||||||
|
- 🐞 fix: return `issue-assignees` in the correct output field for `get-issue`. [#163](https://github.com/actions-cool/issues-helper/pull/163) [@misund](https://github.com/misund)
|
||||||
|
|
||||||
## v3.5.1
|
## v3.5.1
|
||||||
|
|
||||||
`2023.07.27`
|
`2023.07.27`
|
||||||
|
@@ -975,11 +975,12 @@ Find the current repository, the creator is k , the title contains `this` , the
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
[
|
[
|
||||||
{number: 1, auth: 'x', body: 'xxx', body: 'xxx', state: 'open', created: '', updated: ''},
|
{number: 1, auth: 'x', body: 'xxx', body: 'xxx', state: 'open', assignees: ['x1', 'x2'], created: '', updated: ''},
|
||||||
{number: 2, auth: 'x', body: 'xxx', body: 'xxx', state: 'closed', created: '', updated: ''},
|
{number: 2, auth: 'x', body: 'xxx', body: 'xxx', state: 'closed', assignees: ['x1', 'x2'], created: '', updated: ''},
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- `issue-state`: The default is `open`. Other values are: `closed`, `all`
|
||||||
- `direction` defaults to ascending order, only when `desc` is set, descending order will be returned
|
- `direction` defaults to ascending order, only when `desc` is set, descending order will be returned
|
||||||
- The `created` `updated` in the returned array, determined by the environment, will be UTC +0
|
- The `created` `updated` in the returned array, determined by the environment, will be UTC +0
|
||||||
- `exclude-labels`: When set to include `$exclude-empty`, no label issue can be excluded
|
- `exclude-labels`: When set to include `$exclude-empty`, no label issue can be excluded
|
||||||
|
@@ -977,8 +977,8 @@ jobs:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
[
|
[
|
||||||
{number: 1, auth: 'x', body: 'xxx', body: 'xxx', state: 'open', created: '', updated: ''},
|
{number: 1, auth: 'x', body: 'xxx', body: 'xxx', state: 'open', assignees: ['x1', 'x2'], created: '', updated: ''},
|
||||||
{number: 2, auth: 'x', body: 'xxx', body: 'xxx', state: 'closed', created: '', updated: ''},
|
{number: 2, auth: 'x', body: 'xxx', body: 'xxx', state: 'closed', assignees: ['x1', 'x2'], created: '', updated: ''},
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -119,5 +119,5 @@ outputs:
|
|||||||
description: 'Check issue'
|
description: 'Check issue'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: node16
|
using: node20
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -16599,6 +16599,7 @@ function doFindIssues() {
|
|||||||
title: issue.title,
|
title: issue.title,
|
||||||
body: issue.body,
|
body: issue.body,
|
||||||
state: issue.state,
|
state: issue.state,
|
||||||
|
assignees: issue.assignees.map(val => val.login),
|
||||||
created: issue.created_at,
|
created: issue.created_at,
|
||||||
updated: issue.updated_at,
|
updated: issue.updated_at,
|
||||||
};
|
};
|
||||||
@@ -16920,7 +16921,7 @@ function doGetIssue() {
|
|||||||
const labelsString = labels.length ? labels.map(({ name }) => name).join(',') : '';
|
const labelsString = labels.length ? labels.map(({ name }) => name).join(',') : '';
|
||||||
core.setOutput('issue-labels', labelsString);
|
core.setOutput('issue-labels', labelsString);
|
||||||
const assigneesString = assignees.length ? assignees.map(({ login }) => login).join(',') : '';
|
const assigneesString = assignees.length ? assignees.map(({ login }) => login).join(',') : '';
|
||||||
core.setOutput('issue-body', assigneesString);
|
core.setOutput('issue-assignees', assigneesString);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.doGetIssue = doGetIssue;
|
exports.doGetIssue = doGetIssue;
|
||||||
|
@@ -60,5 +60,8 @@
|
|||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"simple-git": "^2.46.0",
|
"simple-git": "^2.46.0",
|
||||||
"typescript": "^4.1.3"
|
"typescript": "^4.1.3"
|
||||||
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"types-ramda": "0.29.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -272,6 +272,7 @@ export async function doFindIssues() {
|
|||||||
title: issue.title,
|
title: issue.title,
|
||||||
body: issue.body,
|
body: issue.body,
|
||||||
state: issue.state,
|
state: issue.state,
|
||||||
|
assignees: issue.assignees.map(val => val.login),
|
||||||
created: issue.created_at,
|
created: issue.created_at,
|
||||||
updated: issue.updated_at,
|
updated: issue.updated_at,
|
||||||
};
|
};
|
||||||
|
@@ -104,7 +104,7 @@ export async function doGetIssue() {
|
|||||||
const labelsString = labels.length ? labels.map(({ name }) => name).join(',') : '';
|
const labelsString = labels.length ? labels.map(({ name }) => name).join(',') : '';
|
||||||
core.setOutput('issue-labels', labelsString);
|
core.setOutput('issue-labels', labelsString);
|
||||||
const assigneesString = assignees.length ? assignees.map(({ login }) => login).join(',') : '';
|
const assigneesString = assignees.length ? assignees.map(({ login }) => login).join(',') : '';
|
||||||
core.setOutput('issue-body', assigneesString);
|
core.setOutput('issue-assignees', assigneesString);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function doLockIssue(issueNumber?: number) {
|
export async function doLockIssue(issueNumber?: number) {
|
||||||
|
Reference in New Issue
Block a user