Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phpdevsr/check-conflict-action
Automation labeling and comment in PR Conflict
https://github.com/phpdevsr/check-conflict-action
actions automation conflict github
Last synced: 7 days ago
JSON representation
Automation labeling and comment in PR Conflict
- Host: GitHub
- URL: https://github.com/phpdevsr/check-conflict-action
- Owner: PHPDevsr
- License: mit
- Created: 2023-09-21T13:30:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T02:21:26.000Z (6 months ago)
- Last Synced: 2024-05-21T03:34:40.974Z (6 months ago)
- Topics: actions, automation, conflict, github
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Check conflict branch in PR
A GitHub Action that checks the Pull Request with conflict branch, labeling custom conflict and also places a comment in the PR to inform the author about next steps.
## Usage
```yml
name: Check Conflict in PR
on:
schedule:
- cron: '*/20 * * * *' # Run at every 20 minutesjobs:
build:
name: Check conflict branch in PR
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4- name: Check conflict branch in PR
uses: PHPDevsr/check-conflict-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
label: Conflicts
```For note: `The shortest interval you can run scheduled workflows is once every 5 minutes.`
See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
## Change PR Comment
The comment that will be placed in the PR upon detecting conflict branch can be changed using the `comment` field:
```yml
- name: Check conflict branch in PR
uses: PHPDevsr/check-conflict-action@v1
with:
comment: |
Customized comment in the PR
```If you need tagged the author, you can use `authorTarget` magic get author in PR
## Change PR Label
The comment that will be placed in the PR upon detecting conflict branch can be changed using the `comment` field:
```yml
- name: Check conflict branch in PR
uses: PHPDevsr/check-conflict-action@v1
with:
label: CustomizedLabel
```## Change list limit PR
When job schedule running, detecting by default `100` last PR.
```yml
- name: Check conflict branch in PR
uses: PHPDevsr/check-conflict-action@v1
with:
limit: 200
```