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

MS Learn Module Update Request: Automate GitHub by using GitHub Script #172

Open
1 of 4 tasks
mjbear opened this issue Sep 21, 2024 · 0 comments
Open
1 of 4 tasks
Assignees

Comments

@mjbear
Copy link

mjbear commented Sep 21, 2024

Which of the MS Learn modules from the dropdown are you submitting an update request?

Automate GitHub by using GitHub Script

Additional information

  • Fix a broken user experience (broken links, exercise error, etc.)
  • Update incorrect information
  • Add new content to the module
  • Some other request

Information about the requested update

module: Automate GitHub by using GitHub Script
unit: Exercise - Using GitHub Script in GitHub Actions
url: https://learn.microsoft.com/en-us/training/modules/automate-github-using-github-script/3-use-github-script

section: Use the Node.js environment

Based on:
Adds the action/checkout action to read the templated response file located at .github/ISSUE_COMMENT/comment.md

Then:
const issueBody = fs.readFileSync(".github/ISSUE_RESPONSES/comment.md", "utf8")
should probably be
const issueBody = fs.readFileSync(".github/ISSUE_COMMENT/comment.md", "utf8")

🎯 It seems like either the description or the GitHub Action code block needs to change to match the other. My example above changes the code block to be in sync with the comment/explanation.

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

No branches or pull requests

4 participants