oreoxmt / octopus-github Goto Github PK
View Code? Open in Web Editor NEWA GitHub extension
License: Apache License 2.0
A GitHub extension
License: Apache License 2.0
The script fails to work after switching pages, such as Page 1 > Page 2, Pull requests > Code > Pull requests, and using PR filters.
The only way to retrigger the script is to refresh the Pull requests page.
Issue:
When using the "comment" function in octopus-gihub v0.4, comments are incorrectly being added to the PR description instead of being submitted as issue comments. This behavior is inconsistent with expected functionality and disrupts the review workflow.
Steps to Reproduce:
Navigate to a specific PR link (e.g. pingcap/docs#13666 (review))
Click the "comment" button provided by octopus-gihub. Write a comment and submit it.
Expected Outcome:
The comment should appear in the comment section of the PR, maintaining the PR description unaltered.
Actual Outcome:
The comment is being added to the PR description, modifying the original content of the description.
Proposed Fix:
The issue can be resolved by modifying const url = window.location.href;
to const url = window.location.pathname;
. This change correctly gets the path of the PR URL, not including the query string or fragment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.