Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/llvm-bugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
repo: context.repo.repo
})
.then((issue) => {
var maybeTruncatedBody = issue.data.body;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this actually used?

I'd imagine it should replace body : issue.data.body in body : issue.data.body below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Fixed in 009706f.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it work if I retry https://github.com/llvm/llvm-project/actions/runs/18784813915/job/54401896261 now or is it for new issues only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forget if rerunning the workflow pulls in new workflow definitions or not. I think it would use the old workflow definition. So either a new issue or a new workflow run, but the workflow only triggers when issues get opened. So it would probably have to be a new issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing and reopening might work.

if (maybeTruncatedBody.length > 15000) {
maybeTruncatedBody = maybeTruncatedBody.substring(0,
15000) +
"<truncated>Please see the issue for the entire body."
}
const payload = {
author : issue.data.user.login,
issue : issue.data.number,
Expand Down
Loading