-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Ensure "ref" parameter is not ignored in function RepoRefForAPI #24242
Conversation
there looks to be an underlying issue about our handler ... in this case that fix just did it and since we only need the API context here anyways it simplify the code :) |
What issue? Is it related to #24080 ? If yes, I will fix it. |
Could you add some tests? |
I think I know the problem of this issue, it is related to #24080 , I am working on it. |
@wxiaoguang the lastest changes fix it ... I will create a new pull that contains the test I used to determine it :) |
-> #24388 |
This pull request adds an integration test to validate the behavior of raw content API's reference handling for all supported formats . close #24242 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
before
http://localhost:3000/api/v1/repos/test/aaa/raw/.woodpecker.yml
http://localhost:3000/api/v1/repos/test/aaa/raw/500c8e1f4c3d33c1d6990c5498db0f0a02136cc5/.woodpecker.yml
http://localhost:3000/api/v1/repos/test/aaa/raw/.woodpecker.yml?ref=500c8e1f4c3d33c1d6990c5498db0f0a02136cc5
after all work