From 6cf8a9fe7298536d91473a7ec55099a8e9687052 Mon Sep 17 00:00:00 2001 From: tomassavukaitis Date: Tue, 14 Jan 2025 19:18:17 +0200 Subject: [PATCH 1/4] Create welcome.yml --- .github/workflows/welcome.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/workflows/welcome.yml diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml new file mode 100644 index 0000000..6c9a6eb --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,6 @@ +name: Post welcome comment +on: + pull_request: + types: [opened] +permissions: + pull-requests: write From 23a099fcea72b2a8f6cf7212aeea010d3cf9903a Mon Sep 17 00:00:00 2001 From: tomassavukaitis Date: Tue, 14 Jan 2025 19:21:36 +0200 Subject: [PATCH 2/4] Update welcome.yml --- .github/workflows/welcome.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 6c9a6eb..dfaa776 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -4,3 +4,7 @@ on: types: [opened] permissions: pull-requests: write +jobs: + build: + name: Post welcome comment + runs-on: ubuntu-latest From 2c4f8c2e0e430b45ceb02550676971196125fb0e Mon Sep 17 00:00:00 2001 From: tomassavukaitis Date: Tue, 14 Jan 2025 19:24:25 +0200 Subject: [PATCH 3/4] Update welcome.yml --- .github/workflows/welcome.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index dfaa776..a799e30 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -8,3 +8,8 @@ jobs: build: name: Post welcome comment runs-on: ubuntu-latest + steps: + - run: gh pr comment $PR_URL --body "Welcome to the repository!" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} From 3143d754235afa5c6176f18f798f200a2483d7ce Mon Sep 17 00:00:00 2001 From: tomassavukaitis Date: Tue, 14 Jan 2025 19:28:31 +0200 Subject: [PATCH 4/4] Update welcome.yml --- .github/workflows/welcome.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index a799e30..e4c9f74 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -9,7 +9,7 @@ jobs: name: Post welcome comment runs-on: ubuntu-latest steps: - - run: gh pr comment $PR_URL --body "Welcome to the repository!" + - run: gh pr comment $PR_URL --body "Welcome to the repository! TOMASSSSS" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_URL: ${{ github.event.pull_request.html_url }}