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

Skip deleting the branch in the upstream of a forked repo #913

merged 3 commits into from
Jan 26, 2023

Skip deleting the branch in the upstream of a forked repo #913

merged 3 commits into from
Jan 26, 2023


Copy link

@dsame dsame commented Jan 11, 2023

Handle an attempt of the deleting a branch in a forked repo

When the action runs against the repo that has PRs from the forked repo it attempted to delete the branch from the fork repo and failed.

The PR fix this.

Related issue:
link to the related issue.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@dsame dsame marked this pull request as ready for review January 24, 2023 08:04
@dsame dsame requested a review from a team as a code owner January 24, 2023 08:04
@dsame dsame self-assigned this Jan 24, 2023
Copy link

@marko-zivic-93 marko-zivic-93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if the main logic is actually ok, due to lack of my personal understanding about the issue, but if other guys from the team agree that it is ok, I am all for it 😄

@dsame dsame merged commit c4a13d8 into actions:main Jan 26, 2023
kayman-mk pushed a commit to Hapag-Lloyd/Renovate-Global-Configuration that referenced this pull request Nov 19, 2023
[![Mend Renovate logo

This PR contains the following updates:

| Package | Type | Update | Change |
| [actions/stale]( | action | major |
`v7.0.0` -> `v8.0.0` |


### Release Notes

<summary>actions/stale (actions/stale)</summary>

### [`v8.0.0`](


:warning: This version contains breaking changes :warning:

#### What's Changed

- New option labels-to-remove-when-stale enables users to specify list
of comma delimited labels that will be removed when the issue or PR
becomes stale by [@&#8203;panticmilos](
- Skip deleting the branch in the upstream of a forked repo by
- abort the build on the error by
[@&#8203;dsame]( in

#### Breaking Changes

- In this release we prevent scenarios when the build is not interrupted
on some exceptions, which led to successful builds when they are
supposed to fail

#### Example

name: 'Remove labels when the issue or PR becomes stale'
    - cron: '30 1 * * *'

    pull-requests: write

    runs-on: ubuntu-latest
      - uses: actions/stale@v8
          labels-to-remove-when-stale: 'label1,label2'



### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update


- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box


This PR has been generated by [Mend
Renovate]( View
repository job log


Co-authored-by: renovate[bot] <29139614+renovate[bot]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants