JavaDoc Integrations #207
Closed
BenLloydPearson
announced in
Automation Example Bounties
Replies: 2 comments
-
These would be great examples to see. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Enforce Javadoc Requirements for New Classes
Automation Name: review_new_class_javadoc
When someone creates a new Java class, request changes if the class doesn't meet JavaDoc requirements
Conditions (all must be true):
{{ is.java and is.new | some }}
\/\*\*[\s\S]*?@param[\s\S]*?@return[\s\S]*?\*\/
Include this custom expression:
Automation Actions:
Review Javadoc Changes
Automation Name: review_javadoc
Assign PRs that only affect JavaDocs to the technical writing team and label the PR as a docs change
Conditions (all must be true):
\/\*\*[\s\S]*?\*\/
Automation Actions:
my-organization/tech-writers
team.Review Javadoc Input Parameters
Automation Name: review_javadoc_input_parameters
If a PR modifies the input parameters for a Java method, but not the associated JavaDocs, request changes to update the JavaDocs.
Conditions (all must be true):
\b(public|protected|private|static|final|synchronized)?\s+(static|final|synchronized)?\s+(\w+<.*\>|\w+\[\]|\w+|\void)\s+\w+\s*\(([^)]*)\)\s*\{
\* @param
Automation Actions:
Note: This example may not trigger for methods with annotations, methods that throw exceptions, multi-line method definitions, and other non-standard use cases.
Review Javadoc for Large Changes
Automation Name: review_javadoc_large
Require more extensive reviews for large Java changes that lack Javadoc updates.
Conditions (all must be true):
Automation Actions:
my-organization/tech-writers
team.Additional Resources
Here are some additional examples you should incorporate into these automations:
Beta Was this translation helpful? Give feedback.
All reactions