Compare commits

...

8 Commits

Author SHA1 Message Date
元凛
a610082f8a docs: update changelog 2024-02-18 14:19:14 +08:00
xrkffgg
556cc4f66e feat: add assignees to find-issues (#192)
* feat: add assignees to find-issues

* docs: update
2024-02-18 14:15:52 +08:00
buffcode
e0e6d4a469 docs: document default issue filtering (#191) 2024-02-18 13:52:38 +08:00
Daniel Compton
fac636e8a9 chore: Bump runtime to node20 (#190) 2024-02-18 13:51:26 +08:00
xrkffgg
a0d1612783 chore: Update ci.yml 2024-02-18 13:50:22 +08:00
49a9184d18 chore: pins types-ramda to 0.29.4 (#185)
ref: https://github.com/ramda/ramda/issues/3415
2023-10-24 10:13:31 +08:00
元凛
5457ae8d7c chore: update dist & changelog 2023-08-16 13:29:01 +08:00
Just Thomas Hiorth Misund
0071d48bea fix: assign assignees to the assignees field instead of body field (#163) 2023-08-16 13:24:08 +08:00
10 changed files with 27954 additions and 9 deletions

View File

@@ -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

View File

@@ -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`

View File

@@ -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

View File

@@ -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: ''},
] ]
``` ```

View File

@@ -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
View File

@@ -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;

View File

@@ -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"
} }
} }

View File

@@ -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,
}; };

View File

@@ -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) {

27926
yarn.lock Normal file

File diff suppressed because it is too large Load Diff