Skip to content

Patch action Godocmd #434

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

Closed
wants to merge 3 commits into from
Closed

Patch action Godocmd #434

wants to merge 3 commits into from

Conversation

tjgurwara99
Copy link
Member

@tjgurwara99 tjgurwara99 commented Nov 10, 2021

The godocmd action triggers an update on the branch but an action doesn't trigger an event and therefore if the new changes are pushed to the branch, no new actions will run - this includes golangci-lint-and-test action that we have which is a required action for all PRs and must satisfy this so it gets stuck in this because it will never get triggered 😓. The immediate fix is that the PR would not trigger this action, instead when the merge happens the action would be triggered and it would run as expected. Although, there is a possibility that this might not work because the master branch is protected and the push to master fails. This related to #407

@siriak siriak enabled auto-merge (squash) November 11, 2021 18:49
@tjgurwara99
Copy link
Member Author

tjgurwara99 commented Nov 12, 2021

@siriak, could we potentially create a PAT for this action? I don't think it will be able to write to master with the default token.

If we can't the other solution I have is to combine golanci-lint action and godocmd action together and make sure that godocmd runs before linting so that it's doesn't start again after commit from godocmd.

@siriak
Copy link
Member

siriak commented Nov 13, 2021

@tjgurwara99 We can make a special token for that action, just let me know what I should do :)

@tjgurwara99
Copy link
Member Author

Yes, please. Can you create a token so that it can write directly to master cause quite a few actions are failing 😓

@siriak siriak disabled auto-merge November 19, 2021 18:06
@raklaptudirm raklaptudirm deleted the godocmd-patch branch April 15, 2022 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants