Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(action): issue change title notifications#33050

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wxiaoguang merged 13 commits intogo-gitea:mainfromappleboy:actions
Dec 31, 2024

Conversation

@appleboy
Copy link
Member

  • AddIssueChangeTitle method to handle issue title changes
  • AddnotifyIssueChangeWithTitleOrContent method to generalize notification handling for issue title or content changes
  • Replace hardcodedapi.HookIssueEdited with dynamicaction parameter in notification payloads

action file as below:

name:Semantic Pull Requeston:pull_request_target:types:[edited]

terry623 and Tanvirul-swe reacted with thumbs up emojibenny123tw reacted with heart emoji
- Add `IssueChangeTitle` method to handle issue title changes- Add `notifyIssueChangeWithTitleOrContent` method to generalize notification handling for issue title or content changes- Replace hardcoded `api.HookIssueEdited` with dynamic `action` parameter in notification payloadsSigned-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelDec 30, 2024
@github-actionsgithub-actionsbot added the modifies/goPull requests that update Go code labelDec 30, 2024
@appleboyappleboy added this to the1.24.0 milestoneDec 30, 2024
@GiteaBotGiteaBot added lgtm/need 1This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelsDec 30, 2024
@GiteaBotGiteaBot added lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1This PR needs approval from one additional maintainer to be merged. labelsDec 31, 2024
@lunnylunny added the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelDec 31, 2024
@wxiaoguangwxiaoguangenabled auto-merge (squash)December 31, 2024 11:39
@wxiaoguang
Copy link
Contributor

And the "action" should be hard-coded toapi.HookIssueEdited, because "title change" and "content change" both are "api.HookIssueEdited" (the same to other notifiers)

To distinguish them, the proper approach is to use theChanges field inapi.PullRequestPayload (not needed at the moment so no need to implement it now)

@wxiaoguangwxiaoguangenabled auto-merge (squash)December 31, 2024 11:47
@wxiaoguangwxiaoguang merged commit6c89de4 intogo-gitea:mainDec 31, 2024
26 checks passed
GiteaBot added a commit to GiteaBot/gitea that referenced this pull requestDec 31, 2024
- Add `IssueChangeTitle` method to handle issue title changes- Add `notifyIssueChangeWithTitleOrContent` method to generalizenotification handling for issue title or content changesaction file as below:```yamlname: Semantic Pull Requeston:  pull_request_target:    types: [edited]```---------Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>Co-authored-by: Giteabot <teabot@gitea.io>Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@GiteaBotGiteaBot added backport/doneAll backports for this PR have been created and removed reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelsDec 31, 2024
wxiaoguang added a commit that referenced this pull requestDec 31, 2024
Backport#33050 by appleboyaction file as below:```yamlname: Semantic Pull Requeston:  pull_request_target:    types: [edited]```Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@appleboyappleboy deleted the actions branchJanuary 1, 2025 10:16
zjjhot added a commit to zjjhot/gitea that referenced this pull requestJan 2, 2025
* giteaofficial/main:  [skip ci] Updated translations via Crowdin  unset XDG_HOME_CONFIG as gitea manages configuration locations (go-gitea#33067)  Refactor repo-new.ts (go-gitea#33070)  Refactor pull-request compare&create page (go-gitea#33071)  feat: link to nuget dependencies (go-gitea#26554)  Remove some unnecessary template helpers (go-gitea#33069)  Inherit submodules from template repository content (go-gitea#16237)  [skip ci] Updated translations via Crowdin  feat(action): issue change title notifications (go-gitea#33050)  Use project's redirect url instead of composing url (go-gitea#33058)  Fix unittest and repo create bug (go-gitea#33061)  Fix locale type (go-gitea#33059)  Refactor maven package registry (go-gitea#33049)  Optimize the installation page (go-gitea#32994)  [Feature] Private README.md for organization (go-gitea#32872)  Make issue suggestion work for new PR page (go-gitea#33035)  Add IntelliJ Gateway's .uuid to gitignore (go-gitea#33052)
@appleboyappleboy modified the milestones:1.24.0,1.23.0Jan 3, 2025
@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsMar 31, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@wxiaoguangwxiaoguangwxiaoguang left review comments

@lunnylunnylunny approved these changes

+1 more reviewer

@Zettat123Zettat123Zettat123 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

backport/doneAll backports for this PR have been createdlgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/goPull requests that update Go code

Projects

None yet

Milestone

1.24.0

Development

Successfully merging this pull request may close these issues.

5 participants

@appleboy@wxiaoguang@lunny@Zettat123@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp