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

feat: adding 'documentation' type to pyproject #3189

Closed
wants to merge 5 commits into from

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Jun 19, 2024

Description

I want to have a Documentation section in the release page.

I believe this is an starting point, but because of this:
https://github.com/ansys/actions/blob/d01c6d2b1098b42ea9657767171034607431bb67/doc-changelog/action.yml#L120-L125

I think there inner plumbing is still not in place.

Issue linked

N/A

Checklist

@germa89 germa89 requested a review from a team as a code owner June 19, 2024 11:13
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@germa89 germa89 self-assigned this Jun 19, 2024
@germa89 germa89 added CI/CD Related with CICD, Github Actions, etc documentation labels Jun 19, 2024
@germa89
Copy link
Collaborator Author

germa89 commented Jun 19, 2024

Pinging @klmcadams for feedback.

@germa89 germa89 requested a review from klmcadams June 19, 2024 11:14
@github-actions github-actions bot added dependencies and removed CI/CD Related with CICD, Github Actions, etc labels Jun 19, 2024
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.17%. Comparing base (d4fe3a1) to head (487b437).
Report is 63 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3189      +/-   ##
==========================================
- Coverage   86.61%   84.17%   -2.45%     
==========================================
  Files          53       53              
  Lines        9630     9630              
==========================================
- Hits         8341     8106     -235     
- Misses       1289     1524     +235     

@clatapie
Copy link
Contributor

I guess this change also needs to be applied here, otherwise, I think that it will be ignored by the action.

@germa89
Copy link
Collaborator Author

germa89 commented Jun 20, 2024

I guess this change also needs to be applied here, otherwise, I think that it will be ignored by the action.

You are right. @klmcadams can you confirm?

@klmcadams
Copy link

@clatapie @germa89 that's right! I'd probably add it under the "bug" line: "documentation": "documentation". The key is the label that is in the PR and the value is the section that will be in the changelog

@germa89
Copy link
Collaborator Author

germa89 commented Jun 20, 2024

@klmcadams Instead of adding "Documentation": "documentation" key to that dict, I rather you have a look first to this PR #3183 where some related discussion is happening.

I think all conversation started here: #3183 (comment)

@germa89
Copy link
Collaborator Author

germa89 commented Jun 24, 2024

Delayed until changes are implemented in changelog action.

@germa89 germa89 added the DO NOT MERGE Not ready to be merged yet label Jun 24, 2024
@germa89 germa89 marked this pull request as draft June 24, 2024 10:06
@germa89 germa89 changed the title feat: adding type to pyproject feat: adding 'documentation' type to pyproject Jun 24, 2024
@germa89
Copy link
Collaborator Author

germa89 commented Jul 9, 2024

Please @klmcadams let me know when this is ready.

@github-actions github-actions bot added dependencies maintenance General maintenance of the repo (libraries, cicd, etc) new feature Request or proposal for a new feature labels Jul 9, 2024
@germa89
Copy link
Collaborator Author

germa89 commented Aug 5, 2024

@klmcadams I guess this PR is no longer needed since:

https://github.com/ansys/actions/blame/13ad448c784451d20c407a40f456b89cc6565df8/doc-changelog/parse_pr_title.py#L221C9-L229

GitHub
A collection of reusable workflows. Contribute to ansys/actions development by creating an account on GitHub.

@klmcadams
Copy link

@germa89 yes, sorry! @RobPasMue has a release been made to incorporate the doc-changelog changes yet?

@RobPasMue
Copy link
Member

@germa89 yes, sorry! @RobPasMue has a release been made to incorporate the doc-changelog changes yet?

Not yet. I need to talk with @jorgepiloto first. We should do a major release probably

@RobPasMue
Copy link
Member

Also, we should solve ansys/actions#531, at least partially first...

@RobPasMue
Copy link
Member

I can work on that this morning before releasing.

@germa89
Copy link
Collaborator Author

germa89 commented Aug 20, 2024

Any news about this? @RobPasMue @klmcadams ? :)

@klmcadams
Copy link

@germa89 yes! If you bump doc-changelog to v7, then it should update your pyproject.toml by adding the missing tool.towncrier.type sections. If you want to use conventional commits, then add "use-conventional-commits: true" under the "with" section

@germa89
Copy link
Collaborator Author

germa89 commented Aug 27, 2024

use-conventional-commits

I'm a bit confused on what does this argument. I did checked the action and still I don't get it. I guess it needs a bit of documentation??

https://github.com/ansys/actions/blob/c9169fb523c39288fcf62425917f8b5de5d01dc0/doc-changelog/action.yml#L75

GitHub
A collection of reusable workflows. Contribute to ansys/actions development by creating an account on GitHub.

@germa89
Copy link
Collaborator Author

germa89 commented Aug 27, 2024

Closing because it has been implemented in the actions. Thank you a lot @klmcadams !! :)

@germa89 germa89 closed this Aug 27, 2024
@klmcadams
Copy link

klmcadams commented Aug 27, 2024

use-conventional-commits

I'm a bit confused on what does this argument. I did checked the action and still I don't get it. I guess it needs a bit of documentation??

https://github.com/ansys/actions/blob/c9169fb523c39288fcf62425917f8b5de5d01dc0/doc-changelog/action.yml#L75

GitHub**actions/doc-changelog/action.yml at c9169fb523c39288fcf62425917f8b5de5d01dc0 · ansys/actions**A collection of reusable workflows. Contribute to ansys/actions development by creating an account on GitHub.

The use-conventional-commits input is true when you want the bot to determine what category your fragment file should be in based on the conventional commit in your PR title, rather than the labels in the PR. For example, this PR would be 3189.added.md since the conventional commit type "feat" would equate to "added" in the changelog, and the content of the file would be "adding 'documentation' type to pyproject"

@germa89
Copy link
Collaborator Author

germa89 commented Aug 27, 2024

Got it now. Thank you! :)

@germa89 germa89 deleted the feat/adding-documentation-section-in-towncrier branch August 27, 2024 17:09
@klmcadams
Copy link

No problem! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies DO NOT MERGE Not ready to be merged yet maintenance General maintenance of the repo (libraries, cicd, etc) new feature Request or proposal for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants