Skip to content
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

Lock documents on other types of suggestions in the header #212

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

jfreda
Copy link
Contributor

@jfreda jfreda commented Jun 13, 2023

Builds on #182 to lock documents when there are other types of suggestions in the header (which causes the same issue: #181).

@jfreda jfreda requested a review from a team as a code owner June 13, 2023 22:46
pkg/hashicorpdocs/locked.go Show resolved Hide resolved
pkg/hashicorpdocs/locked.go Show resolved Hide resolved
pkg/hashicorpdocs/locked.go Show resolved Hide resolved
Comment on lines +92 to +96
if ft == draftsFolderType {
log.Info(fmt.Sprintf("locked draft document IDs: %v", lockedDocIDs))
} else {
log.Info(fmt.Sprintf("locked document IDs: %v", lockedDocIDs))
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jfreda jfreda merged commit 4949cee into main Jun 14, 2023
1 check passed
@jfreda jfreda deleted the jfreda/lock-docs-for-other-header-suggestions branch June 14, 2023 21:18
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
…-forge#212)

* Lock documents on other types of suggestions in the header

* Separate log line for locked draft docs

* Add comments per PR feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants