-
-
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
Issue API and Attachments #3690
Comments
@madman2021 could be that no one has coded the functionality yet. For example attachments were just exposed for the releases API endpoint in #3478 |
I think this has been resolved by #3478. @madman2021 please confirm that. |
@lunny It got only partialy resolved because issues do not provide an assets api. |
As @JonasFranzDEV mentioned, I was hoping I could BackgroundOn one of our production sites I have a BugReport button in the corner, this allows the user to enter some text and also press a button to capture a JPEG image of the current webpage, the text would be put into the Issue body and the Image added as an attachment. Currently i'm hosting the image in the production site and the link inserted in the body, idealy it would just be added as an attachment. Hope that helps understand what I'm talking about. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
I would love to see this issue, too. I am creating issues by an REST-API and the attachments are currently added as links to other sources. Attachments can be set for releases. Is it much work to "just make them public" or do some code have to be written? I am no go-developer but maybe i would like to take a look if i can implement this feature (had to read the contributions guide, too). EDIT 2019-09-22: |
I'm looking for this too. Our automated testing scripts post the test results as comments to issue using the Gitea API, and there are some screenshots that I want to attach to the comment. |
Well, I found a silly workaround!! Not sure I'd recommend it though: I upload the file to a release, using API: /repos/USER/REPO/releases/1/assets In the response there is a PROBLEMS with this: release 1 is not actually associated with the REPO and I don't really know where the files are going! I can't see them on the actual release on the actual repo its associated with, maybe this is a permission issue. I think if the release was associated with the correct repo they may show up. We don't really want them to show up on a release so thats fine, but really messy. |
The fact that you can do this is a bug. You should not rely much on it working after a future upgrade. EDIT: I see that you've already reported it in #8282 |
GitNex require a API to manage attachments too ... so I'm linking this issue to here: https://gitea.com/mmarif/GitNex/issues/56 |
Need the endpoints
and the issue/comment model should have an attribute that tells me if there are assets. |
I have added the feature in #14601. |
Too late 😀 I don't use gitea anymore. |
cool, much appreciated |
Close #14601 Fix #3690 Revive of #14601. Updated to current code, cleanup and added more read/write checks. Signed-off-by: Andrew Thornton <[email protected]> Signed-off-by: Andre Bruch <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Norwin <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
[x]
):Description
The Issues API doesn't expose attachments, is this by design?
...
The text was updated successfully, but these errors were encountered: