Skip to content

chore: update action to ensure we get the reference before running "prettier" - #305

Merged
isabelcosta merged 3 commits into
anitab-org:developfrom
ftonato:chore/update-prettier
Oct 18, 2021
Merged

chore: update action to ensure we get the reference before running "prettier"#305
isabelcosta merged 3 commits into
anitab-org:developfrom
ftonato:chore/update-prettier

Conversation

@ftonato

@ftonato ftonato commented Oct 17, 2021

Copy link
Copy Markdown
Contributor

Description

In order to fix the current problem we have with the action that is executed for "prettier", this PR forces that within the checkout action we always have the last reference (from current branch or pull-request).

Type of Change:

  • Chore (Process update)

Issues

Fixes: #310


References

@isabelcosta

Copy link
Copy Markdown
Member

cc @brittanyjoiner15 this PR looks relevant to your previous work :)

@isabelcosta

Copy link
Copy Markdown
Member

@ftonato do you know why the check might be failing?

@isabelcosta

Copy link
Copy Markdown
Member

@ftonato could you also create a ticket and link this PR to that issue. In this way, we have the issue documented and if for any reason you don't finish this, someone else can pick this up :)

@ftonato

ftonato commented Oct 17, 2021

Copy link
Copy Markdown
Contributor Author

It's failing because "prettier" is trying to find any file regardless of file types (like .js or .json). I'll update the PR by adding the types that should be considered by the tool.

@isabelcosta
isabelcosta requested a review from nandini45 October 17, 2021 21:32
@ftonato
ftonato force-pushed the chore/update-prettier branch from 8465aa9 to 8bc7e42 Compare October 17, 2021 21:44

@isabelcosta isabelcosta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! Thank you for reporting and fixing this issue!

@isabelcosta isabelcosta added the Status: Needs Review PR needs an additional review or a maintainer's review. label Oct 17, 2021
@anishfyi

anishfyi commented Oct 17, 2021

Copy link
Copy Markdown
Contributor

@isabelcosta @ftonato
I Had an MR Pending and PR Checks Were Failing For Me as well #302 .
So I Took Your Prettier Changes of deploy.yml issue #305 .

My PR: #302

Comment thread .github/workflows/deploy.yml Outdated
@isabelcosta isabelcosta added Status: Ready to Merge Work has been tested and needs a final review and merge from a repo maintainer. and removed Status: Needs Review PR needs an additional review or a maintainer's review. labels Oct 18, 2021
@isabelcosta

Copy link
Copy Markdown
Member

Thank you @daxoron for reviewing 🙏🏾

@isabelcosta
isabelcosta merged commit 8db566a into anitab-org:develop Oct 18, 2021
@brittanyjoiner15

Copy link
Copy Markdown
Contributor

thanks @ftonato for taking care of this!

ftonato added a commit to ftonato/anitab-org.github.io that referenced this pull request Oct 19, 2021
…rettier" (anitab-org#305)

* chore: update action to ensure we get the reference before running "prettier"
* chore: update the "prettier" process to take into account only certain file types
* chore: add new type of files to be considered by prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Ready to Merge Work has been tested and needs a final review and merge from a repo maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Actions for Prettier process is failing / not respecting some rules that should

4 participants