-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Introduce workflow for doc #172
Comments
I wonder, given that the repo requires signed commits, would it be better to handle this as part of the Git pre-commit hook? This will ensure that it gets executed before it leaves the contributor's machine. It is also easy to have it invoke the existing ./pre-commit.sh. what do you think? |
Thank you for asking my opinion. Yes. I agree that Git pre-commit hook is a good(better for now) solution.
I have a small concern. Contributors can intentionally or unintentionally skip pre-commit hook installation. So, it's not 100% guaranteed. I think later on when this repository becomes more popular, we can visit this thread again and consider using workflow. Please feel free to close this issue. |
You gave a great point. I wonder if we need to combine both. Git hook to do it with the commit, and a GitHub workflow to perhaps block the pull request? |
My two cents is Ideally, we need to use both. Run pre-commit to executes locally & quickly before committing. Then workflow is triggered when a PR is created, it will block if doc is not updated. I ran
PS. |
Let's do it. I agree with you that it is simpler. We can always do the Git hook when necessary. Thank you so much again for your contribution! |
# Describe Request This PR introduces `.gomarkdoc.yml` which includes default configuration of gomarkdoc. This way, we can reuse the same configuration across multiple invocations such as `pre-commit.sh` and github workflow. Also, docs are updated by executing pre-commit.sh. Fixed # partially #172 # Change Type Docs.
Is your feature request related to a problem? Please describe.
As we're updating docs manually, docs can be easily outdated.
Describe the solution you'd like
Introduce a github workflow for docs. I think there is two options.
option#1. When PR is created, a workflow is triggered, if doc in the PR is not updated, the bot will fail.
option#2. When a new PR is merged, a workflow is triggered to create a PR with doc updated.
Describe alternatives you've considered
N/A
Additional context
Discussed in #171 (comment)
The text was updated successfully, but these errors were encountered: