Created a first draft of this action. #14
@ -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:
|
||||
|
@ -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
|
||||
|
1
index.js
1
index.js
@ -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}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user