[PR #144] [MERGED] feat: gitee issues, issue, pullRequests screens #256

Closed
opened 2025-10-31 17:08:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pd4d10/git-touch/pull/144
Author: @shreyas1599
Created: 1/5/2021
Status: Merged
Merged: 1/6/2021
Merged by: @pd4d10

Base: mainHead: gitee-update


📝 Commits (6)

  • df9a80c feat: gitee pulls, issue screens
  • 83b211c add action button - issue screen
  • f59e4ee remove unnecessary comment
  • 74c2451 feat: gitee create issue in repo
  • b396aa5 feat: commenting in issue screen
  • 5bcea8b fix: prepend '#' to subtitle props

📊 Changes

22 files changed (+551 additions, -20 deletions)

View changed files

📝 lib/models/auth.dart (+19 -3)
📝 lib/models/gitee.dart (+46 -0)
📝 lib/models/gitee.g.dart (+79 -0)
📝 lib/router.dart (+40 -0)
📝 lib/screens/bb_issues.dart (+1 -1)
📝 lib/screens/bb_pulls.dart (+1 -1)
lib/screens/ge_issue.dart (+116 -0)
lib/screens/ge_issue_comment.dart (+65 -0)
lib/screens/ge_issue_form.dart (+77 -0)
lib/screens/ge_issues.dart (+46 -0)
lib/screens/ge_pulls.dart (+40 -0)
📝 lib/screens/ge_repo.dart (+2 -2)
📝 lib/screens/gh_issues.dart (+1 -1)
📝 lib/screens/gh_pulls.dart (+1 -1)
📝 lib/screens/gh_search.dart (+1 -1)
📝 lib/screens/gl_issue.dart (+2 -0)
📝 lib/screens/gl_issues.dart (+1 -1)
📝 lib/screens/gl_merge_requests.dart (+1 -1)
📝 lib/screens/gt_issues.dart (+1 -1)
📝 lib/widgets/comment_item.dart (+5 -2)

...and 2 more files

📄 Description

  • Added Issues, PullRequests, Issue screens. PullRequest screen not done.
  • In Issues - creating an issue, commenting on an issue done
  • changed number prop to subtitle in issue_item.dart
  • Added a new prop prefix to comment_item.dart. CommentItem uses UserName which has the github prefix. Added a prefix prop so it works with sites other than github
  • In ge_pulls.dart, commentCount is set to 0 because the response from gitee doesn't have a comment count property. See this example response.
  • Screenshots:

image

image

image

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pd4d10/git-touch/pull/144 **Author:** [@shreyas1599](https://github.com/shreyas1599) **Created:** 1/5/2021 **Status:** ✅ Merged **Merged:** 1/6/2021 **Merged by:** [@pd4d10](https://github.com/pd4d10) **Base:** `main` ← **Head:** `gitee-update` --- ### 📝 Commits (6) - [`df9a80c`](https://github.com/pd4d10/git-touch/commit/df9a80c65bd85fff1b99c5da91c261621f92857b) feat: gitee pulls, issue screens - [`83b211c`](https://github.com/pd4d10/git-touch/commit/83b211ce89ff5d7b64224e674dcb77f2b327adfe) add action button - issue screen - [`f59e4ee`](https://github.com/pd4d10/git-touch/commit/f59e4ee53ee599865f355ac0b3c02bb0ef25fb1c) remove unnecessary comment - [`74c2451`](https://github.com/pd4d10/git-touch/commit/74c245128c8a7963cf7f5972c95e673668a47d34) feat: gitee create issue in repo - [`b396aa5`](https://github.com/pd4d10/git-touch/commit/b396aa5d13af1b2e6a19a381edb4d3c84376b513) feat: commenting in issue screen - [`5bcea8b`](https://github.com/pd4d10/git-touch/commit/5bcea8b6bd7b2b784319c11fdd24d210a5f37111) fix: prepend '#' to subtitle props ### 📊 Changes **22 files changed** (+551 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `lib/models/auth.dart` (+19 -3) 📝 `lib/models/gitee.dart` (+46 -0) 📝 `lib/models/gitee.g.dart` (+79 -0) 📝 `lib/router.dart` (+40 -0) 📝 `lib/screens/bb_issues.dart` (+1 -1) 📝 `lib/screens/bb_pulls.dart` (+1 -1) ➕ `lib/screens/ge_issue.dart` (+116 -0) ➕ `lib/screens/ge_issue_comment.dart` (+65 -0) ➕ `lib/screens/ge_issue_form.dart` (+77 -0) ➕ `lib/screens/ge_issues.dart` (+46 -0) ➕ `lib/screens/ge_pulls.dart` (+40 -0) 📝 `lib/screens/ge_repo.dart` (+2 -2) 📝 `lib/screens/gh_issues.dart` (+1 -1) 📝 `lib/screens/gh_pulls.dart` (+1 -1) 📝 `lib/screens/gh_search.dart` (+1 -1) 📝 `lib/screens/gl_issue.dart` (+2 -0) 📝 `lib/screens/gl_issues.dart` (+1 -1) 📝 `lib/screens/gl_merge_requests.dart` (+1 -1) 📝 `lib/screens/gt_issues.dart` (+1 -1) 📝 `lib/widgets/comment_item.dart` (+5 -2) _...and 2 more files_ </details> ### 📄 Description - Added `Issues`, `PullRequests`, `Issue` screens. `PullRequest` screen not done. - In Issues - `creating an issue`, `commenting on an issue` done - changed `number` prop to `subtitle` in `issue_item.dart` - Added a new prop prefix to `comment_item.dart`. [`CommentItem`](https://github.com/git-touch/git-touch/blob/8aa660437fa3ed098ecd1fb1462a80e87a36d1fc/lib/widgets/comment_item.dart#L173) uses [`UserName`](https://github.com/git-touch/git-touch/blob/8aa660437fa3ed098ecd1fb1462a80e87a36d1fc/lib/widgets/user_name.dart#L15) which has the `github` prefix. Added a prefix prop so it works with sites other than `github` - In `ge_pulls.dart`, commentCount is set to 0 because the response from gitee doesn't have a comment count property. See this example [response](https://gitee.com/api/v5/repos/shreyas1599/test/pulls). - Screenshots: ![image](https://user-images.githubusercontent.com/28999492/103679060-5ee48000-4faa-11eb-8c06-7058ae0c10d6.png) ![image](https://user-images.githubusercontent.com/28999492/103648385-cedf1000-4f82-11eb-83e9-78880204db12.png) ![image](https://user-images.githubusercontent.com/28999492/103682657-2bf0bb00-4faf-11eb-9a56-574fd2db89e1.png) ![image](https://user-images.githubusercontent.com/28999492/103682740-45920280-4faf-11eb-8d55-3956c543fb5e.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 17:08:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#256