-
Notifications
You must be signed in to change notification settings - Fork 5
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
Action ran successfully but didn't enable auto-merge #28
Comments
Inspired by peter-evans/enable-pull-request-automerge's input description, I tried using a Personal Access Token and it worked for this action!
I haven't actually thought this entirely through, but my gut feeling tells me PAT doesn't fit my workflow requirement somehow. |
To put in more context, I tried using Github App token and got the same results of the original issue description. - name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Enable Pull Request Automerge
uses: alexwilson/[email protected]
with:
github-token: "${{ steps.generate_token.outputs.token }}"
merge-method: "REBASE" |
Hey, as far as I'm aware app tokens might not have permissions to perform this kind of action as there are restrictions at the app level. You should be able to use the native |
Or rather: I believe you may need to do server-to-server OAuth, to get a token for the context of the installation which your repository sits under. Is that how you're retrieving this token? |
If you aren't, and depending on how large the work to enable that behaviour is, it might be worth trying to implement this behaviour (I would personally find this behaviour useful!) |
I haven't tried OAuth Apps. What I've tried so far are:
|
I'm not sure if I'm correctly expecting what this action does, but imagined as this action is completed, I wouldn't need to click the
Enable auto-merge (rebase)
button by hand, which isn't happing for me. Did I set it up wrongfully?Here's the action yaml
Edit:
I enabled
ACTION_STEP_DEBUG
for the repo and got the below logsThe text was updated successfully, but these errors were encountered: