Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

The GitHub Action to detect an unmergeable pull request on changing its upstream.

License

NotificationsYou must be signed in to change notification settings

cats-oss/github-action-detect-unmergeable

Repository files navigation

CI

What's this?

  1. This action would work if you push some changes to your repository which enables this action.
  2. Then, this action would check all pull request about whether the pull request is mergeable or not.
  3. If the pull request is not mergeable (unmergeable), this action do:
    • Comment to the pull request about the changeset which might breaks it.
    • Change the label for its pull request to mark that it is unmergeable.
      • This action can remove the added label if the PR's conflict is resolved by rebasing or others (optional).

Motivation

  • Make easy to know what change breaks your pull request to unmergeable automatically.
  • I'd like to know the changeset which breaks our pull request.

How to use (Setup)

Add this example to your GitHub Actionsworkflow configuration.

YAML syntax

name:Detect unmergeable PRson:push:branches:      -"*"# Ignore all pushing for tagstags:      -"!*"# If you'd like to remove the added label by this action automatically# on updating a pull request by pushing changes.# Please recieve this event.pull_request:types:synchronizejobs:detect_unmergeable_pull_request_and_mark_them:runs-on:ubuntu-latestpermissions:contents:nonepull-requests:writesteps:      -name:Run the action to detect unmergeable PRs# We recommend to use an arbitary latest version# if you don't have any troubles.# You can also specify `master`, but it sometimes might be broken.uses:cats-oss/github-action-detect-unmergeable@v2env:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}

Debugging

If you have some troubles, please try to see informationby inserting the below snippet tosteps section for this workflow.

      -name:Dump GitHub Contextenv:GITHUB_CONTEXT:${{ toJson(github) }}run:echo "${GITHUB_CONTEXT}"

About

The GitHub Action to detect an unmergeable pull request on changing its upstream.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp