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

ALZ Bicep - Generate Markdown for Parameters #304

Merged
merged 22 commits into from
Nov 27, 2022
Merged

ALZ Bicep - Generate Markdown for Parameters #304

merged 22 commits into from
Nov 27, 2022

Conversation

4pplied
Copy link
Contributor

@4pplied 4pplied commented Aug 19, 2022

Overview/Summary

Created GH Actions Workflow which generates Markdown from Bicep files leveraging PSDocs for Azure.

In order, this will:

  • Workflow triggered from push on 'main' with Bicep files as path as condition
  • Check out the repository
  • Perform a Bicep build on each of the modules to create ARM Templates (JSON)
  • Add two additional key value pairs to the templates. Name, which corresponds to the name of the Bicep file. Description, brings in an 'Up a level' hyperlink.
  • Generates Markdown from the templates
  • Removes the ARM Template files, leaving just the Bicep and the generated Markdown
  • Commits and pushes the markdown if any changes are needed
  • A hyperlink to the generated markdown files has already been inserted and replaces the parameters table in each of the static README.md's for standardisation across the board.

This PR fixes/adds/changes/removes

  1. Adds GitHub Workflow for MD Generation for modules
  2. Removes parameter tables from static readme's, link to new generated MD inserted

Breaking Changes

  1. N/A

Testing Evidence

image

image

As part of this Pull Request I have

@ghost ghost added the Needs: Triage 🔍 Needs triaging by the team label Aug 19, 2022
@jtracey93 jtracey93 added documentation and removed Needs: Triage 🔍 Needs triaging by the team labels Aug 31, 2022
@jtracey93
Copy link
Collaborator

Great work, @JamJarchitect

As discussed on our call a few minutes ago, there are some additional test cases that we need to think about here.

These are all based on the fact that I believe the GitHub action will not run successfully in the main Azure/alz-bicep repo due to the branch protection policies that are in place upon the main branch.

Therefore, can I ask that you have a think and create some tests and test it out yourself? For handling. Updates into a pull request or the branch that is associated from an external users pull request into the main branch on perhaps a fork for testing (would be azure/alz-bicep main in reality).

If we can make the workflow update the branch that the pull request has originated from. Then I think this is the best option.

I have placed the do not merge label on this PR and will await your updates on this topic.

👍👍

Copy link
Collaborator

@jtracey93 jtracey93 left a comment

Choose a reason for hiding this comment

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

Also @JamJarchitect, could we make the parameter docs page for each module, link back up to the specific module README.md instead of the root of the modules directory?

Also could we look at adding parameter type information to the table? e.g. whether the parameter is an array, object, string etc.? This data is available in the bicep/arm tempalte so should be possible if supported in PSDocs

@ghost
Copy link

ghost commented Sep 7, 2022

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@jtracey93
Copy link
Collaborator

This is still active

@ghost
Copy link

ghost commented Sep 14, 2022

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@jtracey93
Copy link
Collaborator

Still active

@ghost
Copy link

ghost commented Sep 21, 2022

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@jtracey93
Copy link
Collaborator

still active

@ghost
Copy link

ghost commented Sep 28, 2022

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@4pplied 4pplied closed this Oct 28, 2022
@jtracey93
Copy link
Collaborator

@JamJarchitect can we fix the merge conflicts

@4pplied
Copy link
Contributor Author

4pplied commented Nov 7, 2022

/azp run e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@4pplied
Copy link
Contributor Author

4pplied commented Nov 8, 2022

/azp run e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@4pplied
Copy link
Contributor Author

4pplied commented Nov 9, 2022

/azp run e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@4pplied
Copy link
Contributor Author

4pplied commented Nov 10, 2022

/azp run validateazcloud

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@4pplied
Copy link
Contributor Author

4pplied commented Nov 10, 2022

/azp run validateazcloud

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jtracey93
Copy link
Collaborator

/azp run validateazcloud

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants