Skip to content

Support GitHub Actions Badges#1838

Closed
CryZe wants to merge 12 commits into
rust-lang:masterfrom
CryZe:github-badge
Closed

Support GitHub Actions Badges#1838
CryZe wants to merge 12 commits into
rust-lang:masterfrom
CryZe:github-badge

Conversation

@CryZe

@CryZe CryZe commented Sep 13, 2019

Copy link
Copy Markdown

@rust-highfive

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @carols10cents (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@sgrif

sgrif commented Sep 23, 2019

Copy link
Copy Markdown
Contributor

Can we call the badge github_actions instead of just github?

@sgrif sgrif left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Other than the badge name this looks fine

Comment thread src/tests/badge.rs Outdated
@CryZe

CryZe commented Sep 25, 2019

Copy link
Copy Markdown
Author

Alright, I made those changes :)

@CryZe CryZe force-pushed the github-badge branch 3 times, most recently from 1d0c8c1 to d85627c Compare September 26, 2019 12:13
@CryZe

CryZe commented Sep 26, 2019

Copy link
Copy Markdown
Author

Travis is having issues it seems.

@CryZe

CryZe commented Sep 30, 2019

Copy link
Copy Markdown
Author

This is done from my side.

@jhpratt

jhpratt commented Oct 1, 2019

Copy link
Copy Markdown
Member

@sgrif ^^ I was actually just looking for this, and @CryZe says it should be good!

@carols10cents carols10cents 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.

In the github actions documentation, it says:

If your workflow uses the name keyword, you can reference the workflow by name. If the name of your workflow contains white space, you'll need to replace the space with the URL encoded string %20. For more information about the name keyword, see "Workflow syntax for GitHub Actions."

I think we should be doing the replacement of any spaces in the workspace key to %20, so that it'll work either way people specify it and folks won't need to publish a new version if they have spaces in their workspace name and don't do the substitution manually.

Also could you open a PR in the cargo repo documenting this badge in here? https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/manifest.md#package-metadata I'll merge this PR before the docs are merged, but I'd like to know the docs are on their way and I'd like to try manually testing out this new badge by following the docs.

Thanks!!

@CryZe

CryZe commented Oct 5, 2019

Copy link
Copy Markdown
Author

Isn't this true for all URLs in general? Shouldn't crates.io properly percentage encode all the badge URL values anyway? I'm not sure how this is different here. Anyways, I think I might need some help how and where I would do this. I don't really know the crates.io codebase, so I might need some mentoring. (Or should I really just do a .replace(" ", "%20")? Idk, that seems even more weird)

I'll open a PR in the cargo repo.

@carols10cents

Copy link
Copy Markdown
Member

Here's an example - for the appveyor badges, we have to replace underscores or periods with hyphens.

CryZe added a commit to CryZe/cargo that referenced this pull request Oct 28, 2019
@CryZe

CryZe commented Oct 28, 2019

Copy link
Copy Markdown
Author

Alright, I implemented the whitespace escaping.

Comment thread app/components/badge-github-actions.js Outdated
classNames: ['badge'],
repository: alias('badge.attributes.repository'),
workflow: computed('badge.attributes.workflow', function() {
return this.get('badge.attributes.workflow').replace(' ', '%20');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This will only replace the first space – it’d have to be / /g. But I agree that this is strange and something like encodeURIComponent() would seem to make more sense.

@CryZe CryZe requested a review from carols10cents February 21, 2020 15:04
@CryZe CryZe requested a review from sgrif March 1, 2020 22:19
@Dylan-DPC-zz

Copy link
Copy Markdown

@rustbot modify labels to +s-waiting-on-review and -s-waiting-on-author

@JohnTitor

Copy link
Copy Markdown
Member

@rustbot modify labels: -S-waiting-on-author

@djc

djc commented Mar 9, 2020

Copy link
Copy Markdown
Contributor

@carols10cents friendly ping? Would be really nice to have this.

BurntSushi added a commit to BurntSushi/ripgrep that referenced this pull request Mar 17, 2020
... and don't replace them with anything because crates.io does not
support GitHub Actions yet. But it's almost there:
rust-lang/crates.io#1838

Thanks @atouchet for noticing this.
@stanislav-tkach

Copy link
Copy Markdown

Don't want to be rude, but is there a chance this is going to be merged anytime soon?

hrkfdn added a commit to hrkfdn/ncspot that referenced this pull request Mar 21, 2020
cargo badges does not support github actions yet:
rust-lang/crates.io#1838
hrkfdn added a commit to hrkfdn/ncspot that referenced this pull request Mar 21, 2020
cargo badges does not support github actions yet:
rust-lang/crates.io#1838
@carols10cents

Copy link
Copy Markdown
Member

Whether you're trying to be rude or not, you are being rude.

I'm not getting paid to work on crates.io right now, so I'm prioritizing paid work.

Also, there's a global pandemic going on. So you all need to chill.

@jhpratt

jhpratt commented Mar 23, 2020

Copy link
Copy Markdown
Member

@carols10cents I don't think a person asking the status of things after roughly a month of no action is rude. We fully realize that neither you nor anyone else gets paid to work on crates.io. All we were seeking was a status update, whether from you or someone else. A simple statement that you (and others) are preoccupied with staying healthy (hopefully!) and your paid job would have sufficed. It's something we all understand, to say the least.


Somewhat related, I'm home myself and am more than willing to help out. If there are updates to code that need to be done, I can (likely) do that. I can also review if desired.

@carols10cents

Copy link
Copy Markdown
Member

I don't think a person asking the status of things after roughly a month of no action is rude. We fully realize that neither you nor anyone else gets paid to work on crates.io. All we were seeking was a status update, whether from you or someone else.

All status changes are made to the issue. If there is no update here, there has been no change in status. I do think it's rude.

@carols10cents

Copy link
Copy Markdown
Member

Next time I get a chance to review PRs, I'll be reviewing them in "Least Recently Updated" order. My current queue: https://github.com/rust-lang/crates.io/pulls?q=is%3Aopen+is%3Apr+assignee%3Acarols10cents+sort%3Aupdated-asc

@djc

djc commented Mar 24, 2020

Copy link
Copy Markdown
Contributor

@carols10cents I've been thinking about your comments a lot since yesterday. Of course you decide how to use your unpaid time. That said, in my experience across many open source projects, asking for a status update or pinging a non-responsive maintainer (and I've been on that side plenty of times myself) is often considered fine -- sometimes issues get lost in the noise, and it's useful to highlight those that need action. Being explicit about a lack of time (whether paid or not) is useful and would likely have led to fewer comments about this, and could maybe also elicit discussion about whether or not another maintainer could take over your review.

However, I feel dismayed about your last comment. In saying that you'll review PRs in LRU order, I worry that you use your very scarce time for things that are arguably of lesser priority for crates.io users, which I feel would be unfortunate.

@Dylan-DPC-zz

Copy link
Copy Markdown

Just a visitor here (actually a subscriber who doesn't know how I landed on this issue), but I would recommend let's not discuss this things here. Thanks

@BurntSushi

Copy link
Copy Markdown
Member

Moderation note: @carols10cents has made it clear that asking for further status updates is unwanted. Similarly, engaging into a meta discussion about this is also not productive. Please respect the maintainer's wishes and stop.

parasyte added a commit to parasyte/pixels that referenced this pull request Apr 13, 2020
- I would like to add a badge to the Cargo manifest too, but it's currently WIP: rust-lang/crates.io#1838
parasyte added a commit to parasyte/pixels that referenced this pull request Apr 14, 2020
- I would like to add a badge to the Cargo manifest too, but it's currently WIP: rust-lang/crates.io#1838
@JohnTitor

Copy link
Copy Markdown
Member

I'm going to close this PR since we decided to deprecate the badges feature in the team meeting yesterday. See #2436 and related issues for more detail. Thanks for taking your time!

@JohnTitor JohnTitor closed this Apr 18, 2020
Youka added a commit to substation-beta/ssb_implementation that referenced this pull request Apr 20, 2020
mtshrmn pushed a commit to mtshrmn/ncspot that referenced this pull request Sep 8, 2020
cargo badges does not support github actions yet:
rust-lang/crates.io#1838
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.