Skip to content

Commit

Permalink
Change PR Bot and Issue Bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
offensive-vk authored Aug 31, 2024
1 parent 17dff63 commit 4ff5dab
Showing 1 changed file with 51 additions and 11 deletions.
62 changes: 51 additions & 11 deletions .github/workflows/pr-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,58 @@ on:
- cron: '0 */1 * * *'

jobs:
create_pr:
create_auto_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create or Open A PR
- uses: actions/checkout@v4

- name: Create Pull Request
id: open-pr
uses: repo-sync/pull-request@v2
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.BOT_TOKEN }}
author: "Hamster [bot] <[email protected]>"
signoff: true
branch: ${{ github.ref_name }}
title: 'Automated Pull Request by Actions Bot.'
body: |
## Automated Pull Request by Actions.
> [!IMPORTANT]
> Trigger / What Happened: ${{ github.event_name }} at ${{ github.event_path }} path.
> Details of run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
- Author: @npm-run-test
- Admin: @offensive-vk
- Branch: `${{ github.ref }}`
- Commit: ${{ github.sha }}
- Workflow Path: `${{ github.workflow_ref }}`
labels: |
bot
automated
assignees: npm-run-test
reviewers: offensive-vk
draft: false
create_issue:
runs-on: ubuntu-latest
steps:
- name: Create Issue using Bot
uses: dacbd/create-issue-action@main
with:
destination_branch: "classic"
pr_title: "Automated Pull Request by Actions Bot."
pr_template: ".github/PR_BOT_TEMPLATE.md"
pr_reviewer: "offensive-vk"
pr_label: "bot,automated,unknown"
pr_assignee: "npm-run-test"
pr_draft: false
token: ${{ secrets.BOT_TOKEN }}
title: |
[${{ github.workflow }}] during [${{ github.event_name }}]
assignees: npm-run-test
labels: automated
body: |
## Information Regarding the Pull Request:
> [!IMPORTANT]
> Trigger / What Happened: ${{ github.event_name }} at ${{ github.event_path }} path.
> Details of Run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
- Author: @npm-run-test
- Admin: @offensive-vk
- Branch: `${{ github.ref }}`
- Commit: ${{ github.sha }}
- Workflow Path: `${{ github.workflow_ref }}`

0 comments on commit 4ff5dab

Please sign in to comment.