Skip to content

Commit aec4d87

Browse files
committed
Add script to link pull requests in changelog
Signed-off-by: Peter Colberg <[email protected]>
1 parent 6a027d3 commit aec4d87

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/changelog-link-pr.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Copyright (C) 2022 Intel Corporation
3+
# SPDX-License-Identifier: BSD-3-Clause
4+
5+
# Read changelog entries from standard input and print each
6+
# occurrence of a pull-request reference, e.g., [#123] to
7+
# standard output, along with the link to the pull request.
8+
9+
set -eu -o pipefail
10+
11+
grep -o '\[#[0-9]\+\]' | sed 's,\[#\([0-9]\+\)\],&: https://github.com/intel/fpga-runtime-for-opencl/pull/\1,' | sort -V

0 commit comments

Comments
 (0)