Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: add auto label merge conflicts #99064

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/auto-label-merge-conflicts.yml
@@ -0,0 +1,20 @@
# To run it manually:
# 1. Acquire a GITHUB OAUTH token with permission edit nixos/nixpkgs labels
# 2. Make sure the git remote origin exists and points to
# https://github.com/NixOS/nixpkgs.git (it doesn't work with SSH).
# 3. Run nix-shell -p act --run "act -s GITHUB_TOKEN=xxx -j label-merge-conflict > label-merge-conflict.log"

on:
schedule:
#daily
- cron: '0 0 * * *'

jobs:
label-merge-conflict:
runs-on: ubuntu-latest
steps:
- name: Auto-label merge conflicts
uses: ryantm/auto-label-merge-conflicts@720e6dddd1a208158b2b880393ff54c9e905e99f
with:
CONFLICT_LABEL_NAME: "2.status: merge conflict"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}