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: Don't publish comments when no files is update #674

Merged
merged 7 commits into from
Mar 1, 2024

Conversation

benjaminParisel
Copy link
Contributor

@benjaminParisel benjaminParisel commented Feb 16, 2024

Skip the Comments step when no file updates are detected.

Closes #534

  • ⚠️ Before Merge this PR, we need to remove the cherry-picked commit

Copy link
Contributor

github-actions bot commented Feb 16, 2024

♻️ PR Preview 7355a4e has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

Copy link
Contributor

github-actions bot commented Feb 16, 2024

♻️ PR Preview 7355a4e has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

benjaminParisel and others added 3 commits February 16, 2024 16:59
The sources (providing the repository url and ref, several elements can be used) are only logged
when the debug level is enabled to prevent from generating too many logs.
@benjaminParisel
Copy link
Contributor Author

benjaminParisel commented Feb 16, 2024

I cherry-picked the commit from the #673 Pull request to test the preview workflow.
In #673, we see a useless comment with some undefined/undefined links.

image

With the fix in this PR, this link is not adding for this PR.

@benjaminParisel benjaminParisel added bug Something isn't working CI ⚙️ labels Feb 16, 2024
@benjaminParisel benjaminParisel marked this pull request as ready for review February 16, 2024 16:13
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

good job!

@tbouffard tbouffard marked this pull request as draft February 22, 2024 16:11
@tbouffard
Copy link
Member

Put in draft until we remove the cherry-pick commit to validate the fix.
Once merged, this will be tested in #673

required: false
default: 'modules/**/*.adoc'
default: "modules/**/*.adoc"
Copy link
Member

@tbouffard tbouffard Feb 22, 2024

Choose a reason for hiding this comment

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

question: shouldn't we restrict to modules/**/pages/**/*.adoc to fully fix #534?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to try i think

Copy link
Member

Choose a reason for hiding this comment

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

Fine, I am going to open a fake PR in the labs-doc repository.

Copy link
Member

Choose a reason for hiding this comment

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

Commited in aaf1a82.
✔️ Tested in bonitasoft/bonita-labs-doc#152 (comment). The previous edit shows that the navbar files was previously listed. This is not the case anymore.

Copy link

sonarqubecloud bot commented Mar 1, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@tbouffard tbouffard marked this pull request as ready for review March 1, 2024 11:02
@tbouffard
Copy link
Member

tbouffard commented Mar 1, 2024

I am merging this PR and validate the change in the master branch by updating bonitasoft/bonita-labs-doc#152
✔️ Tests OK: bonitasoft/bonita-labs-doc#152 (comment)

@tbouffard tbouffard merged commit 621278f into master Mar 1, 2024
5 checks passed
@tbouffard tbouffard deleted the feat/remove_undefined_on_PR_preview_link branch March 1, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI ⚙️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Publish PR preview" comments: don't include extra files in the list of pages
2 participants