Created a first draft of this action. #14

Merged
Philipp merged 68 commits from draft into main 2023-11-19 23:21:49 +01:00
3 changed files with 2 additions and 28 deletions
Showing only changes of commit 6e53dbce14 - Show all commits

View File

@ -23,33 +23,6 @@ jobs:
branch: update/pre-commit-hooks
push_options: --force
create_branch: true
# - run: |
# curl -X 'POST' \
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
# -H 'accept: application/json' \
# -H 'authorization: Basic auth token' \
# -H 'Content-Type: application/json' \
# -d '{
# "base": "main",
# "body": "string",
# "head": "update/pre-commit-hooks",
# "title": "Some title"
# }'
# - name: Make a curl request
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# curl -X 'POST' \
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
# -H 'accept: application/json' \
# -H "Authorization: token ${GITHUB_TOKEN}" \
# -H 'Content-Type: application/json' \
# -d '{
# "base": "main",
# "body": "string",
# "head": "update/pre-commit-hooks",
# "title": "Some title"
# }'
- name: My PR action
uses: ./
with:

View File

@ -16,7 +16,7 @@ inputs:
body:
description: Body of the pull request
required: false
default: Some default tile!
default: Some default body!
assignees:
description: Comma-separated list of assignees for the pull request
required: false

View File

@ -62,6 +62,7 @@ async function getAndPostPullRequests() {
const postResult = await postResponse.json().url;
core.info("POST request completed successfully.");
core.info(`Created the post request under: ${postResult}`);
return postResult;
} catch (error) {
core.setFailed(`Action failed with error: ${error}`);