-
Couldn't load subscription status.
- Fork 118
skip ci for changelog changes #511
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh nice, glad this is easy
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #511 +/- ##
=======================================
Coverage ? 80.21%
=======================================
Files ? 61
Lines ? 13342
Branches ? 13342
=======================================
Hits ? 10702
Misses ? 2092
Partials ? 548 ☔ View full report in Codecov by Sentry. |
|
@nicklan did we previously learn that this needs to merge before the changes will propagate to CI configuration? |
No, they should take effect here. It's just permissions that only apply against main |
|
hmm it looks like it doesn't trigger but it invalidated the previous status for all the required checks....? |
Try fixing the conflicts and see what happens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just don't forget to remove the test in CHANGELOG :)
| push: | ||
| paths-ignore: | ||
| - 'CHANGELOG.md' | ||
| pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it, can we consider using types to prevent CI from triggering when the PR description changes? The documentation states that
By default, a workflow only runs when a
pull_requestevent's activitytypeisopened,synchronize, orreopened. To trigger workflows by different activity types, use thetypeskeyword.
I believe we're interested in not triggering on the edited activity type, which would have been manually added somewhere, according to the above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice good find - ill edit!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.github/workflows/semver-checks.yml
Outdated
| pull_request_target: | ||
| types: | ||
| - opened | ||
| - edited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's the culprit!
Also, shouldn't we be triggering semver on push rather than (only) on pull_request_target?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice thanks! and yea I think we want both - fixing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @nicklan in case im missing anything?
|
i hate to be the bearer of bad news but it seems this isn't working? looks like all the CI still ran on that last commit that only changes CHANGELOG |
| @@ -1,5 +1,5 @@ | |||
| # Changelog | |||
|
|
|||
| test | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert before merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep - still debugging since it ran all the CI despite the new ignore-paths 😞
|
turns out github detects changes based on the entire diff of the PR not each commit so this becomes significantly harder now.. closing this and will open a follow-up that does some minimal CI improvements |
skip running our CI for
CHANGELOG.md. this will become more useful as we move to a newunreleasedsection in the changelog which PR authors will add to :)and remove
editedPR trigger for semver checks