-
Notifications
You must be signed in to change notification settings - Fork 511
feat(GitLab): Post comments when linking an issue or merge request to a Flagsmith feature #7306
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
692b3a0
Refactor services
emyller 19c4ab7
Post a comment to GitLab when linking
emyller 7d109b5
Post another comment when unlinking
emyller c8bc6ef
Post a comment when flag state changes
emyller e91ee41
Post a comment when a flag is deleted
emyller a8be870
Reframe state-change comment as a snapshot
khvn26 499a0d5
Lean view, single link event, broken-chain emoji on unlink
khvn26 b723cb1
Log resource.unlinked on external-resource delete
khvn26 16b1cc3
eek
khvn26 9ecc9c8
Fix event order in unlink integration test
khvn26 b80598a
refactor(GitLab): Hoist state-change task import to module top
khvn26 a28722d
perf(GitLab): Skip state-change task when no GitLab config
khvn26 c6d0330
fix(GitLab): Apply timeout to GitLab note POSTs
khvn26 d3aedde
refactor(GitLab): Drop unreachable branch and test via public caller
khvn26 8b90265
refactor(VCS): Move resource create/destroy dispatch into integration…
khvn26 ea421d7
refactor(GitLab): Collapse URL-parse guards in _post_note_to_resource
khvn26 a66e8b9
perf(GitLab): Prefetch feature.project in state-change task
khvn26 1aa8b6d
refactor(VCS): Collapse GitLab FER lifecycle hooks into the dispatcher
khvn26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| from integrations.gitlab.services.comments import ( | ||
| post_feature_deleted_comment, | ||
| post_gitlab_state_change_comment_for_feature_state, | ||
| post_linked_comment, | ||
| post_state_change_comment, | ||
| post_unlinked_comment, | ||
| ) | ||
| from integrations.gitlab.services.tagging import ( | ||
| apply_initial_tag, | ||
| apply_tag_for_event, | ||
| set_gitlab_tag, | ||
| ) | ||
| from integrations.gitlab.services.url_parsing import ( | ||
| parse_project_path, | ||
| parse_resource_iid, | ||
| ) | ||
| from integrations.gitlab.services.webhooks import ( | ||
| deregister_gitlab_webhook_for_resource, | ||
| deregister_webhook_for_path, | ||
| ensure_webhook_registered, | ||
| has_live_resource_for_path, | ||
| register_gitlab_webhook_for_resource, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "apply_initial_tag", | ||
| "apply_tag_for_event", | ||
| "deregister_gitlab_webhook_for_resource", | ||
| "deregister_webhook_for_path", | ||
| "ensure_webhook_registered", | ||
| "has_live_resource_for_path", | ||
| "parse_project_path", | ||
| "parse_resource_iid", | ||
| "post_feature_deleted_comment", | ||
| "post_gitlab_state_change_comment_for_feature_state", | ||
| "post_linked_comment", | ||
| "post_state_change_comment", | ||
| "post_unlinked_comment", | ||
| "register_gitlab_webhook_for_resource", | ||
| "set_gitlab_tag", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.