We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using utils/wait-for-workflow in a repo under my personal account.
The context being sent to the GHA is the following :
context: Context { payload: { action: 'closed', number: 215, pull_request: { ... }, repository: { ... }, sender: { ... login: 'RupertBarrow', ... type: 'User', url: 'https://api.github.com/users/RupertBarrow' } }, eventName: 'pull_request_target', sha: 'xxx', ref: 'refs/heads/release', workflow: 'Backport', action: 'wait', actor: 'RupertBarrow', job: 'waitForRelease', }
In your code (https://github.com/smartcontractkit/chainlink-github-actions/blob/main/utils/wait-for-workflows/action.yml#L45C15-L45C56), your are expecting a context.payload.organization (in context.payload.organization.login) but I am only sending a context.payload.sender (presumaby because I am working on a repo in my personal account, not part of an organization ?)
context.payload.organization
context.payload.organization.login
context.payload.sender
Line 45 should be owner: context.payload.organization?.login || context.payload.sender?.login, instead of owner: context.payload.organization.login,
owner: context.payload.organization?.login || context.payload.sender?.login,
owner: context.payload.organization.login,
I will send you a PR.
The text was updated successfully, but these errors were encountered:
Handle personal repos as well as organization repos
3558da1
This fixes smartcontractkit#147.
Successfully merging a pull request may close this issue.
I am using utils/wait-for-workflow in a repo under my personal account.
The context being sent to the GHA is the following :
In your code (https://github.com/smartcontractkit/chainlink-github-actions/blob/main/utils/wait-for-workflows/action.yml#L45C15-L45C56), your are expecting a
context.payload.organization
(incontext.payload.organization.login
) but I am only sending acontext.payload.sender
(presumaby because I am working on a repo in my personal account, not part of an organization ?)Line 45 should be
owner: context.payload.organization?.login || context.payload.sender?.login,
instead of
owner: context.payload.organization.login,
I will send you a PR.
The text was updated successfully, but these errors were encountered: