Skip to content

Prepending seems to delete entries #21

Description

@jcohenadad

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions