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

Prepending seems to delete entries #21

Open
jcohenadad opened this issue Nov 30, 2020 · 2 comments
Open

Prepending seems to delete entries #21

jcohenadad opened this issue Nov 30, 2020 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jcohenadad
Copy link
Member

with changelog-neuropoly v1.0.1

Syntax + output
julien-macbook:~/code/spine-generic/data-multi-subject $ changelog spine-generic/data-multi-subject --update --log-level DEBUG            
INFO Checking API rate limits:
DEBUG Starting new HTTPS connection (1): api.github.com:443
DEBUG https://api.github.com:443 "GET /rate_limit HTTP/1.1" 200 None
DEBUG api rate limit stats: limit=5000, remaining=5000, reset=2020-11-30 16:10:22
DEBUG rate_limits: {'resources': {'core': {'limit': 5000, 'used': 517, 'remaining': 4483, 'reset': 1606770622}, 'search': {'limit': 30, 'used': 0, 'remaining': 30, 'reset': 1606769444}, 'graphql': {'limit': 5000, 'used': 0, 'remaining': 5000, 'reset': 1606772984}, 'integration_manifest': {'limit': 5000, 'used': 0, 'remaining': 5000, 'reset': 1606772984}, 'source_import': {'limit': 100, 'used': 0, 'remaining': 100, 'reset': 1606769444}, 'code_scanning_upload': {'limit': 500, 'used': 0, 'remaining': 500, 'reset': 1606772984}}, 'rate': {'limit': 5000, 'used': 517, 'remaining': 4483, 'reset': 1606770622}}
INFO Core api limit=5000 remaining=4483 reset=2020-11-30 16:10:22
INFO Search api limit=30 remaining=30 reset=2020-11-30 15:50:44
DEBUG Starting new HTTPS connection (1): api.github.com:443
DEBUG https://api.github.com:443 "GET /repos/spine-generic/data-multi-subject/milestones HTTP/1.1" 200 None
DEBUG api rate limit stats: limit=5000, remaining=5000, reset=2020-11-30 16:10:22
DEBUG Open milestones found: [{'url': 'https://api.github.com/repos/spine-generic/data-multi-subject/milestones/3', 'html_url': 'https://github.com/spine-generic/data-multi-subject/milestone/3', 'labels_url': 'https://api.github.com/repos/spine-generic/data-multi-subject/milestones/3/labels', 'id': 5901380, 'node_id': 'MDk6TWlsZXN0b25lNTkwMTM4MA==', 'number': 3, 'title': 'r20201130', 'description': '', 'creator': {'login': 'jcohenadad', 'id': 2482071, 'node_id': 'MDQ6VXNlcjI0ODIwNzE=', 'avatar_url': 'https://avatars1.githubusercontent.com/u/2482071?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/jcohenadad', 'html_url': 'https://github.com/jcohenadad', 'followers_url': 'https://api.github.com/users/jcohenadad/followers', 'following_url': 'https://api.github.com/users/jcohenadad/following{/other_user}', 'gists_url': 'https://api.github.com/users/jcohenadad/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/jcohenadad/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/jcohenadad/subscriptions', 'organizations_url': 'https://api.github.com/users/jcohenadad/orgs', 'repos_url': 'https://api.github.com/users/jcohenadad/repos', 'events_url': 'https://api.github.com/users/jcohenadad/events{/privacy}', 'received_events_url': 'https://api.github.com/users/jcohenadad/received_events', 'type': 'User', 'site_admin': False}, 'open_issues': 0, 'closed_issues': 3, 'state': 'open', 'created_at': '2020-09-21T17:50:46Z', 'updated_at': '2020-11-30T20:40:07Z', 'due_on': None, 'closed_at': None}]
DEBUG Starting new HTTPS connection (1): api.github.com:443
DEBUG https://api.github.com:443 "GET /repos/spine-generic/data-multi-subject/releases HTTP/1.1" 200 None
DEBUG api rate limit stats: limit=5000, remaining=5000, reset=2020-11-30 16:10:22
DEBUG Starting new HTTPS connection (1): api.github.com:443
DEBUG https://api.github.com:443 "GET /search/issues?q=milestone%3A%22r20201130%22+is%3Apr+repo%3Aspine-generic%2Fdata-multi-subject+state%3Aclosed+is%3Amerged+no%3Alabel HTTP/1.1" 200 None
DEBUG api rate limit stats: limit=30, remaining=30, reset=2020-11-30 15:50:44
INFO Milestone: r20201130, Label: None, Count: 2
INFO Total number of pull requests with label: 2
DEBUG Starting new HTTPS connection (1): api.github.com:443
DEBUG https://api.github.com:443 "GET /search/issues?q=milestone%3A%22r20201130%22+is%3Apr+repo%3Aspine-generic%2Fdata-multi-subject+state%3Aclosed+is%3Amerged+no%3Alabel HTTP/1.1" 200 None
DEBUG api rate limit stats: limit=30, remaining=30, reset=2020-11-30 15:50:44
INFO Milestone: r20201130, Label: None, Count: 2
INFO Backup created: CHANGES.md.bak
INFO Changelog written into CHANGES.md

Input file (to rename: CHANGES.md):
CHANGES_old.md.txt

Output file:
CHANGES_new.md.txt

Observed behaviour:
the entries within "## r20201001" were erased

@jcohenadad jcohenadad added the bug Something isn't working label Nov 30, 2020
@jcohenadad
Copy link
Member Author

ah! the problem might be elsewhere... there was no opened milestone for the october 1st release...

@jcohenadad
Copy link
Member Author

ok i confirm the prepending problem remains-- the information is there, but it's badly prepended:

## r20201001

## r20201130 (2020-11-30)
[View detailed changelog](https://github.com/spine-generic/data-multi-subject/compare/r20201001...r20201130)
 - Fix broken link to analysis instructions.  [View pull request](https://github.com/spine-generic/data-multi-subject/pull/61)
[View detailed changelog](https://github.com/spine-generic/data-multi-subject/compare/r20200917...r20201001)
 - Create LICENSE.  [View pull request](https://github.com/spine-generic/data-multi-subject/pull/55)
 - Update participants.tsv.  [View pull request](https://github.com/spine-generic/data-multi-subject/pull/53)

instead of

## r20201130 (2020-11-30)
[View detailed changelog](https://github.com/spine-generic/data-multi-subject/compare/r20201001...r20201130)
 - Fix broken link to analysis instructions.  [View pull request](https://github.com/spine-generic/data-multi-subject/pull/61)

## r20201001
[View detailed changelog](https://github.com/spine-generic/data-multi-subject/compare/r20200917...r20201001)
 - Create LICENSE.  [View pull request](https://github.com/spine-generic/data-multi-subject/pull/55)
 - Update participants.tsv.  [View pull request](https://github.com/spine-generic/data-multi-subject/pull/53)

@jcohenadad jcohenadad added the good first issue Good for newcomers label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant