Skip to content

Commit

Permalink
Don't make a note unless necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Dec 20, 2024
1 parent 64b5ddf commit c908911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions setup-note.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ if ! wgmeta "$wg"; then
wg=""
fi

{
echo '<note title="Discussion Venues" removeInRFC="true">'
if [[ -n "$wg" ]]; then
echo "<t>Discussion of this document takes place on the
Expand All @@ -59,3 +60,4 @@ fi
echo "<t>Source for this draft and an issue tracker can be found at
<eref target=\"https://${host}/${user}/${repo}\"/>.</t>"
echo '</note>'
} > .note.xml
2 changes: 1 addition & 1 deletion setup.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ README.md: $(LIBDIR)/setup-readme.sh $(drafts_xml) $(filter %.md, $(TEMPLATE_FIL

.PHONY: setup-note
setup-note: $(LIBDIR)/setup-note.sh
$(LIBDIR)/setup-note.sh $(GITHUB_HOST) $(GITHUB_USER) $(GITHUB_REPO) $(drafts_source) >.note.xml
$(LIBDIR)/setup-note.sh $(GITHUB_HOST) $(GITHUB_USER) $(GITHUB_REPO) $(drafts_source)
if [ -s .note.xml ]; then git add .note.xml; fi

.github/CODEOWNERS: $(LIBDIR)/setup-codeowners.py $(drafts_xml) $(DEPS_FILES)
Expand Down

0 comments on commit c908911

Please sign in to comment.