Skip to content

Commit

Permalink
Merge pull request #78 from kreczko/kreczko/changelog-generator-doc
Browse files Browse the repository at this point in the history
Clarifications on how to use changelog generator
  • Loading branch information
benkrikler authored Sep 18, 2017
2 parents a54098c + 6cae2a2 commit de71737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data/L1Ntuple_test_3.root:
pep8:
@pep8 --exclude=.git,external examples cmsl1t

flake8:
flake8:
@flake8 $(shell file -p bin/* |awk -F: '/python.*text/{print $$1}') cmsl1t test --ignore=F401 --max-line-length=120

# benchmarks
Expand Down Expand Up @@ -81,6 +81,8 @@ test-code-full:
@$(NOSETESTS) -v -s test

changelog:
@echo "If you have not done it, please run"
@echo "export CHANGELOG_GITHUB_TOKEN=<from https://github.com/settings/tokens>"
@github_changelog_generator -u cms-l1t-offline -p cms-l1t-analysis --base docs/initial_changelog.md

docs-html:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ make benchmark
```

### Generating changelog
Since the changelog generator queries the repository you will need to give it
a github authentication token to bypass the limits for unauthenticated access.
You can create such tokens under https://github.com/settings/tokens .
```bash
export CHANGELOG_GITHUB_TOKEN=<from https://github.com/settings/tokens>
make changelog
```

Expand Down

0 comments on commit de71737

Please sign in to comment.