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: # of activity lines changes according to max_lines property #160

Conversation

jooncco
Copy link
Contributor

@jooncco jooncco commented Feb 24, 2022

Checks

I have...

  • read and understood the Contributing Guidelines
  • Updated any nessecary files such as the README.md and/or CHANGELOG.md.

Type of Pull request

  • Minor Change
    This Pull request doesn't break existing configuration.
  • Major Change
    This Pull request will break existing configuration.
  • Bug fix
    This Pull request will fix a (critical) bug.
  • Documentation
    This Pull request only changes documentation (README.md, CHANGELOG.md, etc.)
  • Other: __________

Description

This pull request fixes #159.
The number of activity lines will change according to max_lines property every time workflow runs.

Closes #159

@abhijoshi2k
Copy link
Member

This cannot be done because when user changes max-lines parameter, this might result into content lines being overwritten.
The simple solution here is to reset the workflow manually by removing the recent activity lines (run it as if running for first time)

@jooncco
Copy link
Contributor Author

jooncco commented Feb 25, 2022

This cannot be done because when user changes max-lines parameter, this might result into content lines being overwritten. The simple solution here is to reset the workflow manually by removing the recent activity lines (run it as if running for first time)

Thanks for the reply, @abhijoshi2k.
My changes doesn't affect other contents in README.md.

readmeContent.splice(startIdx, endIdx-startIdx);

This line limits the deletion into only [startIdx, endIdx).

@jooncco
Copy link
Contributor Author

jooncco commented Feb 25, 2022

And thanks for the simple solution.
I actually was aware of that, but wanted to suggest this kind of feature.

@abhijoshi2k
Copy link
Member

I'll test it once and get back to you. I'm a bit occupied currently. Give me some time.

@abhijoshi2k
Copy link
Member

@jooncco Thanks for the PR. I just tested your edited code. It works as expected. So I think this is ready to be merged.
@PuneetGopinath I am approving this. Please check and merge.

@abhijoshi2k abhijoshi2k added minor Will be added to next minor release Priority: low Low priority for this issue/pr. Status: Ready The Pull request is ready for reviews and getting merged labels Mar 3, 2022
@PuneetGopinath PuneetGopinath merged commit 97bce8f into Readme-Workflows:main Mar 3, 2022
@jooncco jooncco deleted the fix/number-of-activity-lines-stay-unchanged branch March 3, 2022 11:59
@jooncco
Copy link
Contributor Author

jooncco commented Mar 3, 2022

appreciate it :)

@kaustav202
Copy link

@PuneetGopinath @abhijoshi2k @jooncco I am still facing the issue . I've tried removing the recent activity comment to no avail. It always limits to 5 activities only. Kindly let me know if there's any workaround to it. Thank you.

@Andre601
Copy link
Member

Did you actually update your settings?
Also, please open a discussion for support.

@kaustav202
Copy link

Yes, it's working alright. Needed to change path for the config file ( added custom ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Will be added to next minor release Priority: low Low priority for this issue/pr. Status: Ready The Pull request is ready for reviews and getting merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug report: # of activity lines remains the same after I change max_lines property
5 participants