Skip to content

Commit bb266ff

Browse files
MrDogeBroAlex Page
andauthored
Fix Issue Comment Error (#72)
Co-authored-by: MrDogeBro <MrDogeBro@users.noreply.github.com> Co-authored-by: Alex Page <alex@alexpage.com.au>
1 parent 0e9495c commit bb266ff

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
automate-project-columns:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: alex-page/github-project-automation-plus@v0.8.0
32+
- uses: alex-page/github-project-automation-plus@v0.8.1
3333
with:
3434
project: Backlog
3535
column: Triage
@@ -51,7 +51,7 @@ jobs:
5151
automate-project-columns:
5252
runs-on: ubuntu-latest
5353
steps:
54-
- uses: alex-page/github-project-automation-plus@v0.8.0
54+
- uses: alex-page/github-project-automation-plus@v0.8.1
5555
with:
5656
project: Backlog
5757
column: To do
@@ -112,11 +112,12 @@ You may need to enable policy settings to allow running workflows from forks. Pl
112112
113113
## Release History
114114
115+
- v0.8.1 - Fix `issue_coment` error with automation
115116
- v0.8.0 - Add new action type `add`
116117
- v0.7.1 - Move Node.js version back to v12
117118
- v0.7.0 - Update documentation and dependencies
118119
- v0.6.0 - Add support for `pull_request_target` and `pull_request_review`
119-
- v0.5.1 - Fix get event data from issue_coment
120+
- v0.5.1 - Fix get event data from `issue_coment`
120121
- v0.5.0 - Add option to `delete` card
121122
- v0.4.0 - Add `issue_comment` event
122123
- v0.3.0 - Add `pull_request_target` event

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-project-automation-plus",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "🤖 Automate GitHub Project cards with any webhook event",
55
"private": true,
66
"main": "dist/index.js",

src/generate-project-query.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @param {string} eventName - The current event name
66
* @param {string} project - The project to find
77
*/
8-
const projectQuery = (url, eventName, project) => (
9-
`query {
8+
const projectQuery = (url, eventName, project) =>
9+
`query {
1010
resource( url: "${url}" ) {
11-
... on ${eventName === 'issues' ? 'Issue' : 'PullRequest'} {
11+
... on ${eventName.startsWith('issue') ? 'Issue' : 'PullRequest'} {
1212
projectCards {
1313
nodes {
1414
id
@@ -51,7 +51,6 @@ const projectQuery = (url, eventName, project) => (
5151
}
5252
}
5353
}
54-
}`
55-
);
54+
}`;
5655

5756
module.exports = projectQuery;

0 commit comments

Comments
 (0)