Skip to content

Commit 64dd632

Browse files
committed
changelog-from-pr: Fix Python formatting
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
1 parent eaa7033 commit 64dd632

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build-scripts/changelog-from-pr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
import re
77
import getpass
88

9+
910
def isIssue(session, number):
1011
try:
1112
res = session.get(f"https://api.github.com/repos/PowerDNS/pdns/issues/{number}")
1213
issue_info = res.json()
1314
# GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the pull_request key.
14-
return not 'pull_request' in issue_info
15+
return not "pull_request" in issue_info
1516
except (requests.exceptions.HTTPError, ValueError):
1617
return False
1718

19+
1820
argp = argparse.ArgumentParser()
1921
argp.add_argument("--oneline", action="store_true", help="Make one-lined changelog entries (for 4.0 and older)")
2022
argp.add_argument(

0 commit comments

Comments
 (0)