-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add
remote
to commit and deprecate fields (#822)
* feat(core): add `remote` field to commit * refactor * fmt * deprecate old fields * serialize remote field * fix * fix typo * allow deprecated * move warn * move filename * docs * docs * fix * fmt * chore(fixtures): use remote instead of platform name for template variables * remove useless method * update docs * use contains_variable * fix no-default-features * chore(remote): update template varibles for platforms * set commit.remote * chore(release): update unit tests for new remote field --------- Co-authored-by: Orhun Parmaksız <[email protected]>
- Loading branch information
Showing
22 changed files
with
251 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use serde::{ | ||
Deserialize, | ||
Serialize, | ||
}; | ||
use std::hash::{ | ||
Hash, | ||
Hasher, | ||
}; | ||
|
||
/// Representation of a remote contributor. | ||
#[derive(Debug, Default, Clone, Eq, PartialEq, Deserialize, Serialize)] | ||
pub struct RemoteContributor { | ||
/// Username. | ||
pub username: Option<String>, | ||
/// Title of the pull request. | ||
pub pr_title: Option<String>, | ||
/// The pull request that the user created. | ||
pub pr_number: Option<i64>, | ||
/// Labels of the pull request. | ||
pub pr_labels: Vec<String>, | ||
/// Whether if the user contributed for the first time. | ||
pub is_first_time: bool, | ||
} | ||
|
||
impl Hash for RemoteContributor { | ||
fn hash<H: Hasher>(&self, state: &mut H) { | ||
self.username.hash(state); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.