@@ -28,16 +28,17 @@ jobs:
2828
2929 - name : Update frontmatter
3030 run : |
31- node rfcs-tooling/update-rfc-stage.js ${{ inputs.new-stage }} ${{ inputs.rfc-path }}
31+ node rfcs-tooling/scripts/ update-rfc-stage.mjs ${{ inputs.new-stage }} ${{ inputs.rfc-path }}
3232
3333 - name : Set variables for use in PR
3434 id : pr-variables
3535 run : |
36- frontmatter=`node rfcs-tooling/rfc-frontmatter.js ${{ inputs.rfc-path }}`
36+ frontmatter=`node rfcs-tooling/scripts/ rfc-frontmatter.mjs ${{ inputs.rfc-path }}`
3737 ready_for_release_pr=`echo $frontmatter | jq '.prs."ready-for-release"'`
3838 ready_for_release_pr=${ready_for_release_pr//\"/}
3939 released_pr=`echo $frontmatter | jq '.prs.released'`
4040 released_pr=${released_pr//\"/}
41+ title=`echo $frontmatter | jq '.title'`
4142 if [[ ${{ inputs.new-stage }} == "ready-for-release" ]]; then
4243 pretty_stage="Ready for Release"
4344 template=`sed -e 's/__RFC_NUMBER__/${{ inputs.rfc-number }}/g' .github/PULL_REQUEST_TEMPLATE/advance-to-ready-for-release.md`
@@ -53,23 +54,24 @@ jobs:
5354 echo 'EOF' >> $GITHUB_OUTPUT
5455 echo "Pretty Stage: $pretty_stage"
5556 echo "pretty-stage=$pretty_stage" >> $GITHUB_OUTPUT
57+ echo "title=$title" >> $GITHUB_OUTPUT
5658
5759 - name : Open PR
5860 id : create-pr
5961 uses : peter-evans/create-pull-request@v4.2.0
6062 with :
6163 token : ${{ secrets.personal-access-token }}
62- commit-message : " Advance RFC to Stage ${{ inputs.new-stage }}"
64+ commit-message : " Advance RFC {{ inputs.rfc-number }} to Stage ${{ inputs.new-stage }}"
6365 add-paths : ' text'
6466 branch : " advance-rfc-${{ inputs.rfc-number }}"
65- title : " Advance RFC #${{ inputs.rfc-number}} to Stage ${{ steps.pr-variables.outputs.pretty-stage }}"
67+ title : " Advance RFC #${{ inputs.rfc-number}} `${{ steps.pr-variables.outputs.title }}` to Stage ${{ steps.pr-variables.outputs.pretty-stage }}"
6668 body : " ${{ steps.pr-variables.outputs.body }}"
6769 labels : " RFC Advancement,S-${{ steps.pr-variables.outputs.pretty-stage}}"
6870 draft : true
6971
7072 - name : Add new PR link to RFC frontmatter
7173 run : |
72- node rfcs-tooling/update-advancement-pr.js ${{ inputs.rfc-path }} ${{ inputs.new-stage}} ${{ steps.create-pr.outputs.pull-request-url }}
74+ node rfcs-tooling/scripts/ update-advancement-pr.mjs ${{ inputs.rfc-path }} ${{ inputs.new-stage}} ${{ steps.create-pr.outputs.pull-request-url }}
7375
7476 - name : Update PR
7577 run : |
0 commit comments