From eacd9ac2400a6896ee770765fe217992131ed278 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 9 Oct 2022 17:01:21 +0200 Subject: [PATCH 1/2] Add pr_to_nighty_template.yml --- .github/ISSUE_TEMPLATE/pr_to_nighty_template.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/pr_to_nighty_template.yml diff --git a/.github/ISSUE_TEMPLATE/pr_to_nighty_template.yml b/.github/ISSUE_TEMPLATE/pr_to_nighty_template.yml new file mode 100644 index 00000000..8854ac9d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/pr_to_nighty_template.yml @@ -0,0 +1,13 @@ +## :memo: Brief description + + + + +## :computer: Commits + + + + +## :file_folder: Modified files + + From 9444000d461d4ca3b4bf76431360d74c48e999d7 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 9 Oct 2022 17:02:28 +0200 Subject: [PATCH 2/2] Use milkmaker as PR author Use template to be able to use get_diff var --- .github/workflows/pr_to_nightly.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_to_nightly.yml b/.github/workflows/pr_to_nightly.yml index 11e19366..72eb4424 100644 --- a/.github/workflows/pr_to_nightly.yml +++ b/.github/workflows/pr_to_nightly.yml @@ -8,18 +8,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Run the Action uses: devops-infra/action-pull-request@v0.5.0 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.PRTONIGHTLY_ACTION_PAT }} title: Automatic PR to nightly from ${{ github.event.repository.updated_at}} assignee: DerLinkman source_branch: staging target_branch: nightly reviewer: DerLinkman label: upstream - body: Merge current staging state to nightly branch - get_diff: true \ No newline at end of file + template: .github/ISSUE_TEMPLATE/pr_to_nighty_template.yml + get_diff: true