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

Ask learner to create PR manually and add permissions #36

Merged
merged 5 commits into from
Feb 15, 2023

Conversation

chadfawcett
Copy link
Contributor

Why:

Relates to https://github.com/github/skills/issues/96

The GITHUB_TOKEN we use in the Actions workflows no longer allows the creation of PRs.

What's being changed:

  • Updating the course to remove any automatically-generated PRs. The learner is now asked to create any necessary PRs.
  • Adds the permission field to the workflow code snippet in the course so the workflow has permission to comment on the PR. I think this would be better as a separate step to the course, but I tried to change as little as possible for this PR.

Check off the following:

  • For workflow changes, I have verified the Actions workflows function as expected.
  • For content changes, I have reviewed the style guide.

If the PR is created _after_ the workflow is created, then the `welcome` workflow will run and comment on this PR which might add some confusion and renders the test PR in step 5 redundant.
In order to leave a comment on a PR, the workflow needs the `pull-requests: write` permission.
Copy link
Contributor

@heiskr heiskr left a comment

Choose a reason for hiding this comment

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

Looks great to me :) Thanks for adding the permissions block 💖

README.md Outdated Show resolved Hide resolved
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
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