Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: enable AI description generator for all PRs even on comments #283

Closed
1 of 2 tasks
a0m0rajab opened this issue Nov 7, 2023 · 2 comments · Fixed by #285
Closed
1 of 2 tasks

Feature: enable AI description generator for all PRs even on comments #283

a0m0rajab opened this issue Nov 7, 2023 · 2 comments · Fixed by #285

Comments

@a0m0rajab
Copy link
Contributor

Type of feature

🍕 Feature

Current behavior

The AI description generator is only working when you open a new PR and when you edit the first comment of the PR, yet it would be great to have it for the last comment in the PR.

Suggested solution

The code we added in this PR: #282 is checking the first element only yet we could extend it with a loop.

   actionBarsArray.forEach(actionBar => {
        if (!actionBar.querySelector("#ai-description-button")) {
            actionBar.insertBefore(addGeneratorButton, actionBar.firstChild);
        }
    });

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
Copy link

🎉 This issue has been resolved in version 1.15.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This issue has been resolved in version 1.15.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants