Skip to content

Overhaul diff-shades integration to fail on stable changes and preview changes for all projects #2891

Closed
ichard26 wants to merge 1 commit into
mainfrom
force-preview
Closed

Overhaul diff-shades integration to fail on stable changes and preview changes for all projects #2891
ichard26 wants to merge 1 commit into
mainfrom
force-preview

Conversation

@ichard26
Copy link
Copy Markdown
Collaborator

@ichard26 ichard26 commented Feb 21, 2022

Description

Now PRs will run two diff-shades jobs, "preview-changes" which formats all projects with preview=True, and "assert-no-changes" which formats all projects with preview=False. The latter also fails if any changes were made.

Also the workflow_dispatch feature was dropped since it was complicating everything for little gain.

Example run: ichard26#15

Checklist - did you ...

  • Add a CHANGELOG entry if necessary? -> n/a
  • Add / update tests if necessary? -> n/a
  • Add new / update outdated documentation?

@ichard26 ichard26 added ci: skip news Pull requests that don't need a changelog entry. C: maintenance Related to project maintenance, e.g. CI, testing, policy changes, releases labels Feb 21, 2022
@JelleZijlstra
Copy link
Copy Markdown
Collaborator

It would also be useful to have a non-preview run so we can make sure the stable style doesn't get changed.

@github-actions
Copy link
Copy Markdown
Contributor

diff-shades results comparing this PR (901460c) to main (c26c772). The full diff is available in the logs under the "Generate HTML diff report" step.

╭─────────────────────── Summary ────────────────────────╮
│ 1 projects & 1 files changed / 0 changes [+0/-0]       │
│                                                        │
│ ... out of 2 136 275 lines, 10 219 files & 23 projects │
╰────────────────────────────────────────────────────────╯

Differences found.

What is this? | Workflow run | diff-shades documentation

@ichard26 ichard26 marked this pull request as draft March 14, 2022 23:11
Now PRs will run two diff-shades jobs, "preview-changes" which formats
all projects with preview=True, and "assert-no-changes" which formats
all projects with preview=False. The latter also fails if any changes
were made.

Also the workflow_dispatch feature was dropped since it was
complicating everything for little gain.
@ichard26 ichard26 changed the title diff-shades: force --preview for PRs and pushes Overhaul diff-shades integration to fail on stable changes and preview changes for all projects Mar 23, 2022
@ichard26
Copy link
Copy Markdown
Collaborator Author

Superseded by #2951.

@ichard26 ichard26 closed this Mar 24, 2022
@ichard26 ichard26 deleted the force-preview branch March 24, 2022 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: maintenance Related to project maintenance, e.g. CI, testing, policy changes, releases ci: skip news Pull requests that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants