-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
chore: Renew: add or remove 'stale' label #7957
Conversation
It seems no problem! |
I forgot for comment. We have labelling manual Can refactor with this? We remind PR older stale manually. After this if we cant see trigger bot, we can still added manually first and waiting next trigger? # CONFLICTING
if [ "$mergeable" == "CONFLICTING" ]; then
# No have 'stale` label
if [[ ! "$labels" == *"stale"* ]]; then
# Add "stale" label
gh pr edit $url --add-label "stale"
fi
# Add a comment
gh pr comment $url --body ":wave: Hi, @$author!<br><br>We detected conflicts in your PR against the base branch :speak_no_evil:<br>You may want to sync :arrows_counterclockwise: your branch with upstream!<br><br>Ref: [Syncing Your Branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#pushing-your-branch)"
fi |
@ddevsr Doesn't that make the comment again and again? |
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/OWNER/REPO/pulls/PULL_NUMBER/comments Can we get contains each per each comment on PR from bot using github cli? |
@ddevsr What do you mean? |
yes, see {
"author": {
"id": "MDQ6VXNlcjg3OTU1",
"is_bot": false,
"login": "kenjis",
"name": "kenjis"
},
"number": 7933
} or specific target : {
"author": {
"is_bot": true,
"login": "app/dependabot"
},
"number": 7939
} |
@kenjis The run results show UNKNOWN But we need to review the push again after this. |
@totoprayogo1916 I've found the documentation.
|
Push monitoring on develop branch, unable to show "CONFLICTING" value. Meanwhile, the results of the pull request can show which PR is "CONFLICTING". So, when neither the develop nor 4.x branches are updated by a merged pull request, it cannot attach the label "stale" to the conflicting PR. |
Description
Returning #7950 unexpectedly
$mergeable
not only results in MERGEABLE or CONFLICTING but also UNKNOWNChecklist: