Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create update-pr.yml #2220

Closed
wants to merge 1 commit into from
Closed

Create update-pr.yml #2220

wants to merge 1 commit into from

Conversation

michael-n-cooper
Copy link
Member

@michael-n-cooper michael-n-cooper commented Feb 9, 2022

Preview Changes

Add pull request preview

Add pull request preview
@patrickhlauke
Copy link
Member

@kfranqueiro @iadawn is this PR still valid/needed?

@iadawn
Copy link
Contributor

iadawn commented Aug 29, 2024

Probably not. @kfranqueiro can you confirm?

@kfranqueiro
Copy link
Contributor

This prefixes the PR body text with a link to the guidelines page using githack.com.

Technically this isn't redundant with the Eleventy build (which doesn't output guidelines). However, I'm still not sure if we'd want it:

  • This action doesn't need to exist in order for the githack link to work - if you really need a guidelines preview, you can come up with the URL anyway
  • This would likely end up built into every merged PR's commit message in the repo if we're not careful, given that commit messages use the PR body by default
  • PRs that touch the guidelines folder are probably relatively rare?

@kfranqueiro kfranqueiro deleted the pr-preview branch October 30, 2024 15:27
kfranqueiro added a commit that referenced this pull request Nov 15, 2024
This effectively replaces what the pr-preview bot currently does (and
what #2220 sought to do within the repo). The problem with the
pr-preview bot is its previews don't fully work (e.g. as seen in #4123).

## Changes

- Remove `.pr-preview.json` to stop pr-preview bot from running
- Add logic to `eleventy.config.ts` to copy `guidelines` folder assets
and run through spec-generator (the same thing we use for GH Pages
builds; also the same thing used by the pr-preview bot, IIUC) when
running a standard build through netlify
- Conditionally add guidelines list item to top-level `index.html`
(which is only used for local dev and PR builds)
- Tangentially, rename our github-pages push workflow to be more
distinguishable in the Actions tab
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants