[GH-ISSUE #118] Add new platform: Gitee #1306

Closed
opened 2026-04-19 13:16:34 -05:00 by GiteaMirror · 9 comments
Owner

Originally created by @pd4d10 on GitHub (Oct 11, 2020).
Original GitHub issue: https://github.com/pd4d10/git-touch/issues/118

https://gitee.com/

Originally created by @pd4d10 on GitHub (Oct 11, 2020). Original GitHub issue: https://github.com/pd4d10/git-touch/issues/118 https://gitee.com/
Author
Owner

@shreyas1599 commented on GitHub (Jan 4, 2021):

Hi @pd4d10,
I'm trying to add the issue screen. Need some help.
IssueItem takes a required parameter called number but gitee issue numbers are not integers. They look something like this: #I2BRYV. Which of these would you suggest or is there an alternative apart from this?

  • Should I update IssueItem and make number as a String and update this across everything?
  • Should I use the id parameter of the response (this is an integer) for now?
<!-- gh-comment-id:753806186 --> @shreyas1599 commented on GitHub (Jan 4, 2021): Hi @pd4d10, I'm trying to add the issue screen. Need some help. `IssueItem` takes a required parameter called [number](https://github.com/git-touch/git-touch/blob/c6757c154890b9120848d985229f80c7c842fbfd/lib/widgets/issue_item.dart#L37) but gitee issue numbers are not integers. They look something like this: `#I2BRYV`. Which of these would you suggest or is there an alternative apart from this? - Should I update `IssueItem` and make `number` as a `String` and update this across everything? - Should I use the `id` parameter of the response (this is an integer) for now?
Author
Owner

@pd4d10 commented on GitHub (Jan 4, 2021):

Well, it seems just used as a title.

Perhaps replace the int number prop with a String title?

<!-- gh-comment-id:753854439 --> @pd4d10 commented on GitHub (Jan 4, 2021): Well, it seems just used as a title. Perhaps replace the `int number` prop with a `String title`?
Author
Owner

@shreyas1599 commented on GitHub (Jan 4, 2021):

title prop already exists. Do you mean remove the number prop and append the issue number to title?

<!-- gh-comment-id:753857785 --> @shreyas1599 commented on GitHub (Jan 4, 2021): [`title`](https://github.com/git-touch/git-touch/blob/c6757c154890b9120848d985229f80c7c842fbfd/lib/widgets/issue_item.dart#L38) prop already exists. Do you mean remove the `number` prop and append the issue number to `title`?
Author
Owner

@pd4d10 commented on GitHub (Jan 4, 2021):

Oh, sorry, I missed that. It seems like a subtitle.

<!-- gh-comment-id:753859740 --> @pd4d10 commented on GitHub (Jan 4, 2021): Oh, sorry, I missed that. It seems like a subtitle.
Author
Owner

@pd4d10 commented on GitHub (Jan 4, 2021):

append the issue number to title

It's a good idea, but I've noticed that the style is a little different with the title and wrapped with a TextSpan.

How about replacing it with String subtitle?

<!-- gh-comment-id:753860510 --> @pd4d10 commented on GitHub (Jan 4, 2021): > append the issue number to title It's a good idea, but I've noticed that the style is a little different with the title and wrapped with a `TextSpan`. How about replacing it with `String subtitle`?
Author
Owner

@shreyas1599 commented on GitHub (Jan 4, 2021):

How about replacing it with String subtitle?

Alright I'll do this

<!-- gh-comment-id:753860945 --> @shreyas1599 commented on GitHub (Jan 4, 2021): > How about replacing it with `String subtitle`? Alright I'll do this
Author
Owner

@pd4d10 commented on GitHub (Jan 6, 2021):

This issue could be closed since Gitee is already supported. Let's track the features and bugs of Gitee with new issues.

<!-- gh-comment-id:755367071 --> @pd4d10 commented on GitHub (Jan 6, 2021): This issue could be closed since Gitee is already supported. Let's track the features and bugs of Gitee with new issues.
Author
Owner

@shreyas1599 commented on GitHub (Jan 6, 2021):

@pd4d10 going off-track here but can you enable Discussions on the repo(you're the admin)? It's for general discussions that may not necessarily be an issue. I opened it on my fork and it looks something like this:
image

<!-- gh-comment-id:755371887 --> @shreyas1599 commented on GitHub (Jan 6, 2021): @pd4d10 going off-track here but can you enable [`Discussions`](https://docs.github.com/en/free-pro-team@latest/discussions/quickstart) on the repo(you're the admin)? It's for general discussions that may not necessarily be an issue. I opened it on my fork and it looks something like this: ![image](https://user-images.githubusercontent.com/28999492/103787009-16d56400-5063-11eb-9404-19a50b2c8cd8.png)
Author
Owner

@pd4d10 commented on GitHub (Jan 6, 2021):

Enabled. I haven't used it before. Let's try it!

<!-- gh-comment-id:755377777 --> @pd4d10 commented on GitHub (Jan 6, 2021): Enabled. I haven't used it before. Let's try it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#1306