Commit Graph

15 Commits

Author SHA1 Message Date
kolaente 752ae42879 fix: support merge queue in issue-closed-comment workflow
When a PR is merged via merge queue, the issue close event has no
commit_id and no referenced event. Fall back to the GraphQL
closedByPullRequestsReferences field to find the closing PR.

Also simplifies the commit-to-PR lookup by using
listPullRequestsAssociatedWithCommit instead of iterating all PRs.
2026-03-25 10:20:36 +01:00
renovate[bot] fdcc8085be chore(deps): update actions/create-github-app-token digest to 29824e6 2025-12-06 11:01:20 +01:00
Copilot 30104fb749
fix: escape backticks and special chars in commit message for GitHub Action (#1928)
The `issue-closed-comment` workflow fails when commit messages contain
backticks because they're interpolated directly into JS template
strings, breaking syntax.

### Changes
- Escape backslashes, backticks, and `${` sequences before setting the
commit message output
- Order matters: backslashes first to avoid interfering with subsequent
escaping

```javascript
// Before: raw message breaks template string if it contains backticks
core.setOutput('commit_message', commit.message);

// After: properly escaped for safe interpolation
const escapedMessage = commit.message.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$\{/g, '\\${');
core.setOutput('commit_message', escapedMessage);
```

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> the github action which comments on issue closure fails when the
commit message contains ` since these are js strings. Make sure to
escape them.


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

 Let Copilot coding agent [set things up for
you](https://github.com/go-vikunja/vikunja/issues/new?title=+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kolaente <13721712+kolaente@users.noreply.github.com>
2025-12-04 09:38:24 +00:00
renovate[bot] 370a6230a0
chore(deps): update actions/create-github-app-token digest to 7e473ef (#1862)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 20:36:25 +00:00
kolaente 746f78f787
chore(ci): add debug log 2025-11-16 01:08:13 +01:00
renovate[bot] 4a4a8a0013
chore(deps): update actions/create-github-app-token action to v2 (#1809)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-12 22:46:44 +00:00
renovate[bot] 373b079223
chore(deps): pin actions/create-github-app-token action to d72941d (#1801)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-12 20:59:03 +00:00
kolaente b8b335fee2
chore(ci): use github app to handle issue closed comments 2025-11-12 21:46:04 +01:00
kolaente 7689b6c181
fix(ci): unxecpected token in issue close workflow 2025-10-13 11:13:29 +02:00
kolaente 7442fbb9c2
fix(ci): find closing PRs when they are not explicitly referenced
Works around a limitation in the GitHub api which makes it hard to find a PR that closed an issue directly
2025-10-09 11:14:05 +02:00
kolaente 5f1d684551
fix(ci): use correct quotes for commit description 2025-10-01 11:58:25 +02:00
kolaente e3f3eeea6b
fix(ci): comment on closed issues when closed by commit or PR 2025-09-22 14:06:56 +02:00
renovate[bot] f49dbf04ef
chore(deps): update actions/github-script action to v8 (#1417)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 15:50:12 +00:00
renovate[bot] 97a7e40c9e
chore(deps): pin actions/github-script action to 60a0d83 (#1168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-23 10:42:48 +00:00
kolaente f707147a4d
feat(ci): comment on closed issues when closed by commit or PR 2025-07-23 12:33:58 +02:00