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

fix: dont create chore only PRs #433

Merged
merged 1 commit into from
Apr 22, 2024
Merged

fix: dont create chore only PRs #433

merged 1 commit into from
Apr 22, 2024

Conversation

lukekarrys
Copy link
Contributor

@lukekarrys lukekarrys commented Apr 21, 2024

In #378 we decided to make template-oss rebuild PRs for chore commits to solve the problem of needing to manually recreate PRs after pushing a chore that affected the release process.

This was a good change but had the side effects of:

  • Creating noise in the Chores sections of the changelog for repos that don't get released often but landed a lot of template-oss updates between releases. This was greatly reduced in fix: only use latest template-oss specific commits in changelog #430
  • Creating release PRs in repos that didn't need an actual release because it was only chore commits. This PR fixes this by only creating a PR if there is at least one non-chore commit. This will continue to work around the original problem of updating pending releases for new chore commits, but won't open PRs for chores only.

As a side effect of this I removed the code that was responsible for collapsing the chores section. The goal was to reduce noise in the changelog but was never turned on because it didn't work right. I think the above two items reduce noise enough that we don't need to collapse the chores section anymore.

@lukekarrys lukekarrys requested a review from a team as a code owner April 21, 2024 17:51
@lukekarrys
Copy link
Contributor Author

One thing I need to test is what will happen to open PRs that contain only chores if the PR after this lands.

If it doesn't close those PRs then we will need to close all release PRs (via stafftools) and then land the template-oss update everywhere. This will have the effect of only opening non-chore releases.

@lukekarrys lukekarrys merged commit df03d8b into main Apr 22, 2024
17 checks passed
@lukekarrys lukekarrys deleted the lk/chore-only-changelog branch April 22, 2024 02:23
@github-actions github-actions bot mentioned this pull request Apr 22, 2024
lukekarrys pushed a commit that referenced this pull request May 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.22.0](v4.21.4...v4.22.0)
(2024-05-03)

### Features

*
[`21c9262`](21c9262)
[#440](#440) use
macos-(latest|13) based on node version (#440) (@lukekarrys)

### Bug Fixes

*
[`8b2e738`](8b2e738)
[#432](#432) remove custom
node-workspace plugin (@lukekarrys)
*
[`0df268d`](0df268d)
[#442](#442) properly check for
diff with multiple files from overwrite:false (#442) (@lukekarrys)
*
[`2eca24b`](2eca24b)
[#441](#441) use git+https
protocol for repo url (#441) (@lukekarrys)
*
[`732dddc`](732dddc)
[#439](#439) update actions
workflow versions (#439) (@lukekarrys)
*
[`7949ec3`](7949ec3)
[#438](#438) add node 22 to CI
matrix (#438) (@lukekarrys)
*
[`6d54cbf`](6d54cbf)
[#436](#436) get correct exit
code from npm publish/view (#436) (@lukekarrys)
*
[`d0bf7c2`](d0bf7c2)
[#435](#435) update license
(#435) (@lukekarrys)
*
[`df03d8b`](df03d8b)
[#433](#433) dont create chore
only PRs (#433) (@lukekarrys)

### Dependencies

*
[`dff1b5b`](dff1b5b)
[#432](#432) bump release-please
from 16.3.1 to 16.10.2 (@dependabot[bot])

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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.

None yet

2 participants